QTP10.com is a new and completely free website that offers help in all the versions of HP QTP (including latest version 10). More importantly, it offers free code for users of HP QuickTest Professioal. This site helps you in learning the basics of QTP and descriptive/advanced programming in (QTP) on various environments like - .Net, Infragistics, Web, Windows, etc.

Note -
This blog is NOT affiliated with HP / Hewlett-Packard in any way. The data/questions come from various sources and we have our own testing questions. I am just another Software Tester like you.

Smart script creation with QTP's Action Toolbar in the Keyword View

Share This Post -

Sponsored Links:

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.

 

Go Back to: Working with Actions in QTP