global, variable, get, extract, scriptless, script-less, scripted, step, view, stepview

Method Zap.GetGlobalVar

Gets globar variable value by name

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function Zap.GetGlobalVar ( 
	String Name
)

ZAP Utility

Zap.GetGlobalVar

globalVar1

result

Name

Parameters

Name

Type: String

Variable name

Returns

Global variable value

Example

VBScript

msgbox Zap.GetGlobalVar("demoGlobalVariable")

JavaScript

alert(Zap.GetGlobalVar("demoGlobalVariable"));

Comment

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

ZAP Utility

Zap.GetGlobalVar

globalVar1

result

Comment

Use Zap.GetGlobalVar in parameter box of Exist method

Step

Exist

Zap.G...Var("demo")

true

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227