Setting Actions as Reusable Actions

Reusable actions are like functions in programming. When you have a process that you may need to include in several tests, you record, modify, and enhance the steps of the process and save them in a reusable action. Then you can call the action from other tests, rather than recording, modifying, and enhancing the same steps each time.

To call an action from another test, you must make it a reusable action in the test with which it was stored. The Sign_in and ReturnHome action you created in this lesson can apply to almost any test you might create on the Mercury Tours site, so it makes sense to make them reusable actions.

Make the Sign_in action reusable.
In the Keyword View, right-click the Sign_in action and choose Action Properties. The Action Properties dialog box opens. Select the Reusable action check box and click OK. If a message box is displayed, read the message, click Do not show this dialog box again, and click OK. The action icon changes to a reusable action icon .

View the details of the Sign_in action.Note that you no longer have the option to expand the Sign_in action within the Keyword View.

If the Action List was not previously displayed above the Keyword View, it is displayed after you convert the action to a reusable action. The Action List displays a list of all reusable and external actions in the test.

View the details of the Sign_in action by selecting Sign_in from the Action List. The details of the Sign_in action are displayed.

In the Action List, select Test Flow to return to the main flow of the test in the Keyword View.

Make the ReturnHome action reusable.
Repeat steps 1 and 2 for the ReturnHome action.

Save the test.
Choose File > Save or click the Save button .

Comments

Popular posts from this blog

2.Areas of Deployment

Sample QA/Testing Resume