The Action toolbar contains options that enable you to view the top-level actions in the test flow or to view any action stored with your test (whether or not the action is actually called in the test). The Action toolbar is automatically displayed above the Keyword View when a reusable or external action is included in test.

Tip: You can display or hide the Action toolbar in the Keyword View by choosing View > Toolbars > Action.

In the Expert View, the Action List is always visible and the Expert View always displays the steps for the selected action.

The Action List enables you to view either the test flow (the calls to the top-level actions in the test) or you can view the steps for a selected reusable or external action. Selecting Test Flow in the Action List displays the overall flow of your test with all the calls to the top-level actions in your test. The test flow also enables you to view and edit the individual steps of non-reusable actions. An action view displays all the details of the selected reusable or external action.

Actions Toolbar in QTP

In the test flow, reusable actions are not expandable. You can view the expanded steps of a reusable action by selecting the action from the Action List.

There are several ways to open the action view for a reusable or external action in the Keyword View:

  • In the Test Flow pane, double-click the action you want to view.
  • Use the Action toolbar to display the top-level Test Flow and then double-click the call to the action you want to view.
  • Use the Action toolbar to display the top-level Test Flow and then highlight the call to the action you want to view and click the Show button.
  • Select the name of the action from the Action List.

You may have actions that are stored with your test, but are not currently called from your test. (They may be called by other tests, and you can insert calls to these actions from within your test, if needed).

Actions that are not called in your test are not displayed in the Test Flow Pane, but they are displayed in the Action List. You can select these actions to view or edit their contents.

If an action is stored with your test but is not called by the test, and you are sure that you do not need the action for this test or any other test, you can delete the action from the test.

0 comments