Monday, 28 November 2011

How to select/capture an object in RFT

How to select/capture an object in RFT
You use the Select an Object dialog box to select the object in your application you want to add to the test object map and a script.
When you select an object, Functional Tester lists its recognition properties in the grid at the bottom of the Select an Object page.
If you select the wrong object, or decide to add a different one, use any of the methods to select a different object. Once you click the Finish button, the object that is listed in the grid is the one that you will be adding.
The following three selection methods are available:
    1. Object Finder Tool
    2. Object Browser
    3. Delay Method

Object Finder ToolThis is the most common and direct method of selecting an object:

How to use it
    • Select the Object Finder tool icon and drag it over the object in your application that you want to select. Functional Tester outlines the object with a highlight border.
  • Release the mouse button. The object is selected and Functional Tester lists its recognition properties in the grid at the bottom of the Select an Object page
Object BrowserUse the Object Browser method to browse for the object you want to add to the test object map. The browser displays a hierarchical tree of objects in your application. The top level shows any applications you have running. Under each top level, Functional Tester displays the object hierarchy within that application.
How to use it
    1. Browse the object tree to find the object you want to add to the test object map.
    2. Click the object to select it.
Functional Tester lists the object’s recognition properties in the grid at the bottom of the Select an Object page.
Delay Method: Use the Delay method to select pop-up objects, such as menus. This method uses the Object Finder tool, but enables you to set a delay, which gives you time to get to an object that requires clicking on other objects first.

How to use it
    1. In the Seconds before selection field, enter the number of seconds you want to delay before Functional Tester attempts to find the object (the default is 10 seconds).
    2. Click the Object Finder tool icon .
    3. Go to the application and find the object you want to select. Anything you do during the delay period is not recorded, which enables you to dig for objects if necessary.
When the timer runs out, Functional Tester selects the object under the cursor, outlines the object with a highlight border, and displays its Recognition properties in the grid at the bottom of the Select an Object page.
Note: In order for delayed location of the objects to play back correctly, the object must be exposed by actions in the script. If the object is not exposed, an Object Not Found exception is thrown during playback.

No comments:

Post a Comment