set global variable

Description

Assign a value to an existing global variable.

Arguments

variable
An existing global variable.
value
Value to assign to the variable.

Valid contexts

This action may be used within the following project items: test modules and user-defined actions.

Notes

  • To create a global variable, use the action global variable.
  • A global variable is visible throughout all test modules and invoked actions within one test run execution, subsequent to its declaration.
  • Use variables within pound sign (#) expressions to access their contained values.

Applicable Built-In Settings

The following settings are applicable to this action: remove double quotes from cells.

Example

Action Lines

Result