Insert an application control into the script by using an application visual

You can modify a test script to test additional application controls by inserting controls into the script by using an application visual.


Before you begin

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:


Procedure

  1. 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.

  2. In the Application view, point to the control that you want to insert into the test script. The control is highlighted in red.

  3. Right-click and select Insert control name control > action on the control. 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.

  4. Click File > Save to save the modified test script.

    You can change the action on the control or set the playback or log details for the inserted test line in the Properties view.


Related concepts

Work with application visuals

Related tasks

Enable application visuals

Update the application visuals in the Application view

Insert a data verification point into a script by using an application visual

Insert an image verification point into a script by using an application visual

Create group verification points

Editing a simplified script

Insert data-driven commands into a script by using an application visual

Related reference

Application View

+

Search Tips   |   Advanced Search