background image
<< Controlling the Interaction Order | Restoring the Default Values >>
<< Controlling the Interaction Order | Restoring the Default Values >>

Setting the InteractionOrder Property

Using UI Object Properties to Specify Input and Interaction Order for Mapping
4-45
Setting the InteractionOrder Property for UI Objects
All UI objects in the application map have a shared InteractionOrder property with
a default value of 1000. Because they have the same InteractionOrder value,
TestFactory exercises controls in the same window in random order during mapping
and testing.
If you change the InteractionOrder values of UI objects mapped for controls in the
same window in the AUT, TestFactory exercises the controls based on the ascending
order of their InteractionOrder values. For example, the Application Mapper
exercises a UI object that has an InteractionOrder value of 900 before it exercises a
UI object that has an InteractionOrder value of 1000.
If you set the value of the InteractionOrder property of a UI object to less than 1000,
TestFactory maps the corresponding control to single-level depth only. During
mapping, if a UI object that has an InteractionOrder value of less than 1000 leads to
an unmapped area of the AUT, or closes the window that contains it, mapping stops.
If you set the InteractionOrder of a UI object to a value greater than 1000, TestFactory
maps the corresponding control to the depth you specify (single-level or full depth).
If the last control in an interaction sequence exposes an unmapped area of the AUT,
and you want to map that area, be sure to set the InteractionOrder of the
corresponding UI object to a value equal to or greater than 1000.
To set the interaction order for controls using the InteractionOrder property:
1. In the application map, click the UI object mapped for the control that you want
the Application Mapper to exercise first.
2. In the Properties view, expand the Shared properties group.
3. Replace the default value (1000) for InteractionOrder with a value that is
greater than 0 and less than 1000.
4. In the application map, click the next UI object in the interaction sequence.
5. In the Properties view, type a value for InteractionOrder that is greater than the
value you set for the previous UI object in the interaction sequence and less
than 1000.
Value field for the InteractionOrder property