Ask a Question

Rebooting Host System in Network Suite

wfetherolf
Occasional Contributor

Rebooting Host System in Network Suite

I've got a small project in a network suite with three slave projects and a master project.  I'd like to be able to reboot the system in between each job and run the next job when the system comes back up.  I was hoping to be able to use synchpoints in the function that I supply to the aqEnvironment.RebootAndContinue function, but it doesn't seem to be working.  Am I doing something wrong, or am I assuming that what I want to do is not the way the functionality was designed?  I've attached a copy of my project.  Thanks in advance for any help.
5 REPLIES 5
Abramova
Staff

RE: Rebooting Host System in Network Suite

Hi,


To reboot a slave computer after a job execution is over, you can just choose the Reboot computer item in the Action after run column for the last task in the job.

I’m not a member of the SmartBear Support Team, I’m just helping users in this community. Any views or opinions expressed do not necessarily represent those of SmartBear Software.
wfetherolf
Occasional Contributor

RE: Rebooting Host System in Network Suite

I'm having issues with that.  If the first job in my network suite calls for a reboot, the subsequent jobs fail to run.  Can't I use RebootAndContinue to set the SynchPoint to tell the other projects about the progress of the tests?
wfetherolf
Occasional Contributor

RE: Rebooting Host System in Network Suite

I've attempted to use aqEnvironment.RebootAndContinue on my slave machine, and I continue to get errors where it seems that the slave machine doesn't have permissions to submit the function call to be executed after the reboot.  I'm having difficulties with TestComplete/Execute waiting for the slave machine to come back after the reboot before attempting to execute the next job in the suite. 
wfetherolf
Occasional Contributor

RE: Rebooting Host System in Network Suite

I've worked around this issue, but it would be nice if we could query the host machine to determine the state of the machine (starting up, shutting down, available, unavailable) so we could determine if the host machine is available to execute tests.  I've seen the NetworkSuite.Hosts.Verify function, and it doesn't provide enough information.  It says that the host is available when the host is in a "shutting down" state.
Abramova
Staff

RE: Rebooting Host System in Network Suite

Hi Will,


I have talked to our developers and found out that the RebootAndContinue method cannot be used within a network suite. We'll add this note to the correponding help topic.


The only way to reboot computers involved in distributed testing is to set the Action after run option to Reboot computer.


To reboot the computers after job execution is over, follow the steps below:


1. Set the Action after run option to Reboot computer for each task in a job.

2. Add the Job.Run method to the test and specify the method's WaitForCompletion parameter to True.

3. Add the Delay method to the test. This method lets you delay the script execution until the computers restart. To know what time period to specify in the method's parameter, you need to know how long it takes for your computers to reboot. This way, you will be sure that the hosts are ready to continue running the tests.

4. Use the Job.Run method to run the next job.

I’m not a member of the SmartBear Support Team, I’m just helping users in this community. Any views or opinions expressed do not necessarily represent those of SmartBear Software.
cancel
Showing results for 
Search instead for 
Did you mean: