background image
<< ThunderCheckBox and built-in object mappings | Test C++ applications >>
<< ThunderCheckBox and built-in object mappings | Test C++ applications >>

Selecting an Object Order Preference

Setting GUI Recording Options
2-9
­
Clear Define unknown objects as type "Generic" to have Robot suspend
recording and open the Define Object dialog box if it encounters an
unknown object during recording. Use this dialog box to associate the
object with an object type.
3. Click OK or change other options.
You can also map object types and classes before you start recording. For information,
see Mapping Object Types and Classes Before Recording on page 2-13.
Selecting an Object Order Preference
Robot uses a variety of object recognition methods to uniquely identify objects in
the application-under-test that are acted on during recording sessions. For example,
Robot can identify a check box in the application-under-test by its object name,
associated label or text string, index value, or ID value.
These recognition methods are saved as arguments in script commands so that
Robot can correctly identify the same objects during playback.
Robot has two predefined preferences for the recognition method order for each
standard object type. While recording an action on an object, Robot tries each
method within the selected preference in sequence until it finds a method that
uniquely identifies the object.
The following table describes the two predefined preferences.
NOTE: The custom mapping from class name to object type is stored in the
project and is shared among all users of the project.
Object Order
Preference
Recognition
Method Order
Comments
<Default>
Object Name
Label and/or Text
Index
ID
Index comes before ID. In some
environments, such as PowerBuilder
and Visual Basic, the ID changes each
time the developer creates an
executable file and is therefore not a
good recognition method.
C++ Recognition
Order
Object Name
Label and/or Text
ID
Index
ID comes before index. In some
environments, such as C++, the ID
does not usually change and is
therefore a good recognition method.