Method ResponseContains

Checks if raw response contains the given string data

Usage

Function ResponseContains(
    String Str
)

GetCompanyName

ZAP API Method step

ResponseContains

ZAPTEST

String Str

Parameters

Str

Type: String

String data

Returns

Boolean result

Example

VBScript

msgbox Server("API Server").Method("GetCompanyName").ResponseContains("ZAPTEST")

JavaScript

alert(Server("API Server").Method("GetCompanyName").ResponseContains("ZAPTEST"));

Comment

Call GetCompanyName method and check if response contains "ZAPTEST"

Script-Less next step

GetCompanyName

ZAP API Method step

ResponseContains

ZAPTEST