Forum Discussion
HKosova
13 years agoSmartBear Alumni (Retired)
Hi Kaushik,
I've never used TeamCity, and I don't know how its stop tests mechanism works. So, I'm afraid, I won't be of much help here. You'll probably get a more useful answer from other TeamCity users like yourself.
Nevertheless, here're some thoughts. I suspect that when you stop your console app from TeamCity, it only stops the app itself and not other processes that it launched, that's why, TestComplete keeps running.
It seems possible to programmatically detect when an application is terminated; at least, I've found some examples on the Internet:
http://stackoverflow.com/questions/474679/capture-console-exit-c-sharp
http://stackoverflow.com/questions/4186551/ways-to-kill-a-running-program-and-how-to-trap-them
You can handle this situation in your console app and call the Quit method of TestComplete's COM object to force it to exit.
Hope this helps!
p.s. In the future, please post subsequent questions, which are not closely related to the original question, in a new thread. This makes it easier for other users to find answers by browsing and searching the forums. Thanks!
I've never used TeamCity, and I don't know how its stop tests mechanism works. So, I'm afraid, I won't be of much help here. You'll probably get a more useful answer from other TeamCity users like yourself.
Nevertheless, here're some thoughts. I suspect that when you stop your console app from TeamCity, it only stops the app itself and not other processes that it launched, that's why, TestComplete keeps running.
It seems possible to programmatically detect when an application is terminated; at least, I've found some examples on the Internet:
http://stackoverflow.com/questions/474679/capture-console-exit-c-sharp
http://stackoverflow.com/questions/4186551/ways-to-kill-a-running-program-and-how-to-trap-them
You can handle this situation in your console app and call the Quit method of TestComplete's COM object to force it to exit.
Hope this helps!
p.s. In the future, please post subsequent questions, which are not closely related to the original question, in a new thread. This makes it easier for other users to find answers by browsing and searching the forums. Thanks!
Related Content
- 6 years agoSol
- 3 years agovaishalisaid
Recent Discussions
Name Mapping Issue
Solved58 minutes agokgreger1- 2 days agodhundley