Skip to main content

Element: Assignment

Symbol: tm_iconassign.png

Function: The element defines an assignment to a test script variable. The test script variable can also be declared globally by prepending the variable name with the prefix $GLOBALS.

Tab: Assignment

Call: An Assignment element is selected in the script.

Variable

Name of the test script variable

Declaration and write access to the variable

Example: BasePath

Variables with the prefix $GLOBALS are declared and described as user-defined global variables.

Example: $GLOBALS.HOME

Value

Assigns a value to the variable

  • Constant (literal)

    Example of an integer literal: NumberOfRuns := 10

    Example of a string literal: TestRoom := "Server Room 1.1"

  • Expression, evaluated during the test run

    Example: ScriptRuns := $GLOBALS.iRuns + 1

  • System area variable

  • Test repository variable

  • Global variable

  • Metavariable of the currently executed test script

  • Macro