Bewerken

Delen via


Parameter Types in Table Data Sources

The following tables are summaries of various parameter types available in table based DataSource and which type string can be used to make your DataSource file compatible in native, managed and script tests.

Note

The "String", "int", "bool", "double", "__int64", "unsigned __int64", and "XML" types can be used in all, managed, native or script tests.

By default, if the type is not specified, the type is assumed to be "String". See the first row in each table.

To specify array type in conjunction with any types specified above, just append "[]" to the end of the type.

For native tests

ParameterType LanguageType
"String" WEX::Common::String
"int" int
"unsigned int" unsigned int
"bool" bool
"double" double
"__int64" __int64
"unsigned __int64" unsigned __int64
"DWORD" DWORD
"size_t" size_t
"NoThrowString" WEX::Common::NoThrowString
"XML" WEX::Common::String

For managed tests

ParameterType LanguageType
"String" string
"Int32" or "int" int
"uint" or "uint32" uint
"bool" or "boolean" bool
"double" or "decimal" decimal
"__int64" or "int64" int64
"unsigned __int64" or "uint64" uint64
"DWORD" uint
"XML" string

For script tests

ParameterType LanguageType
"String" or "BSTR" VT_BSTR
"int" VT_INT
"unsigned int" or "uint" VT_UINT
"bool" VT_BOOL
"double" VT_R8
"__int64" VT_I8
"unsigned __int64" VT_UI8
"XML" VT_BSTR