Forum Discussion
Jason_S
Occasional 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.
HimanshuTayal
6 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
Related Content
- 5 years agoSudhireddy