dave033
9 years agoNew 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.
Hi Dave033,
You can use the Data-Driven feature for this. Do the following:
- Add the DataSource test step and specify the path to the file that will contain the list of virts there.
- Add the VirtRunner test step – in Virt name (title), specify the property that will get the data from your data source in the ${} format.
- Add the DataSource Loop test step to finish the loop.