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: