Forum Discussion
- nmraoChampion Level 3While the question is valid, I was not sure why are you going for very long route while soapUI NG can do it for you with just a simple assertion as mentioned the below documentation link.
https://www.soapui.org/soap-and-wsdl/validating-soap-services.html- SphujidhwajContributor
If the response is simple one then assertions would suffice. But in my case the response is complex and adding so many assertions and maintaining them would be a herculean task. Hence I was looking for converting the response into Java object and then validating the same.
- nmraoChampion Level 3
Ok. If the question is only about validation of response, you can still use schema validation or compliance and this does not include any xpath or you require just a single assertion.
When you talk about maintenance, that is applicable only when there are changes in the application. So, it is natural that if the behaviour of the application gets changed, obiviously, tests or assertions might change if you have xpath assertions etc provided the structure of response gets changes. But it is not so frequent, imo.
Again that requires changes even if you use java. But it is up to the end users comfortability.
As I mentioned in the initial response, it can be done. You can use java or groovy to do the same if you wish to do so.
You should be able find in the forum for similar need, I remember answering few weeks back. Otherwise, I can dig it later and post it here.
Related Content
- 12 months ago