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

Hello,

 

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,492 views 0 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you