21.2 Manual creation of procedures

There is more than one way to create procedures and insert procedure calls. Start with the manual approach by inserting an empty procedure node and moving the respective actions into it, then create the respective procedure call.

Note that there is also a more elegant way of creating procedures, explained afterwards.

Perform the following steps manually. Start by creating a procedure node and naming it appropriately.

Create procedure node
Figure 21.2:  Create a procedure node

The second step is to fill the procedure with the respective reusable actions.

Fill procedure
Figure 21.3:  Fill in the procedure content

The third step is to add a procedure call to the place of the three 'Mouse clicks' you moved.

Insert procedure call
Figure 21.4:  Insert a procedure call
Select a procedure
Figure 21.5:  Select a procedure

To get a real benefit from the procedure, you also need to replace the content of the reset test step in the second test case with the 'reset' procedure call.

You can do it the same way as before or use the following alternative steps to create a procedure call:

The test suite should look like this:

Test-suite with procedure
Figure 21.6:  Test-suite with procedure

When executing the test cases, the reset still works as before. In the run log you will see the same executed node as before, only preceded by the procedure call.