Dynamic text expressions

Text expressions are dynamic strings from various sources, generated at runtime. You can use them as Value in test step values for different action modes and in test case parameters. You can also combine input expressions with other input and action mode 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]}

Check out Buffer for a more detailed description on the action mode Buffer.

The following syntax reads one element from a buffered array:

Syntax:

{B[Buffername][Index]}

Check out TBox Iterate Array to buffer a row or column into an array.

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 more information on XBuffers, check out Create a variable with Verify.

Test configuration parameters

Use test configuration parameters to store a value once and reference it in your test steps, test step values, and modules. If you update the parameter, the change applies everywhere you use it.

To add a parameter to your test case, check out Add test case parameters.

To read a parameter value, use the following syntax:

Syntax:

{CP[<parameter name>]}

For example, {CP[Environment URL]} returns the URL defined for your test configuration.

For naming rules and other limitations, check out Parameter values.

Environment variables

Read the value of a system environment variable.

Syntax:

{ENV[<variable name>]}

For example, {ENV[username]} returns the name of the signed-in Windows 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"]}