12.2 Manual creation of procedures

There is more than one way to create procedures and insert procedure calls. We will start with the manual one by inserting an (empty) procedure node and moving the respective actions into it. Then create the respective procedure call.

Note those basic steps, but there is a second more elegant way of creating procedures, which is explained afterwards.

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

Create procedure node
Figure 12.2:  Create a procedure node

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

Fill procedure
Figure 12.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 12.4:  Insert a procedure call
Select a procedure
Figure 12.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 12.6:  Test-suite with procedure

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