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

ZAP Object step

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

Script-Less next step

Global Variable

objectText

ZAP Object step

GetProperty

Text

Script-Less next step

Comment

Set constant value to datatable

Script-Less next step

Global Variable

constantValue

Constant

100

ZAP Object step

Contact Us

3150 Roswell Rd NW

Atlanta, GA, 30305, USA

(800) 795-3552