Reuse a test | Tutorial
Watch this short video to learn how you can group sequential steps in a test for reuse and how you can then include them in other tests. This is an efficient design pattern because once you have prepared a module for reuse, if you need to make a change, you only need to make it in the grouped module. All other tests using that module will automatically reflect the change.
Note: You can build your tests top-down, by including all relevant steps and then breaking them down into sections or modules, or bottom-up, by first creating smaller modules, such as a login process, and then incorporating those smaller modules into more comprehensive tests. This is a simply a matter of preference
For your convenience, we have also listed the steps for the main procedures below the video.

- Open the canvas in Advanced Mode.
- Hold down the Shift key and, with the left mouse button selected, drag your pointer across the steps you want to group and then release it. A rectangle appears around the selected steps.
- To group the steps, click the Group icon at the bottom right corner of the rectangle.
- In the Group Elements dialog box, enter a name for the grouped steps.
- Click GROUP. The steps collapse into a single step. Scripfless has saved them as a separate test that is now available in theTests viewSpecs view.

- Open another test on the canvas, in Basic Mode.
- Select the step prior to where you want to add the reuse module, and click Add step > More.
- In the Add Flow Element dialog box, from the Element list, select Test from the list.
- From the Name of Test list, select the test you want to reuse.
- Click ADD.
- Save your test.

Do one of the following:
- On the advanced canvas, click the collapsed step and then click the Drill to test icon on the right. The grouped step opens as a separate test on its own canvas. Edit it as you would edit any other test.
- On the basic canvas, expand the grouped step and click the edit icon at the top of the step. If the grouped steps are included in other tests, keep in mind that the changes you make here also apply to those tests.