You can modify a test script to test additional application
controls by inserting controls into the script by using an application
visual.
Prerequisite: The visuals of a test application are
captured only if both the simplified scripting and the application
visuals feature preferences are enabled during recording. The Application
View displays the application visuals that can be used
for inserting additional controls into the script for testing without
opening the test application.
To insert a control into a test script:
- Select the test line in the script editor that refers to
the required application visual of the test application.
The
application visual that contains the control is displayed in the
Application
view.
Tip: The thumbnail pane in the Application
view displays images of all the application visual that are captured
for the project. You can select the required application visual image
in the thumbnail pane and view the application visual in the Application
view.
- In the Application view, point to the control that you
want to insert into the test script. The control is highlighted in
red.
- Right-click and select .
The actions
that can be performed on the control are listed when you select a
control in the Application view.
The test line for
performing the action on the control is inserted into the test script.
You can drag the test line in the script editor to get the required
sequence of test lines in the script.
Tip: To
insert a control into the script, you can also drag the control from
the application visuals to the script editor. The test line for performing
the default action on the control is inserted into the test script.
- Click to save the modified test script.
Note: You
can change the action on the control or set the playback or log details
for the inserted test line in the Properties view.