Forum Discussion
Hello,
The assertion doesn't compare the Expected and Actual result of an element unless you enable the condition for this element:
So, from your description, it looks like your assertion does nothing (no conditions are enabled).
To compare two responses, your assertion added to the second request should look like this:
- HaroldR7 years agoContributor
Thanks for answering to my question. That's a nice explaination of how the function operates.
However, I did understand how the assertion works by using it.
Finaly, I have found that my purpose was not very explicit to suit my need. I want to automate comparison between 2 responses. I have to compare each node value of 2 responses.
Basically, there are multiple nodes which have the same value and other nodes which are variant.
Both responses are very verbose and contain at least 5000 xml lines. I can achieve this purpose with the message assertion fucntion. But when the responses are as wide as these one, it's struggle and painful to check all checkboxes from the response. So my subject is how to avoid wasting time doing automation to get all tags values and compare them two to two.
I'm new to ready api, so it's not obvious how to do this. I read multiple subjects about responses comparison but I'm not sure where to begin and what should I do to achieve this purpose. Any suggestion!?- groovyguy7 years agoChampion Level 1
If you have that much data to compare, writing a custom groovy script may be another option.