Schedule lab management to reboot machines?

Question ID: 109123

How can I use lab management to reboot the Lab Management machines prior to running the scheduled test sets. What I want to do is every night at 12:00 AM, I want to schedule a reboot of my 2 machines prior to running and scheduled test via lab management.

Marked as spam
Posted by (Questions: 88, Answers: 0)
Asked on July 30, 2019 2:43 pm
Private answer

Lab management can reboot machines but does not have a built in way to schedule a reboot of the machines. You would have a few options that you could use to accomplish this, the easiest way would be to create a ''scheduled task'' then create a basic task in windows that restarts the machine at the same time every night. As long as the machine restarts to the login screen and you have lab service set to do the auto login then the test should be able to kick off once it restarts.

This is an example of a restart/shutdown script

and here is a list of arguments that you can use for the windows shutdown script:

Also you could just make a simple batch script that restarts the machine and then call that batch script in a ''VAPI-XP'' test in alm and schedule that in the timeslots module of ALM.

Marked as spam
Posted by (Questions: 0, Answers: 327)
Answered on July 30, 2019 2:45 pm