Forum Discussion
Another thing that may help is to use dynamic assertions instead of fixed assertions. This is possible in XPath as well in JSONPath :smileyhappy:. So the assertions won't fail each time when something is changed, well at least they won't fail when something is added or removed from the current response.
Cheers!
Hi all,
Thank you so much for your assistance, Lucian and groovyguy!
kenm, is the issue solved? Or, are there any additional details on the matter?
We are looking forward to hearing from you,
- kenm6 years agoContributor
I'm afraid it's not resovled.
My assertions themselves are quite granular. On specific fields existence and values... however if the root path of that response structure changes then naturally they start to fail. If this payload response (and assertions) are present in a considerable number of testcases then it'd be helpful to have some sort of global search/global search and replace capabilies.
- groovyguy6 years agoChampion Level 1
Can you provide some examples? We might be able to figure out a way forward if you can provide:
- Original response prior to changes
- Assertion that works on said response
- New response that assertion no longer validates correctly
With those, we'd have more details that should help us. Otherwise, you may want to consider putting your information and needs into a feature request, which you can do here.