Skip to main content

Macro

Macros can be used in places of a test script where a value is expected. First the macro is evaluated and then calculated with the returned value.

Example: The action CompareVariable(TestManager.Monitoring can implement a macro in the Comparison value of the Configuration tab.

CONCAT()

CONCAT( <string> | <variable> {, <another_string> | <variable>} )

Combines the string and all other strings into a single string

If a variable is specified, then the contents of the variable are converted into a string and then combined into one string.

DEFINED()

DEFINED(<variable>)

Checks whether the variable is defined and returns the result TRUE or FALSE

FORMAT()

FORMAT(<format_string>, <variable>[, <culture>])

Formats the variable contents of Variable with the formating (Format) and the optional language setting (Culture)

LEN()

LEN(<string> | <variable>)

Displays the number of characters in the String

When a variable is specified, its value is converted to a string and the number of characters is returned.

SUBSTRING()

SUBSTRING(<String> | <Variable>, <Start_Position>, <Len>)

Extracts a segment of the String from the Start_Positon for a length of Len.