LinkedIn
Copied!

Creating a RuleSet for test cases and test suites

Summary

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.

This article describes the steps available in Process Commander versions prior to Version 6.1. To create a RuleSet to store your test case and unit test suite rules as of Version 6.1, see Creating a testing application and RuleSet for test cases and unit test suites (V6).

Suggested Approach

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:

  1. From the Rules by Type explorer, select SysAdmin > RuleSet.
  2. Click the New icon. The New Rule Instance dialog box displays.

  1. 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.
  2. Next, from the Rules by Type explorer, select SysAdmin > RuleSet Version. Click the New icon. The New Rule Instance dialog box displays.
  3. 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.
  4. 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:

  1. 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.
  2. On the Definition tab, add the test case RuleSet you created to the list of available production RuleSets and click the save icon.

  1. 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.

  1. On the Access tab, add the test case RuleSet you created to the list of production RuleSets and click the save icon.

50% found this useful

Have a question? Get answers now.

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