Stopping the Open Agent After Test Execution

You can stop the Open Agent by using the command-line option -shutDown or from a script, to ensure that the agent does not continue running after the end of the test execution. The following code sample shows how you can stop the Open Agent from the command line:
openAgent.exe -shutDown

To stop the agent from a script:

  1. Open or create a script that is executed when the test execution is finished. For example, open an existing script that is used for cleanup after test execution.
  2. Add the shutdown method to the script.
Note: The Open Agent will restart as soon as the agent is required by another script.