You are here: Reference > Rule types > Unit Test Suites > Unit Test Suite form - Completing the Contents tab

Unit Test Suite form
Completing the Contents tab

  1. About 
  2. New 
  3. Contents 
  4. History 

Use the Contents tab to define the unit test suite. Specify a user (Operator ID) that the Pega-AutoTest agents are to use by default when running the suite, and select the test cases to include.

The Operator ID specified here is the default one used to run the unit test suite. When defining the unit test suite's run schedule using the Schedule gadget of the Automated Unit Testing landing page, you have the option to specify a different Operator ID and override the one specified here.

Field

Description

RuleSets for Test Cases

Select the RuleSet that holds the test cases you want to include in this test suite. If the test cases are in more than one RuleSet, click add row to add rows to specify the additional RuleSets.

User ID for Agent Processing

Select the Operator ID for the Pega-AutoTest agents to use by default when they run this test suite. This ID must provide access to the RuleSet that this test suite belongs to, as well as access to the RuleSets listed in the RuleSets field.

Remove Test Work Objects?

Optional. Select to specify that the work items created during the test case execution are to be deleted afterwards.

Application Test Cases To Include Use the fields in this section to specify the test cases by application name and version.
Application Name Select the name of the application that has the test cases you want to include in the unit test suite.
Application Version Select the version of the application that has the test cases you want to include in the unit test suite.
Rule Types To Include

Use the fields in this section to select the test cases by rule type. You can specify that all the test cases for a particular rule type are included in this unit test suite, or you can constrain the list with a When condition rule.

Rule Type

Select those rule types for which you want to include their test cases in this unit test suite. The selections in the list are: Activities, Decision Tables, Decision Trees, Flows, and Service SOAP service records.

When Filter

Do one of the following:

  • Leave blank to include all the test cases that were created for rules of the type specified in the Rule Type field.
  • Select the appropriate when condition rule to constrain the list. The test cases that meet the conditions in the when condition rule are included in the unit test suite.
Query Test Cases To Include

Use the fields in this section to select specific Test Cases to include in this unit test suite. List the test cases in the order in which you want them to be run.

Test Case Name

Enter a search string for the test case you want to find.

Query

Click to list test cases that match the query string in the Test Case Name field. The list is not limited by RuleSet. If test cases exist that match the search string, the List Test Case window will open. Select the test cases you want to include and then click OK. The test cases are added to the list in this section of the form.

Test Case Key

The three-part key of a Test Case rule, consisting of:

  • Class Name
  • Instance Name (Ins Name)
  • Purpose

When you use the Query button to find and add a test case, the system automatically fills in this field.

Description

The short description of the Test Case. When you use the Query button to find and add a test case, the system automatically fills in this field.

RuleSet

The RuleSet of the test case. When you use the Query button to find and add a test case, the system automatically fills in this field.

Verify that this RuleSet is included in the RuleSets for Test Cases list at the top of this form. If the RuleSet for the test case is not in that list, add it now. Otherwise, the Test Case does not run when the unit test suite runs.

You can specify Test Cases in both the Rule Types To Include section and the Query Test Cases To Include section of this form. If you specify Test Cases in both sections, when the unit test suite runs, those test cases defined in the Rule Types To Include section will run before the test cases in the Query Test Cases To Include section.

About Unit Test Suites