Forum Discussion
Hi Jason_S,
If you think that this response will never get changed, try adding contains assertion manually from the Bottom Assertion TAB and writing your expected over there.
Do Like and Accept if you find it as Solution.
Thanks,
Himanshu Tayal
- Jason_S6 years agoOccasional Contributor
I thought about that, but to be honest I really don't feel that's the appropriate answer.
In our business validating exact information is pretty crucial and I think using a contains would allow for additional information to technically pass. This information is likely to not change, but I cannot say with 100% certainty that it will never change. I would really like to understand why this is failing so that I, or someone, can correct this issue.
- HimanshuTayal6 years agoCommunity Hero
so in that case use jsonslurper for validating your response.
Go through groovy-slurping-json-in-script-assertions/
Do like and accept if you find it as solution.
Thanks,
Himanshu Tayal
- sanj6 years agoSuper Contributor
How about using regex?
Related Content
- 3 months agoarmygrad
- 5 years agoSudhireddy