get, local, var, scriptless, script-less, scripted, step, view, stepview

Method Zap.GetLocalVar

Gets local variable by name

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function Zap.GetLocalVar ( 
  String Name,
  Boolean Report [Optional]
)

ZAP Utility

Zap.GetLocalVar

localVar

True

temp

Name

Report

Output Parameter

Parameters

Name

Type: String

Variable name

Report (optional)

Type: Boolean

Default Value: False

Generate report for this step

Returns

Local variable value

Example

VBScript

msgbox Zap.GetLocalVar("demoLocalVariable", True)

JavaScript

alert(Zap.GetLocalVar("demoLocalVariable", true));

Comment

Get value from "localVar" variable and save it to "temp" variable

ZAP Utility

Zap.GetLocalVar

localVar

True

temp

Contact Us

3150 Roswell Rd NW

Atlanta, GA, 30305, USA

(800) 795-3552