Forum Discussion

mart1n0's avatar
mart1n0
New Contributor
14 years ago

Compare if two requests are equal

I have the following situation:

I sent a request to the web service that has to be tested (TST), I used a test request for this.
The web service makes some performs some checks on the the request and if all is ok forwards it as a new request to another endpoint, for which I have a mock response step setup.

This all works perfectly only I would like to know how I can easily assert that the message that is forwarded by TST to the mock response is the same as the one sent in my original request.

The content has to be the same but it does not matter if e.g. there is some extra white-space etc.
Maybe I can somehow perform the equivalent of an Format XML on the original request and the forwarded message received by the mock response and then see if they are identical?
No RepliesBe the first to reply