Forum Discussion

dave033's avatar
dave033
New Contributor
9 years ago
Solved

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:

    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.

     

2 Replies

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    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.

     

    • dave033's avatar
      dave033
      New Contributor

      Thanks Tanya

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

      Thank you for your assistance

       

      Dave