User-Defined Validations on Response Body

Use the following steps if Response Body was chosen above.



How to

  1. Specify an XPath to validate.
  2. Specify the Response Type from among: XML, SOAP, JSON, PHP, HTML, or Text.
  3. Specify the Match type from among:
    1. Matches exactly
    2. Does not match exactly
    3. Matches regular expression
    4. Does not match regular expression
    5. Matches glob expression
    6. Does not match glob expression
    7. The following script is expected to succeed
    8. The following script is expected to fail
    9. Existing script is expected to succeed
    10. Existing script is expected to fail
    For example, the user-defined validation below is on the message’s response body using the specified XPath and the HTML response and is set to Matches exactly. Subsequent actions on the validation will depend whether the response does in fact match.


  4. Next, specify whether to validate based on a Constant expression or a Property type.
  5. If Constant expression is selected, enter the expression.
  6. If Property type is selected, additional fields appear below. A constant expression is an expression in which each operation is intrinsic
  7. Specify a Failure Action: from among: Fail the Clip, Record in Results only, or Honor the Message setting.

What you should see

For example, the following user-defined validation uses a custom property whose owner is the Clip.

  • In the example (right), the property type was chosen from among Custom, System, or Global property.
  • The Owner was specified from the list of CloudTest objects (e.g. Composition, Band, Track, Clip, Target, Destination, Chain, or Message).
  • The property name in this case was __EVENTVALIDATION.
  • The Failure Action was chosen from among Fail the Clip, Record in results only, or Honor the Message setting.