How to change the Test Object naming convention under Rational Functional Tester

Technote (FAQ)


Question

How do you change the Test Object naming convention IBM Rational Functional Tester(RFT)?

Cause

If there is a requirement with your project to use a specific property to name the Test Object, then you have to change the naming convention inside RFT.

Answer

To change the Test Object naming convention with a required property of the control, use the following syntax in the Functional Test Script Templates.

  1. Select a Project in which the naming convention has to be changed

  2. Click on the options Project > Properties > Functional Test Script Templates

  3. Select the Template Script: <Domain>Test Object Name in the drop down list
    Where the domain is the domain of the Application Under Test (it can be HTML / Java etc...)

  4. Use the following syntax in the Template:

    %map:<property>%^_%map:<property>%^

    Where the <property> is the desired property of the control to be used in the naming convention.

    Example :


    By default in the HTML domain control's role property along with its name property is used to name the Test Object.

    The syntax used is : " %map:#role%^_%map:#name%^ " .


    If there is requirement to use role along with ID property. Then Select Script:HTML Test Object Name Template and change the syntax as:

    "%map:#role%^_%map:.id%^"

    Note: If Recognition properties have to be used, then prefix "." symbol with the property. If the Administrative property have to be used then prefix # symbol with the property.

Rate this page:

(0 users)Average rating

Document information


More support for:

Rational Functional Tester
Documentation

Software version:

8.1, 8.1.0.1, 8.1.0.2, 8.1.0.3, 8.1.1, 8.1.1.1, 8.1.1.2, 8.1.1.3, 8.2, 8.2.0.1, 8.2.0.2, 8.2.1, 8.2.1.1, 8.2.2, 8.2.2.1, 8.3, 8.3.0.1, 8.3.0.2

Operating system(s):

Windows

Reference #:

1635900

Modified date:

2013-05-06

Translate my page

Machine Translation

Content navigation