LinkedIn
Copied!

Table of Contents

Unit testing a section

Version:

Only available versions of this content are shown in the dropdown

After you create a section rule, you can run the rule to test it in the context of the application you are developing. Specify a test page for the rule to use, provide sample data as the input, run the rule, and examine the results.

Create and open the section rule that you want to test. For more information, see Sections - Completing the Create or Save As form. Determine how you will provide the sample data to use when testing the rule. If possible, open a work item of the appropriate class.
  1. In the navigation pane of Dev Studio, click Records Decision User interface , and then select the harness you want to test.

  2. Click Actions > Run. The Run Rule window opens.

  3. In the Test Page pane, select the context and test page to use for the test.

    1. In the Data Context list, select the thread in which you want to run the rule. If a test page exists for the thread, then it is listed and can be used for creating the test page.

    2. Select the test page to use for the test:

      • Select Empty test page to start from a page containing no parameter values.
      • If a clipboard page exists, then you can select Copy existing page to copy values from a thread of an existing clipboard page to the main test page.
      • Select Create or reset test page to create a new test page or reset the values of an existing test page.
  4. To apply a data transform to values on the test page, click the link in the Apply field, and then select a data transform.

  5. In the lower section of the Run Rule window, enter the test data and click Execute.

    The system runs the harness and displays the results.

  • Sections

    Use sections in conjunction with harnesses to define the appearance of user forms, rule forms, or composite portals.

Have a question? Get answers now.

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