Method TestParameters.Contains
Checks if the parameter with given key existUsage
Function ZAP.TestParameters.Contains (
String Key
)
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")) {
...
}
Documentation Categories
![](https://www.zaptest.com/wp-content/uploads/2022/02/1SCRIPT_STEP.jpg)
ZAPTEST
![](https://www.zaptest.com/wp-content/uploads/2022/02/FARM.jpg)
FARM
![](https://www.zaptest.com/wp-content/uploads/2022/02/LOAD.jpg)
Comment
Check if test parameters contain value by key and save result to variable parameter