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

This widget could not be displayed.

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. 

This widget could not be displayed.

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
Posted yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

81 views 0 1
Join discussion

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