Forum Discussion
It would be easy to validate using schema compliance assertion which does the same unless you have any custom requirement.
- marlonumali8 years agoOccasional Contributor
Thank you for your advice nmrao, but the schema compliance doesn't seem to validate element data types, like if I have a Date element and the actual response value is an integer, the test step will still evaluate to true. Also, we like to control the restriction on some elements, like limiting the length of a string value which may change from time to time, this is why I thought it will be best to validate it against an xsd...
- nmrao8 years agoChampion Level 3I believe that you had same question in the below thread which was accepted answered
https://community.smartbear.com/t5/SoapUI-Open-Source/How-to-verify-response-content-if-it-has-valid-DateTime-or/m-p/136047#M23213
What made you to open another question?- marlonumali8 years agoOccasional Contributor
Thanks nmrao, we like to use xsd validation as we have lots of data fields declaration and restriction that we want to validate, and I thought it would be very tedious to test each field by plain groovy scripts.
Regards,
Marlon
Related Content
- 6 years ago
Recent Discussions
- 22 days ago