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 to check out test code once, then use it to run multiple tests

I want to run a set of regression tests (built in Selenium and driven by NUnit) using Bamboo. As there are quite a few of them, and I want the results of every test to show up on the wallboard separately, I need to configure a plan for each of the tests (right?). But I do not want to have to perform a checkout / package restore / compilation sequence for my test code for every plan.

Is there a way to do a single checkout / package restore / compilation action first, then run several plans separately (either in sequence or parallel) using the test binaries that have been created?

2 answers



For one you can use shallow clones to lower the amount of data you get per fetch.

For another you can cache the data on your repository so it doesn't fetch all the data again. 


Then you could just define your results in different folders set them as artifacts and run all the tests in one job for example. This way all of the reports would come in one artifact page and you could run all the test in one job. This is very useful if you want to run the same things on your branches. This way you can just use bamboo branches in their full effect. 

Hello Kalle,


thank you for your answer. I have found what I think is a workable solution by:

  1. Defining a plan that checks out the code, compiles it and stores the binaries into an artifact
  2. Importing this artifact in subsequent plan that run the various test scenarios
  3. Defining these test plans as dependencies of the checkout / compile, meaning they are triggered automatically after that one finishes.


Hello, Yes you can actually also comment on an answer.


That's the normal way of doing it with any kind of environment. I just assumed you might want to run it as all bamboo like in your question. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Unable to add or edit Bitbucket Cloud repository in Bamboo

On 31 May, a GDPR-related change went live in the Bitbucket Cloud API that resulted in users not being able to create or edit Bitbucket Cloud Linked repositories in Bamboo. This API update removed t...

302 views 2 6
Read article

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