Method GetLocalVar

Gets local variable by name

Usage

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

ZAP Utility

ZAP Utility step

ZAP.GetLocalVar

localVar

True

temp

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

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

Script-Less next step

ZAP Utility

ZAP Utility step

Zap.GetLocalVar

localVar

True

temp