Transforming nodes into procedures
As already mentioned at the beginning of the last section, QF-Test offers an alternative, much faster way to create a procedure:
- Action Select the test step or sequence node that contains the reusable steps to be transformed into a procedure.
- Select menu item »Operations«-»Transform node into«-»Procedure« or use the Ctrl+Shift+P shortcut.
You will find that the test step, respectively sequence node disappeared and there is a procedure call in its place. Moreover, a procedure was created in the Procedures section containing the child nodes of the former test step / sequence node and named the same.
It is good practice with QF-Test to record a sequence, give it a name and immediately turn it into a procedure via Ctrl+Shift+P if you suspect it to be of use somewhere else, too.