contains, exist, test, parameter, scriptless, script-less, scripted, step, view, stepview

Method Zap.TestParameters.Contains

Checks if the parameter with given key exist

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function Zap.TestParameters.Contains ( 
	String Key
)

ZAP Utility

ZAP Utility step

Zap.Test...Contains

demoKey

isContainsKey

Key

Output Parameter

Parameters

Key

Type: String

Parameter key

Returns

True if key exists, otherwise false

Example

VBScript

If Zap.TestParameters.Contains "demoKey" then
    ...
End If

JavaScript

if (Zap.TestParameters.Contains("demoKey")) {
    ...
}

Comment

Check if test parameters contain value by key and save result to variable parameter

Script-Less next step

ZAP Utility

ZAP Utility step

Zap.Test...Contains

demoKey

isContainsKey

Contact Us

3150 Roswell Rd NW

Atlanta, GA, 30305, USA

(800) 795-3552