Forum Discussion

Kateryna's avatar
Kateryna
Contributor
13 years ago

Stop TestComplete Suite execution using C# code

Hello, How can I stop TestComplete Suite execution using C# code? This is how my code looks like: object     TestCompleteObject = null; System.Diagnostics. ...
  • HKosova's avatar
    13 years ago
    Hi Kateryna,



    Do you mean that you want to stop the test as when clicking the Stop button in the TestComplete IDE? This isn't possible using command-line automation - you need to run TestComplete via COM or use the Connected Application technique instead. Please see examples in the Working With TestComplete via COM - Overview article.



    When using COM automation, you can stop tests using the IntegrationObj.Stop method, in Connected Applications - using Connect.StopTest.