Share test cases with a different project

To save time and simplify your workflow, reuse test cases between projects. For example, you can share a test case from one project to create test runs in a different project. The test case displays in both projects, but you only need to maintain it in one.

Sharing a test case causes less work than copying a test case. If you copy a test case, you essentially create a second, separate test case, which means you need to maintain them both. We recommend that you save yourself some work: share, don't copy.

Activate test case sharing

To turn on test case sharing, follow these steps:

  1. Go to the project that contains the original test case.

  2. Select to open the Settings menu.

  3. Select the Test Case Settings option from the dropdown menu.

Any changes you make in test case settings only apply to the project you are currently in.
  1. In the Test Case Sharing section of the settings, define what to share with whom:

    • Turn on the Activation Status.

    • Select the Enable users to use Test Cases from other projects checkbox.

    • Select the Share this project's Test Cases with other projects checkbox.

    • In the Projects field, select the checkboxes in the Shared column for all projects that you want to share test cases with.

  2. Save your settings and Refresh your project.

Share a test case

Once you've activated test case sharing, you can share your test cases:

  1. In the project that contains the test case you want to share, go to the Test Design tab.

  2. In the tree panel, select the test cases that you want to share. You can also select test cases by module.

  3. Go to the Test Case Properties section and select the Shared checkbox.

  4. Select the project (or projects) you want to share to from the Projects Shared to dropdown.

  5. Save your changes to share the test case.

Notes

  • When you share a module, you also automatically share any sub-modules. If you have the Edit Test Cases permission, you also share the test case under the module.

  • When you create a new test case or sub-module under a shared test case, it shares by default. You can unshare it, if you want.

  • When you copy or move modules or test cases into a shared module, you can confirm whether you want to share the copied or moved module or test case.

Add test runs with a test case from another project

Once you share a test case, you can use the shared test case to create a test run. For details, check out Add Test Runs Using Test Cases from Another Project.

Before users in other projects can create test runs with a shared test case, you need to approve the test case at least once.

Use shared test cases in the Test Pad

Note that you can manually execute a shared test case or test run with the Test Pad, but you can't automate a shared test case or test run. This is because shared test cases and test runs can't be executed through the API, so they're incompatible with automation through Launch or Automation Host.

You can't edit a test run created from a shared test case in the Test Pad.

Unshare test cases

When you unshare a test case, any associated test runs in other projects become read-only.

When you unshare a module, you can choose to automatically unshare any sub-modules or test cases. If you don't have the Edit Test Cases permission, the test cases don't unshare.

One way to use Test Cases from another project is by sharing a Test Case for Test Execution. This function is used to create a Test Run in one project using a Test Case shared by another project.