Adding a test object to an object map and a script
HCL OneTest™ UI enables you to add a test object to an object map and a script at the same time.
Procedure
- Start the application that contains the controls you want to test.
- In the script, position the cursor where you want to add the test object.
- In the product toolbar, click the Insert
Test Object into Active Functional Test Script button
.HCL OneTest™ UI opens the Select an Object dialog box .
- Click the Object Finder icon and drag it to the application over the object that you want to add to the object map and the script.
- Click Finish.
HCL OneTest™ UI inserts the object at the cursor location in the script and displays a list of possible methods for the object. HCL OneTest™ UI also adds the object to the test object map associated with the script.
- Double-click the method you want to use.