How to change the Test Object naming convention under Rational Functional Tester
How do you change the Test Object naming convention IBM Rational Functional Tester(RFT)?
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.
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:
Where the <property> is the desired property of the control to be used in the naming convention.
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:
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.
More support for:
Rational Functional Tester
Software version: 8.1, 126.96.36.199, 188.8.131.52, 184.108.40.206, 8.1.1, 220.127.116.11, 18.104.22.168, 22.214.171.124, 8.2, 126.96.36.199, 188.8.131.52, 8.2.1, 184.108.40.206, 8.2.2, 220.127.116.11, 8.3, 18.104.22.168, 22.214.171.124
Operating system(s): Windows
Reference #: 1635900
Modified date: 06 May 2013
Translate this page: