cancel
Showing results for 
Search instead for 
Did you mean: 

Batch start (run) virts

SOLVED
Highlighted
New Contributor

Batch start (run) virts

Hi,

 

Currently I can use a virt runner step to start and stop all required virts as I need to.

 

My issue is that I wish to start a large number of virts, the composition of which change depending on my requirements at given time.

 

I would like to use a spreadsheet with a list of virts and have a script that loops through this and switches each virt on. This would allow me to quickly change the virt requirement and save quite some time.

 

I would like to ask if this is even possible and if so how could I go about getting this set up. I have tried but my limited knowlegde is hindering my success.

 

Many thanks

 

Dave.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Manager

Re: Batch start (run) virts

Hi Dave033,

 

You can use the Data-Driven feature for this. Do the following:

  1. Add the DataSource test step and specify the path to the file that will contain the list of virts there.
  2. Add the VirtRunner test step – in Virt name (title), specify the property that will get the data from your data source in the ${} format.
  3. Add the DataSource Loop test step to finish the loop.

 

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

2 REPLIES 2
Highlighted
Community Manager

Re: Batch start (run) virts

Hi Dave033,

 

You can use the Data-Driven feature for this. Do the following:

  1. Add the DataSource test step and specify the path to the file that will contain the list of virts there.
  2. Add the VirtRunner test step – in Virt name (title), specify the property that will get the data from your data source in the ${} format.
  3. Add the DataSource Loop test step to finish the loop.

 

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

Highlighted
New Contributor

Re: Batch start (run) virts

Thanks Tanya

After a bit of "trial and error" I have got this to work. 

Thank you for your assistance

 

Dave

New Here?
Join us and watch the welcome video:
Top Kudoed Authors