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.

DIFF tool - parasoft SOA test how to use

Pattu
Pattu Posts: 50

Scenario: Compare two files -> File A [ json or XML] File B [ json or XML] and compare in DIFF , how to use it ?
And again compare File B and File C [ json or xml] , now after these comparisons , a global message called GM- final XML will be triggered if file comparisons are accurate and only creation will happen if it spots any differences in that DIFF tool , if 0 differences no GM will be created.

Answers

  • benken_parasoft
    benken_parasoft Posts: 1,385 ✭✭✭
    edited December 1

    SOAtest's Diff tool has various comparison modes including ones for comparing JSON and XML documents. The Diff tool has "Regression Control" tab for configuring the document to compare against which can come from a file or data source. If the Diff tool is added as a test then the test's Input tab can let you select a file or data source. However, it more common to chain the Diff tool to another tool that provides the input document, like the Response Traffic output of a REST Client tool.

    SOAtest has various ways of publishing test results so you know that what passed and what failed. However, if you wish to conditionally generate a custom file then you can configure a Write File tool with "Test-Specific Logic Options" to run conditionally based on the status of the test that is running the Diff tool.

    For more detail:
    Diff tool
    Write File tool
    Test-Specific Logic Options (Test Suite Properties)