Rule Creation panel

This topic gives an overview of the Rule Creation panel.

Overview

In the Map to Controls tab (Test Object Class designer), each browser-specific tab contains three rule creation panels, in which you can create a set of rules that OpenText Functional Testing uses in different ways.

Each rule creation panel contains a rule editor area and buttons that you can use to create rules automatically and to test the rules on an application.

 

OptionDescription
To access
  1. In the Map to Controls tab (Test Object Class designer), create a tab for a browser-specific rule set, or select an existing one.

  2. Expand the rule creation panel for the type of rules you want to create.

Relevant tasks

Back to top

The following section describes the elements each rule creation panel contains:

Buttons

UI Elements

Description

Select Controls

Starts a session for automatically creating mapping rules. You create the rules by pointing to controls of the relevant type in your application.

For task details, see Create a set of mapping rules automatically .

Test Rules

Highlights all of the controls that match the mapping rules in all open Web applications.

For task details, see the step Test and update your mapping rules in Map a test object class to application controls.

Test & Refine

Starts a session for automatically creating rules. All of the controls that match the currently defined rules are marked as selected in all open Web applications.

For task details, see the step Test and update your mapping rules in Map a test object class to application controls.

Back to top

Rule Editor Area

This area displays the mapping rules and enables you to edit them manually. For example, you can:

  • Add and delete rules.

  • Change the order or logic of rules.

  • Generalize the rules by defining regular expressions for the property values.

User interface elements are described below (unlabeled elements are shown in angle brackets):

UI Elements

Description

<edit toolbar>

This toolbar contains the following buttons:

  • Add Single Condition Below

  • Add Single Condition Above

  • Add Grouped Conditions Below

  • Add Grouped Conditions Above

  • Delete Selected Element

  • Move Selected Element Down

  • Move Selected Element Up

  • Undo

  • Redo

<rule containers>

Rectangles that contain single rules or grouped rules. To select a rule or group of rules, click its container.

<rules>

A single rule is made up of the following elements:

  • <property name>. The name of the HTML property checked in this rule.

    Click to select from a list of common property names or edit this value.

  • Equal / Not Equal. Indicates whether the value of the property must be equal or not equal to the expected value to conform to the rule.

    Click to switch between Equal and Not Equal.

  • <expected value>. The value to compare to the value of the control's HTML property in the application.

    A regular expression icon is displayed if you specified that this value should be treated as a regular expression.

    Click to edit this value. When you edit the expected value, additional options are displayed:

    • RegExp. Indicates whether the expected value should be treated as a regular expression.

      Default: false

    • Trim. Indicates whether to remove leading and trailing spaces from the property value and the expected value before evaluating the rule.

      Default: true

      Click to switch between true and false values for these rule attributes. (A toggle button that is on indicates the value true.)

AND/OR

Indicates whether to use And or Or logic for the set of rules in the group.

Click to switch between AND and OR.

Back to top