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.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

ZAP Utility

Zap.TestName

testName

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227