[WS] Verify Element Property Value
Estimated reading time: 1 minute
Verify that there is an element with expected property value appeared in the returned data from a web service call.
|response||ResponseObject||Required||Represent an HTTP Response, the user can get responded content type, data, header properties (sometimes the user may want to get cookies from response header)|
|locator||String||Required||An expression Katalon will use to go through and look for the expected element(s), please refer to our user guide on how to write it: Handle Web Service Response object|
|value||String||Required||The expected value of element you want to verify in the responded data (usually is JSON/XML)|
|flowControl||FailureHandling||Optional||Specify failure handling schema to determine whether the execution should be allowed to continue or stop.|
- true, if your expectation is met, otherwise false.
You want to verify if the response contains 'Eliseo@gardner.biz' in the email list.
'Send a SOAP request and returns its response' def response = WS.sendRequest(findTestObject('REST_CommentDetails')) 'Verify if comment\'s email after sending request is correct or not' WS.verifyElementPropertyValue(response, '.email', 'Eliseo@gardner.biz')