Stopping Ranorex test execution

Best practices, code snippets for common functionality, examples, and guidelines.
SurajJaldu
Posts: 29
Joined: Sat Feb 25, 2012 12:10 am

Stopping Ranorex test execution

Post by SurajJaldu » Thu Nov 08, 2012 1:16 am

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

User avatar
Ciege
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: Stopping Ranorex test execution

Post by Ciege » Thu Nov 08, 2012 3:49 pm

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.
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...

SurajJaldu
Posts: 29
Joined: Sat Feb 25, 2012 12:10 am

Re: Stopping Ranorex test execution

Post by SurajJaldu » Tue Nov 13, 2012 10:47 pm

Thanks for the reply Ciege. I tried your suggestion but unfortunately it didn't work for me. Execution was not stopping.

SurajJaldu
Posts: 29
Joined: Sat Feb 25, 2012 12:10 am

Re: Stopping Ranorex test execution

Post by SurajJaldu » Wed Nov 14, 2012 10:12 pm

I am now thinking to kill the Ranorex test processes. Any other suggestions?

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Stopping Ranorex test execution

Post by Support Team » Thu Nov 15, 2012 11:15 am

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)
.
Image

SurajJaldu
Posts: 29
Joined: Sat Feb 25, 2012 12:10 am

Re: Stopping Ranorex test execution

Post by SurajJaldu » Thu Nov 15, 2012 8:32 pm

Oh.. me..
For some reason I thought Abort didn't/wouldn't work and trying other ways. Thanks.. 'Abort' work well.