background image
<< Inserting a Copy of an Action | FlightOrder action >>
<< Inserting a Copy of an Action | FlightOrder action >>
Delete an action from the test
Lesson 8 · Dividing Tests into Multiple Actions
83
Click the browse button next to the From test box. Select the ActionA test in
the Open Test dialog box, and click Open. The actions from the ActionA test
are displayed in the Action List. Note that the description of the highlighted
action is displayed in the Action description box.
Select the FlightOrder action. In the Location area, select At the end of the
test
. Click OK. The Copy of FlightOrder action is added to the end of the
test. Note that the call to the copy of the action you inserted is just like any
other action call in your test. You can modify the steps in the call to the
copied action just as you would those of any other action call.
3 Modify the Copy of FlightOrder action.
In the Keyword View, expand (+) Copy of FlightOrder > Welcome: Mercury
Tours > Find a Flight: Mercury
. Select fromPort and click the Value cell.
Change the value in the Value cell to
London
and click any other row in the
Keyword View.
4 Call the Copy of FlightOrder action after the Sign_in action.
You want the Copy of FlightOrder action to be immediately after the Sign_in
action. Since you cannot drag any action to be immediately after a reusable
action (because it is read-only in the calling test), you must perform the
following steps to change the order of the action calls.
Select the Copy of FlightOrder action and drag it immediately below the
Action1 action in the Keyword View. Then, select the Sign_in action and
drag it immediately below the Action1 action in the Keyword View. The
Copy of FlightOrder action is now immediately after the Sign_in action.
5 Delete Action1 from the test.
Every new test contains a default Action1 action call. You can now delete the
Action1 action call.
In the Keyword View, select Action1 and choose Edit > Delete or press the
Delete key on your keyboard. A confirmation message opens. Click Yes to
delete the action call.
6 Save the test.
Choose File > Save or click the Save button.