Shutdown Method (AgentClass)

Class

AgentClass.

Action

Call this method to ensure that the Open Agent stops after a test run, for example after a nightly test execution. You should only call this method at the end of a test execution, and not before all actions of the test are executed. If any actions would follow the Shutdown, the agent would be restarted. Alternatively, the following code sample shows how you can stop the Open Agent from the command line:
openAgent.exe -shutDown

Availability

This functionality is supported only if you are using the Open Agent.

Syntax

Shutdown()

Example

The following example shows how you can use the TestPlanExit method in a test plan to close the agent:
	[-] TestCaseExit (BOOLEAN bException)
		[ ] Agent.Shutdown()