Designer 10.7 | webMethods Unit Test Framework Help | Advanced Options | Comparators
 
Comparators
Comparator provides an extension that can be used to extend, enhance, or replace the standard comparison of expected output.
Each test suite can have its comparator that can be specified from the user interface.
Custom comparators are Java classes that implement the com.wm.ps.test.ResultsValidator interface.
Comparators also provide a mechanism to execute operations pre and post service execution. Using comparators you can build some basic functional testing capability. For example, if a service writes to a database table, a comparator can compare the results from the service and check the destination table to confirm the operation executed successfully. You can also specify filters while comparing.