Applies to TestComplete 14.70, last modified on October 26, 2020

Description

The Sys.Shutdown method logs off the operating system and then shuts down the computer. You can call this method at the end of your test to shut down the computer after the test run.

Declaration

Sys.Shutdown()

Result None

Applies To

The method is applied to the following object:

Sys

Result Value

None.

Remarks

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

Example

To view an example that demonstrates how to use the Shutdown method, see Shutting Down and Restarting Computer After Test Run.

See Also

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

Highlight search results