How can I reuse (Regression) test cases from one project to another project?

Darren Watters
Contributor
January 12, 2020

How can I reuse (Regression) test cases from one project to another project?

2 answers

1 vote
Fernando Bordallo
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 12, 2020

Hello @Darren Watters

Can you add some details about which tool you are using the create the test cases and how you link them to the project?

Darren Watters
Contributor
January 12, 2020

Hi Fernando, 

We are using Jira to create the test case and Zephyr to add test details and execute;

1. Jira Software (Cloud)

2. Zephyr for Jira - Test Management Cloud

Cheers

Darren

Fernando Bordallo
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 12, 2020

👍 thanks for the info. With that set up you can indeed reuse test cases between projects. After all, a test case is 'an issue'. You go about it in a few ways:

  • add existing tests by ID to the newly created test cycle in your second project
  • use a JQL filter to add the test cases to the newly created test cycle in your second project
  • clone the test cycle in the second project

Docs: https://zephyrdocs.atlassian.net/wiki/spaces/ZFJCLOUD/pages/21757980/Adding+Tests

Darren Watters
Contributor
January 12, 2020

I am currently logged into the new Project called "EL".

From the "Cycle Summary" screen in Zephyr when I try to add a test from an existing project called "EP" to the new project called "EL" as per the screenshot below when searching for an individual test to add I cannot see any test cases which where created in EP to add to EL?

 

  Trying to add an existing TC to a new project.jpg

Like Adrian Stephen likes this
Darren Watters
Contributor
January 12, 2020

I am also unable to add existing test cases from "project EP" to a new "project EL" Via Search Filter:

Via Search Filter1.jpgVia Search Filter2.jpg

Like Fernando Bordallo likes this
Fernando Bordallo
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 12, 2020

Seeing the error 'Belongs to another project', I understand it leaves option 3 as the last resort:

  • Clone the test case issue
  • Move the issue to the second project
  • Add to the test cycle
Darren Watters
Contributor
January 12, 2020

Fernando, can you please elaborate on how I should go about cloning test cases from the old project to the new project in order to resolve this issue?

Fernando Bordallo
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 12, 2020

Sure!

Attached you can see a full view of an issue. In the top right corner, you can open the options dropdown and click on 'Clone' issue. It will take you to a multi-step process that will create a replica of your issue within the same project. You can then go ahead and select the 'Move' option (same dropdown) and take follow the process to take it to your second project.

Screen Shot 2020-01-13 at 3.53.01 pm.png

Like Jarvis Yang likes this
Darren Watters
Contributor
January 12, 2020

Fernando, so I can confirm that this multi-step process to Clone and then Move a test case (singular) from an existing project to a new project works but if I have to do this for 100+ test cases......I will be here forever :-)

Is there a more efficient way of achieving the same result for more than 1 test case at a time?

Fernando Bordallo
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 12, 2020

Great point! 😄

I believe your best option will be the export tool: https://zephyrdocs.atlassian.net/wiki/spaces/ZFJCLOUD/pages/21757975/Exporting

With it, you can export the 100+ tests you have and then import them into a different project. I haven't tried this before 🤔but I'd definitely give it a go.

Alternatively, I'd try to create a clone of the Test Cycle (bottom of this doc page: https://zephyrdocs.atlassian.net/wiki/spaces/ZFJCLOUD/pages/21757979/Creating+Cloning+and+Viewing+Test+Cycles) and then move the complete cycle to the second project, although I'm not sure if this can be done.

Let me know if either of these work for you!

Mar Galán
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 8, 2021

Hi Fernando! I have the same problem.

Is it possible to reuse the same test cases (avoiding cloning them) in different projects? I actually have to run the same test cases, but I need to test functionalities from the second project so I don't want to clone the test cases. 

0 votes
Brian Walker
Contributor
January 12, 2020

Hi Daren,

I am using QMetry Test Management for Jira which will help me to reuse my test cases across different project and also allow to export my test cases from one project to another project, one QMetry Jira instance to other QMetry Jira instance or export to excel so it covers all most all the possible way which we are generally using it.

Here is the Marketplace Link:

https://marketplace.atlassian.com/apps/1215144/qmetry-test-management-for-jira?hosting=cloud&tab=overview

- Brian

Daniel Hong
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 4, 2020

But, this still requires you to export from one project and import to another, right?

There is not way to use the test case directly?

Also, does QMetry allows you to create 2 execution for a single test case in a test cycle? For example, there are 2 defects that are being worked on that can be tested by the same test case.  We want them tested separately and not have to wait for both to be completed. Can 2 separate executions for the same test case be created? The way to do this in ZFJ is to create a folder (messy).

Suggest an answer

Log in or Sign up to answer