Forum Discussion
SmartBear_Suppo
Alumni
12 years agoThis kind of test where you just expect the response String to be exactly the same every time seems to me to be really fragile.
If the response contains any headers which will change every time, for example, your test will break really easily. Especially in a load test setting, where potentially many thousands of requests will be generated and verified.
I would advise that you perform more targeted assertions, for example:
- does the response contain a tag X with value Y?
- does the response NOT contain tags A, B and C?
- does a header H exist?
And so on.
This page contains nice advice: http://www.soapui.org/Functional-Testin ... tions.html
Regards,
Renato
SmartBear Software
If the response contains any headers which will change every time, for example, your test will break really easily. Especially in a load test setting, where potentially many thousands of requests will be generated and verified.
I would advise that you perform more targeted assertions, for example:
- does the response contain a tag X with value Y?
- does the response NOT contain tags A, B and C?
- does a header H exist?
And so on.
This page contains nice advice: http://www.soapui.org/Functional-Testin ... tions.html
Regards,
Renato
SmartBear Software