Configuring Pega unit test suites
When you configure a Pega unit test suite, you can add test cases and test suites to the suite, modify the order in which you want them to run, and remove test cases and test suites. You can also modify and configure settings, such as setting up your clipboard with information before you run the test.
-
Open the test suite, if it is not already open.
-
Complete any of the following actions:
-
Modify the description of the test suite.
-
From the Category list, select the type of test suite:
-
Ad-hoc – Specify that the test suite informally tests a feature.
-
Smoke – Specify that the test suite verifies that critical application functionality is working as expected.
-
Regression – Specify that the test suite runs all test cases when changes are made to application functionality. For example, if you fix a bug, you can test that it does not affect other application functionality.
-
- Provide a value, in seconds, that specifies the length of time within which the run time of the suite should complete in the Expected max runtime field. If you want the test suite to fail when the expected run time has been exceeded, select the Fail the test suite when runtime validation fails check box.
-
Add test cases to the test suite by clicking Add test cases and selecting the test cases that you want to add. You cannot add test cases that have the same identifier.
Note: To filter information by multiple criteria, click the Advanced filter icon. -
Add test suites to the test suite by clicking Add test suites and selecting the test suites that you want to add. You cannot add test suite that you are currently editing.
-
Remove test cases or suites from the test suite by selecting them and clicking Remove.
-
Modify the order in which test cases are run in the test suite by clicking the Drag selector icon next to the test case and dragging it. You can reorder test cases only on the page that displays the test cases. You cannot move a test case from one page to another.
-
Modify the order in which test suites are run in the test suite by clicking the Drag selector icon next to the test suite and dragging it. You can reorder test suites only on the page that displays the test suites. You cannot move a test suite from one page to another.
-
Apply one or more data pages, data transforms, or activities to set up the clipboard before running a test in the Setup section of the Setup & Cleanup tab. You can also create objects, load work and data objects, and add user pages from the clipboard which will be available on the clipboard when running the test. For more information, see Setting up your test environment.
- Apply additional data transforms or activities to clean up the clipboard in the Cleanup section of the Setup & Cleanup tab. You can also prevent the test data from being removed after the test is run. For more information, see Cleaning up your test environment.
-
Run a configured test suite by clicking.Note: If you made changes to the suite, such as adding or removing test cases or test suites, save those changes before running the suite. Otherwise, the last saved version of the suite will be run.
-
View more details about the latest result by clicking View details in the banner. Viewing details is possible after a test suite has been run. For more information, see Viewing Pega unit test suite run results.
-
To view the test date, the run time, expected run time, and whether the test passed or failed, click View previous runs. To view detailed test results, click the row of a test case.
-
-
Click Save. If you are saving the form for the first time, you can modify the Identifier. After you save the rule form, you cannot modify this field.