3.2 Manual creation of procedures

There is more than one way to create procedures and insert procedure calls. The following steps use the manual approach by inserting an (empty) procedure node and moving the respective actions into it. Then create the respective procedure call.

These basic steps are worth knowing, 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 3.2:  Create a procedure node

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

Fill procedure
Figure 3.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 3.4:  Insert a procedure call
Select a procedure
Figure 3.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 3.6:  Test-suite with procedure

When executing the test cases the reset will work exactly like it did before. In the run log you will see the same executed node as before, only preceded by the procedure call.