Usage
Function ZAP.GetGlobalVar (
String Name,
Boolean Report [Optional]
)
ZAP Utility
ZAP.GetGlobalVar
globalVar1
True
result
String Name
Boolean Report [Optional]
Output Parameter
Parameters
Name
Type: String
Variable name
Report (optional)
Type: Boolean
Default Value: False
Generate report for this step
Returns
Global variable value
Example
VBScript
msgbox Zap.GetGlobalVar("demoGlobalVariable", True)
JavaScript
alert(Zap.GetGlobalVar("demoGlobalVariable", true));
ZAP Utility
Zap.GetGlobalVar
globalVar1
True
result
Comment
Use Zap.GetGlobalVar in parameter box of Exist method
Step
Exist
Zap.G...Var("demo")
true

Comment
Get global variable value and save it to local variable with name "result"