Sys.Shutdown Method

Applies to TestComplete 15.45, last modified on December 01, 2022

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