ili
3 years agoOccasional Contributor
Smart Assertion - assert logical/relationship contracts in response
Hi, I have soap response with format similar to the following dummy example, ... <person> <firstName>xxxxxxxxxx</firstName> <lastName>yyyyyyyyyy</lastName> <phoneNumber>zzzzzzzzz...
- 3 years ago
ili,
your API definition (WSDL in the case of SOAP services) should say there's just one occurrence of the person in the answer in the schema definition (XSD).
Afterward, you can use Schema Compliance assertion.
With this approach, you can validate any issues relating to message structure.
Best regards,
Karel