It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

2 answers

1 vote

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?

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

👍 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

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

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

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

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?

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

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?

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!

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

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you