Forum Discussion
Hello ash10,
That's a problem which has bugged me for quite some time. Here is what I did:
1 - I close the application and open it again every time I start a Test item, like this:
/*Terminates the application, for suuuuureee :) */
Sys.OleObject("WScript.Shell").Run("TASKKILL /F /IM myApplication.exe");
/*Wait 3 seconds, just for preventing the application from crashing, because you just killed it ;)*/
aqUtils.Delay(3000);
/*Launch the application*/
Sys.OleObject("WScript.Shell").Run("myApplication");
2 - I terminate the application every time a Test Item is finished.
/*Terminates the application, for suuuuureee :) */
Sys.OleObject("WScript.Shell").Run("TASKKILL /F /IM myApplication.exe");
Some docs that inspired me: http://support.smartbear.com/viewarticle/56565/
That works perfectly fine to me. Let me know if that works for you too.
Regards,
Leandro de Araújo Souza
Related Content
- 10 years ago
Recent Discussions
- 3 days ago
- 3 days ago
- 6 days ago