Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Service SOAP form - Working with the Test Cases tab

Updated on November 23, 2022

This tab is visible only to operators who have the AutomatedTesting privilege through an access role.

Use the Test Cases tab to work with test cases for this Service SOAP rule. You can record new test cases, play back saved test cases, view previously saved test case results, and request a report that alerts you to test cases that might need to be updated or re-recorded.

Recording test cases and viewing invalid test cases

Using the buttons on the Test Cases tab, you can record new test cases or request a report that alerts you to test cases that might need to be updated or re-recorded:

FieldDescription
Record New Test Case Click to record a new test case for unit testing this Service SOAP rule. After the Simulate SOAP Service Execution window opens, unit test the rule, and then save that run as a test case. See How to Unit Test a Service SOAP Rule for more information.
Invalid Test Cases Click to get a report of any test cases saved for this Service SOAP rule that might need to be updated or re-recorded. If rules have changed, test cases that were recorded prior to the changes might not return the expected results. Examine the Invalid Test Cases report to see which test cases are affected.

When you click this button, the Invalid Test Cases window opens, and you can choose to run the report immediately or to run as a background process and have the results emailed to you. If you run the report immediately, the Test Case window opens and displays the list of test cases.

RefreshClick to update the list of saved test cases displayed on this tab.

Test cases

If any test cases are saved for this Service SOAP rule, they are listed in the table in the center of this tab. You can run an individual test case by selecting its name. If a test case has saved results, you can view those results by selecting View Results.

FieldDescription
Name Name of the previously recorded and saved test case. To play back that test case, click its name in this list. The Simulate SOAP Service Execution window opens and you can click the Run Test Case button in that window to run the test case.
Created ByOperator who created the saved test case.
Created OnWhen the saved test case was created.
Last Run OnWhen the saved test case was last run.
Status of Last RunThe test case's status from the last time it was run.
Saved Results Indicates whether there are any previously saved results for that test case. If a test case has results saved, you can click View Results to open a window that displays the previously saved results. Saved results exist if some differences in the results were found the last time the test case was run, and the choice was made at that time to save those differences in the test case.

Playing back saved test cases

To play back a saved test case, click its name in the Name field.

The Simulate SOAP Service Execution window opens and the system runs the test case. If differences are found between the results of running the current state of the rule and the saved test case, they are displayed with the following options.

FieldDescription
Save Ignores The differences encountered are displayed in the lower part of the window. If you want to indicate that a difference is to be ignored in future runs, you can select to have the system ignore it for either this test case or for all test cases, and then click Save Ignores to save your choices.

You can also indicate that an entire page should be ignored in future runs of this specific test case by selecting the check box corresponding to that page name. If you specify to ignore a page, all property differences found on that page are ignored each time this test case runs.

Overwrite Test CaseClick to overwrite this test case with the current run state.
Save ResultsClick to save the results from playing back this test case.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us