Sys.Restart Method

Applies to TestComplete 14.0, last modified on January 23, 2019

Description

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.

Declaration

Sys.Restart()

Result None

Applies To

The method is applied to the following object:

Sys

Result Value

None.

Remarks

Using the Sys.Restart method requires TestComplete to be running with administrator privileges.

Example

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
Sys.Shutdown Method
aqEnvironment.RebootAndContinue Method

Highlight search results