要求されたページは選択されたバージョンでは利用できない。
getglobal(variable)
Retrieve an existing global variable’s value.
Syntax
getglobal(variable)
Parameters
variable
The name of the global variable to retrieve the value of.
Return Value
Returns the value of the specified global variable.
Notes
- Normally, a global variable’s value can be accessed simply by including it in any expression, or just preceding with a #. getglobal() is only necessary when you need to access the value of a global variable which would otherwise be invisible at a given point in the test, due to the existence of a local variable of the same name.
- Refer to Variables for details about scope of variables.
Example
Test Lines
Result