test, name, scriptless, script-less, scripted, step, view, stepview

Method Zap.TestName

Retrieves test name programmatically by calling the TestName parameter from script view

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function Zap.TestName()

ZAP Utility

ZAP Utility step

Zap.TestName

testName

Output Parameter

Parameters

This method does not take parameters

Returns

Test name as String

Example

VBScript

testName = Zap.TestName()

JavaScript

var testName = Zap.TestName();

Comment

Get test name and save it to variable parameter

Script-Less next step

ZAP Utility

ZAP Utility step

Zap.TestName

testName

Contact Us

1425 Market Blvd Suite 530-230

Roswell, GA 30076, USA

(800) 795-3552