background image
<< Interaction Object toolbar | Setting UI Object Properties >>
<< Interaction Object toolbar | Setting UI Object Properties >>

Adding Support Script Components

Developing and Working with the Application Map
4-28
3. Point to and click the image of the next control for which you want to insert a
component. Continue to point and click until you have added all of the
components necessary for the interaction.
4. To end the multiple selection process, click inside the Interaction Objects view,
or press
ESC
as you move the pointer.
Adding Support Script Components to an Interaction Object
If the operations needed to bring the AUT to a given state cannot be accomplished
using UI object components in an interaction object, you can add a support script
component to the interaction object to help drive the AUT to the target state. For
example, if a grid control (which TestFactory cannot currently exercise) leads to
unexposed user interface, you can record the required actions in a Robot script, and
then add that script to the interaction object.
To add a support script to an interaction object:
1. In the application map, click the interaction object.
2. Drag the support script object from the left pane to the Interaction Object view.
During mapping and testing, TestFactory exercises the script in the order that you
list it in the Interaction Object view.
Copying and Pasting Interaction Objects
If you want to insert an interaction object that includes the same components as an
existing interaction object, you can copy the existing interaction object, and then
paste the copy in the map.
To insert a copy of an existing interaction object in the application map:
1. Right-click the existing interaction object, and then click Copy on the
shortcut menu.
2. Right-click the UI object mapped for the last control involved in the
navigational path that leads to the state you want to map, and then click Paste
on the shortcut menu.
NOTE: You can only paste a copy of an interaction object within the same top
level window that contains the original interaction object. If you insert the copy at
a different UI object than the original interaction object, then TestFactory
replaces the last component in the interaction object with a component for the
new parent UI object.