Skip to main content

Call a Test Case Within Your Test Script

Reuse an existing Test Case inside a Multi Steps script. Learn where to insert it, check its version, and resolve common Call Test Case issues.

Use Call Test Case to reuse an existing Test Case within another Test Case’s script. For example, call your sign-in Test Case from a checkout script instead of copying its steps.

Before you begin

  • Open the Test Case that will contain the call. Its script must use Multi Steps and contain at least one step.

  • Make sure you have permission to edit this Test Case and can find the Test Case you want to reuse.

  • Review the reusable Test Case and the version you intend to call.

Test Script type menu showing Multi Steps, Plain Text, and BDD options.

Call an existing Test Case

  1. Open the destination Test Case’s test script.

  2. Select one step after which you want to insert the call.

  3. In the floating toolbar at the bottom of the script, select the Call Test Case icon.

  4. In the selection window, choose the Jira space and find the Test Case. You can browse its folders or search for it.

  5. Select the checkbox beside each Test Case you want to call. Check the displayed key, headline, and version before continuing.

  6. Select Call. After the window closes, check that the called Test Case appears in the intended position in your script.

A selected test step and the floating toolbar containing the Call Test Case action.

Test Case selection window with a checkbox, readable case key, headline, and version.

Understand the version being reused

The call stores a reference to the selected Test Case version. For example, calling DEMO-C12 version 1 from DEMO-C46 records version 1 in that script.

Creating a newer version of the reusable Test Case does not automatically change the version recorded by an existing call. Check the version when reviewing or maintaining scripts that reuse it.

Troubleshoot a call

What you see

What to check

The Call Test Case action is unavailable

Select exactly one step in a Multi Steps script. Selecting several steps disables the floating-toolbar action.

The current Test Case cannot be selected

A Test Case cannot be selected to call itself in the selection window. Choose a different Test Case.

“Test Case (…) already exists”

That Test Case is already called in this destination script version. Review the existing call instead of adding it again.

If an error appears after selecting several Test Cases, review the script before retrying. Some calls may already have been added.

Watch the walkthrough

The video shows the call workflow. Some screen layouts and button labels have changed; use the steps above for the current Call action.

Related guides

Did this answer your question?