Skip to end of metadata
Go to start of metadata

Description

 Verify that there is an element with expected property value appeared in the returned data from a web service call.

Parameters

ParameterParameter TypeMandatoryDescription
responseResponseObjectRequiredRepresent a HTTP Response, user can get responded content type, data, header properties (sometimes user may want to get cookie from response header)
locatorStringRequiredAn expression Katalon will use to go through and look for expected element(s), please refer to our user guide for how to write it: Handle Web Service Response object
value StringRequiredThe expected value of element you want to verify in the responded data (usually is JSON/XML)
flowControlFailureHandlingOptionalSpecify failure handling schema to determine whether the execution should be allowed to continue or stop. More details is in this page: Failure handling.


Returns

  • true, if your expectation is met, otherwise false.

Example

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, '[0].email', 'Eliseo@gardner.biz')
  • No labels