Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Comparing XML response file

How to compare the two XML responses of of a request ?

Already executed response and current response of a request message..

Comments

  • jakubiak
    jakubiak Posts: 795 admin

    It looks like you need to store the response from one service invocation, and then use that to compare against the response from a second service invocation. To do this, you would use a File Writer tool to write the response from the first invocation to disk, and then use a Diff tool in the second test to compare the response from the second invocation against the file that you wrote to disk.

  • benken_parasoft
    benken_parasoft Posts: 1,228 ✭✭✭

    Store the XML you want to compare using an XML Data Bank tool. You can use a Diff tool to compare the other response (as input) against the data bank column (control source).