Text expressions

Text expressions refer to a text (string) that may come from several different sources and that can first be generated at runtime. Text expressions can be used as Value in a TestStepValue for different ActionModes (Input, Verify, Buffer, Constraint, WaitOn), as well as Value in a Parameter. An input expression can be combined with other input and ActionMode expressions.

Buffer

Values or control properties can be saved to a global variable buffer to be read at any point of the test execution. The value of a buffer can be read by using the following syntax:

Syntax:

{B[Buffername]}

Please refer to chapter "ActionMode Buffer" for a more detailed description on the ActionMode Buffer.

XBuffer

The XBuffer can be used for reading out and buffering dynamic parts of a string. The following syntax is used within the string:

Syntax:

{XB[<Buffername>]}

A buffer name may include numbers but must not consist only of numbers.

For detailed information on XBuffers, please see also chapter "Dynamic comparisons - XBuffer". An example can be found in chapter "REST URL - Dynamic Comparison".

Test configuration parameters

During execution, TestCases mostly differ only by their specified values or other environment information. In addition to business-based processes, information that is derived from the execution environment and should be used in TestSteps, TestStepValues or Modules plays a major role. The value of a test configuration parameter can be read using the following syntax:

Syntax:

{CP[Testconfigurationparameter]}

Please refer to chapter "About test configuration parameters" for a more detailed description on test configuration parameters.

An example for using test configuration parameters can be found in chapter "Dynamic date and time expressions".

Using dynamic expressions for test data repository

Dynamic expressions can be applied for using values from a test data repository.

For further information, please see also chapter "Use repository values".

Transferring data from the settings

All values which are stored in the Settings dialog (see chapter "Settings Dialog") can be read dynamically and used during test execution. If the value is an entry in a drop-down list, the integer value of the selected entry is returned.

Syntax:

{S[<Path>]}

The path of every setting can be copied to the clipboard in the Settings dialog (see chapter "Copy Path to Clipboard").

{S[Engine.Current Test User]}

This example provides the value of the setting Current Test User, for instance <Windows Logon> (see chapter "Current Test User").

Unicode text inputs

This expression sends Unicode characters to the control. Use the syntax below and insert the Unicode between double quotes.

Syntax:

{TEXTINPUT["My Unicode characters"]}