Method SetGlobalVar
Sets global variableUsage
Function ZAP.SetGlobalVar(
String Name,
Object Value
)
Parameters
Name
Type: String
Variable name
Value
Type: Object
Variable value
Returns
No return value
Example
VBScript
Zap.SetGlobalVar("GlobalVariableName", "GlobalVariableValue")
JavaScript
Zap.SetGlobalVar("GlobalVariableName", "GlobalVariableValue");
Documentation Categories
![](https://www.zaptest.com/wp-content/uploads/2022/02/1SCRIPT_STEP.jpg)
ZAPTEST
![](https://www.zaptest.com/wp-content/uploads/2022/02/FARM.jpg)
FARM
![](https://www.zaptest.com/wp-content/uploads/2022/02/LOAD.jpg)
Comment
Get Text property from object and save it to global variable