Creating a RuleSet for test cases and test suites
When using Automated Unit Testing, it is good practice to create a RuleSet specifically used to store your test case and unit test suite rules.
The separate RuleSet allows you to manage your test case and test suite rules independent of your application rules.
To create a test case RuleSet you need to create a RuleSet and RuleSet version instance. You then need to add that RuleSet to the access group of those operators who will be creating and executing test cases.
To create a new RuleSet:
- From the Rules by Type explorer, select SysAdmin > RuleSet.
- Click the New icon. The New Rule Instance dialog box displays.
- In the RuleSet Name field, enter the name for your test case RuleSet, click Create , then click the save icon on the RuleSet rule form.
- Next, from the Rules by Type explorer, select SysAdmin > RuleSet Version. Click the New icon. The New Rule Instance dialog box displays.
- In the RuleSet Name field, enter the name of the RuleSet you created. In the Version field, enter the version number of the RuleSet then click Create.
- Optional: on the Security tab, in the Requires RuleSet and Versions section, enter one or more RuleSet versions on which this RuleSet version depends.
To add the RuleSet to the production RuleSets in the appropriate access groups:
- From the Rules by Type explorer, select Application Definition > Application. Select the application rule instance for the application that you are running your test cases and test suites against from the list.
- On the Definition tab, add the test case RuleSet you created to the list of available production RuleSets and click the save icon.
- Next, you need to add the RuleSet to your access group. From the Rules by Type explorer, select Security > Access Group. Select your access group from the list.
- On the Access tab, add the test case RuleSet you created to the list of production RuleSets and click the save icon.