Previous Topic

Next Topic

Book Contents

Book Index

Writing a test case for a rule or global condition

You can write test cases for data-entry rules, workflow rules, and global conditions.

  1. Open the Rule Test Cases dialog box.
  2. In the list of rules, select a data-entry rule, workflow rule, or global condition.
  3. In the toolbar, click Create.

    A test case is created.

  4. Optionally, rename the test case.
  5. Provide test values for the items that are used in the rule:

    Note: To provide an empty value for an item with a codelist, select the <empty> option. For items without a codelist, do not enter a value in the field. The field changes to <empty>.

    Note: To enter test cases without using a mouse, use the Tab key to advance to cells. Use the spacebar to open dialog boxes from within cells, such as the date picker dialog box.

  6. In the Expected Result field, do one of the following:

    Note: For data-entry rules, one Expected Result field appears for each of the rule's actions.

    For data-entry rules: Select the expected result or type the expected value, based upon the values that you provided in the test case. For example:

    For workflow rules: Select the study object that you expect to appear next in the workflow, based upon the test case.

    For global conditions: Select True or False, depending on how you expect the expression to evaluate based on the test case.

  7. Write additional test cases as necessary. Optionally, use Copy and Paste on the toolbar to create test cases.
Copyright © 2013 Oracle and/or its affiliates. All rights reserved.