Hello,
We've integrated Ranorex with CCnet so CCNet could control test execution. Few of our tests are bit lengthy and sometimes I would like to stop the execution for whatever the reason. I tried with developing a small vbs program to send 'BREAK' key using Wscript Shell object and add this program as CCNet project but it is not stopping the execution.
Do you have some suggestions?
Thanks,
Suraj
Stopping Ranorex test execution
Re: Stopping Ranorex test execution
At the beginning of you scripts you can set what key you want to set as your AbortKey.
Set they key, then use that key from CCNet to abort the run.
Code: Select all
Keyboard.AbortKey = System.Windows.Forms.Keys.Pause;
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
-
- Posts: 29
- Joined: Sat Feb 25, 2012 12:10 am
Re: Stopping Ranorex test execution
Thanks for the reply Ciege. I tried your suggestion but unfortunately it didn't work for me. Execution was not stopping.
-
- Posts: 29
- Joined: Sat Feb 25, 2012 12:10 am
Re: Stopping Ranorex test execution
I am now thinking to kill the Ranorex test processes. Any other suggestions?
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: Stopping Ranorex test execution
Hello,
Simulating an 'Abort Key Press' using Ranorex would not work since Ranorex ignores key presses generated by itself. The easiest way to abort your test execution is to click on the 'Abort' button in CruiseControl.NET.
Regards,
Markus (T)
Simulating an 'Abort Key Press' using Ranorex would not work since Ranorex ignores key presses generated by itself. The easiest way to abort your test execution is to click on the 'Abort' button in CruiseControl.NET.
Regards,
Markus (T)
-
- Posts: 29
- Joined: Sat Feb 25, 2012 12:10 am
Re: Stopping Ranorex test execution
Oh.. me..
For some reason I thought Abort didn't/wouldn't work and trying other ways. Thanks.. 'Abort' work well.
For some reason I thought Abort didn't/wouldn't work and trying other ways. Thanks.. 'Abort' work well.