Sys.Restart Method

Applies to TestComplete 15.64, last modified on June 12, 2024


The 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 aqEnvironment.RebootAndContinue method, Sys.Restart does not log onto the computer. If you need to continue the test execution after restart, use the aqEnvironment.RebootAndContinue method instead.



Result None

Applies To

The method is applied to the following object:


Result Value



Using the 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.

See Also

Shutting Down and Restarting Computer After Test Run
Shutdown Method
RebootAndContinue Method

Highlight search results