Assertions
Assertions are validations which are used to validate whether the system is working as expected or not.
SoapUI provides you with a variety of assertions, let's have a look at each one of them by category:
- Property Content: This assertion type is used to validate the parameter data returned in response by the service
- XPath Match: This assertion is used to match a particular node value in the response with the expected values
- XQuery Match: When you want to validate multiple sets of values from the response, XQuery Match is used to validate multiple parameters of data in the response in a single assertion
In the preceding example there is an XML which has multiple price tags and the tester wants to retrieve all the prices from an XML response.
So the XQuery searches in every item and returns all the prices for each Item.
- Contains: This assertion is used to validate if a particular value or string exists in the response or supports wildcards
- NotContains: This assertion is to make sure...