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

ZAP Utility

Zap.Test...Contains

demoKey

isContainsKey

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227