Forum Discussion
- nmraoChampion Level 3
Couple of things:
- That is because, if you want to test how the application is behaving if mandatory elements are missing
- However, you can check the request validation by right click and validate or Alt+v key combinations in the request editor
- If you want soapui to always check if the request is valid, then it can be done by using change of preferences. Check for Validate Requests in the documentation.
- KarelHusaChampion Level 1
When you see your xml request in your test step editor, it does not have to be exactly what is sent to the target service. See the following example.
You can have a request XML which includes Groovy variables, as following:
When you send a request, the xml is transformed, in this case the variable is substituted with the zip code value:
Here you see the final XML and the HTTP header. Nothing else happens behind the scene.
Your target service probably does not validate the request XML and so it does not complain. The service just provides a correct answer for an incorrect request.
Related Content
- 5 years ago
- 3 months ago
- 4 years ago
- 4 years ago
Recent Discussions
- 19 hours ago