Use reusable test steps

Reusable test steps are sets of steps that you can reuse across multiple test cases. If anything changes in your application under test and you update your reusable test steps, Tosca Cloud automatically updates all test cases that contain them. This reduces test maintenance effort, so you can focus on getting your application ready for release.

Create reusable test steps

To create reusable test steps, follow these steps:

  1. In the menu bar on the left, select Create test case.

  2. Select Reusable test steps. Then, select + Create reusable test step.

  3. Use the editor to create your reusuable test steps. You can add standard objects, modules, and reusable test steps from the left pane.

  4. Name your reusable test step and select Save.

You can now add your resuable test steps to your test cases. Just go to the test case and select Reusuable test steps from the left pane. Then select the plus icon next to the one you want to use.

To check which test cases—or other reusable test steps—use a particular reusable test step, select View references.

Convert test step folders into reusable test steps

If your test case has a test step folder you want to reuse, you can convert it into reusable test steps. To do so, follow these steps:

  1. Go to the test case where you have the test step folder you want to convert.

  2. In the center pane, find the test step folder you want to convert and select . Then, select Convert into reusable test step.

Tosca Cloud creates reusable test steps with the same name as your test step folder. You can now view, edit, and use your new reusable test steps.

Convert reusable test steps into test step folders

After you add reusable test steps to your test case, you can convert them into a test step folder. Once you convert them, any changes you make to your new test steps do not affect your reusable test steps. That means you can edit them to fit your test case without changing your reusable test steps.

To convert your reusable test steps into a test step folder, follow these steps:

  1. Add a reusable test step to your test case.

  2. Select . Then select Convert into test step folder.

Once you convert your reusable test steps, the business parameters become normal values in test steps.

Use business parameters

Business parameters display a summary of the relevant business-based information in a reusable test step.

To create and use business parameters in a reusable test step, follow these steps:

  1. Hover over the test step Business Parameter.

  2. Select and select Create Parameter (child to selected).

  3. Go to Test Steps and enter the parameter name in curly brackets: {PL[<Business Parameter Name>]}.

  4. Use the reusable test step in a test case.

There are some limitations to using business parameters:

  • You can't use business parameters as a reference to other business parameters.

  • You can't nest business parameter values. For example, you can't use {PL[{PL[<Business Parameter Name]}]}.

What's next

Check out other test design elements that help you build better test cases, faster:

You're done building? Do a trial run of your test case, so you can find and fix instabilities before you run your tests in earnest.