Now let's assume you want to add another test case to test suite PurchaseOrderExample.

Switch to the Trace Analyzer and duplicate the test case Get Purchase Order 1.
Assign the name Get Purchase Order 4 and change the request values as shown on the left.

Start the PurchaseOrderExample service and run the test case. It will turn red and display "Requested persistent state object does not exist." This is correct - an order n° 4 wasn't created and will never been created during the tests.

Switch back to the Regression Test Tool again.

Select test suite getPurchaseOrder and select Import Testcases from the context menu.

Select the newly created test case Get Purchase Order 4 and click OK.

Multiple selection is possible in this dialog.

Run the test suite PurchaseOrderExample. The newly added test gets red. Select the test error and look at the differences.

The error is due to a time stamp in the error message returned by the Bridge. The error by itself is correct as there is no order n° 4.

Add this XML element to the differences to ignore of this single test case and re-run the test suite. It is green now.

  • No labels