Page 1 of 1

Stopping Ranorex test execution

Posted: Thu Nov 08, 2012 1:16 am
by SurajJaldu
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

Re: Stopping Ranorex test execution

Posted: Thu Nov 08, 2012 3:49 pm
by Ciege
At the beginning of you scripts you can set what key you want to set as your AbortKey.

Code: Select all

Keyboard.AbortKey = System.Windows.Forms.Keys.Pause;
Set they key, then use that key from CCNet to abort the run.

Re: Stopping Ranorex test execution

Posted: Tue Nov 13, 2012 10:47 pm
by SurajJaldu
Thanks for the reply Ciege. I tried your suggestion but unfortunately it didn't work for me. Execution was not stopping.

Re: Stopping Ranorex test execution

Posted: Wed Nov 14, 2012 10:12 pm
by SurajJaldu
I am now thinking to kill the Ranorex test processes. Any other suggestions?

Re: Stopping Ranorex test execution

Posted: Thu Nov 15, 2012 11:15 am
by Support Team
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)

Re: Stopping Ranorex test execution

Posted: Thu Nov 15, 2012 8:32 pm
by SurajJaldu
Oh.. me..
For some reason I thought Abort didn't/wouldn't work and trying other ways. Thanks.. 'Abort' work well.