Method TestName

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

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