Sys.Restart method logs off the operating system, shuts down the computer and then reboots it. You can call this method at the end of your test to restart the computer after the test run.
Note, that unlike the
Sys.Restart does not log onto the computer. If you need to continue the test execution after restart, use the
aqEnvironment.RebootAndContinue method instead.
The method is applied to the following object:
Sys.Restart method requires TestComplete to be running with administrator privileges.
To view an example that demonstrates how to use the
Restart method, see Shutting Down and Restarting Computer After Test Run.
Shutting Down and Restarting Computer After Test Run