Method ResponseContains
Checks if raw response contains the given string dataUsage
Function ResponseContains(
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"));
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
Call GetCompanyName method and check if response contains "ZAPTEST"