Method Value

Retrieves value from the Datatable

Usage

Function DataTable.Value( 
	String Name
)

ZAP Utility

ZAP Utility step

ZAP.Comm...Box

ZAP.Datatable("A")

Use in parameter

Parameters

Name

Type: String

The name of the parameter (column name)

Returns

Value from Datatable for the current Iteration

Example

VBScript

site_url = "demo.zaptest.com"
Application("Demo").Launch Datatable.Value("Browser"), site_url
'now on each iteration ZAPTEST will get browser name from Datatable to launch it

JavaScript

var siteUrl = "demo.zaptest.com";
Application("Demo").Launch(Datatable.Value("Browser"), siteUrl);
// now on each iteration ZAPTEST will get browser name from Datatable to launch it

Comment

Show message box with datatable parameter value

Script-Less next step

ZAP Utility

ZAP Utility step

Zap.Common...Box

Datatable.Value("A")

Script-Less next step

Comment

Use Datatable.Value in parameter box of Exist method

Script-Less next step

Step

ZAP Object step

Exist

Datatable.Value("A")

true