global, variable, set, add, update, scriptless, script-less, scripted, step, view, stepview

Method Zap.SetGlobalVar

Sets global variable

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function Zap.SetGlobalVar(
	String Name,
	Object Value
)

Global Variable

globalVariable

GetProperty

Text

Name

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");

Comment

Get Text property from object and save it to global variable

Global Variable

objectText

GetProperty

Text

Comment

Set constant value to datatable

Global Variable

constantValue

Constant

100

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227