Question & Answer
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.
- Select a Project in which the naming convention has to be changed
- Click on the options Project > Properties > Functional Test Script Templates
- 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...)
- 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.
[{"Product":{"code":"SSJMXE","label":"IBM Rational Functional Tester"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Documentation","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.3.0.2;8.3.0.1;8.3;8.2.2.1;8.2.2;8.2.1.1;8.2.1;8.2.0.2;8.2.0.1;8.2;8.1.1.3;8.1.1.2;8.1.1.1;8.1.1;8.1.0.3;8.1.0.2;8.1.0.1;8.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21635900