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 we will create the respective procedure call.
It is good to know those basic steps but there is a second more elegant way of creating procedures, which we will explain afterwards.
Okay, let's do it by hand. We will start with creating a procedure node and naming it appropriately.
- Action Open the Procedures node and keep it selected.
- Chose »Insert«-»Procedure nodes«-»Procedure«.
- Name it 'reset'. The other fields can be left empty.
- Press the OK button to finalize the creation of the procedure.
- Open the newly created 'reset' procedure node.

The second step is to fill the procedure with the respective reusable actions.
- Action Select the three 'Mouse click' nodes in the test step. To select more than one node at once you can select the first one, then press the Shift key and, while keeping it pressed, click the last node you want to select.
- Move them down into the procedure e.g. by mouse (drag&drop) or cut/paste from the »Edit« or context menu.

The third step is to add a procedure call to the place of the three 'Mouse clicks' you moved.
- Action Select the test step 'Reset', which is still open.
- Select »Insert«-»Procedure nodes«-»Procedure call« or use the Ctrl+A shortcut.

-
Action
On the dialog press
the procedure selection button
left of the label 'Procedure name'.
- Select 'reset' from your test suites procedures. Other fields can be left as they are.
- Press the OK button on both dialogs to finalize the creation of the procedure call.

In order get a real benefit from the procedure, of course, we also need to replace the content of reset test step in the second test case by the 'reset' procedure call, too.
You can do it the same way as before or use the following alternative steps to create a procedure call:
- Action Open the 'Reset' test step of the second test case.
- Remove the three 'Mouse click' action nodes therein.
- Select the 'reset' procedure node.
- Move it via drag&drop into the 'Reset' test step (copy/paste action can be used alternatively). This does not actually move it but create a respective procedure call.
The test suite should look like this:

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