Page 1 of 1

The test run has been aborted by the user

Posted: Thu Aug 18, 2011 8:52 pm
by DMyers
Hello,

I have been using Ranorex for almost 3 months now and have had great success in automating our software suite.

However, I have noticed some odd behavior on occasion.

I have created a test suite in Ranorex and have scheduled it to run once every day starting from a scheduled task. It is running on a system with a Ranorex runtime license. The majority of the time, it runs successfully, but sometimes it only runs part way through and then stops.

Upon reviewing the report, when it does not run successfully, I find the execution reports that it was aborted due to "The test run has been aborted by the user."

This occurs randomly. It might occur 5 minutes into the execution, or it might occur 30 minutes into the execution.

The system it is running on does not have a monitor, keyboard, or mouse attached to it, nor is it touched by anyone other than myself, so there is no way a user could have aborted it.

What could be causing this? There is no further details, or stacktrace as to what caused it, so I am unable to troubleshoot the root cause of this issue.

Thank you.

Re: The test run has been aborted by the user

Posted: Fri Aug 19, 2011 11:48 am
by Support Team
Hi,

Are you using multiple Threads, or are you manually abort such Threads in your Ranorex Solution?
Please try to comment the following line of code in your Programm.cs file out:
//Keyboard.AbortKey = System.Windows.Forms.Keys.Pause;
Normally this error message is only shown if a thread was aborted.

Regards,
Markus
Ranorex Support Team

Re: The test run has been aborted by the user

Posted: Fri Aug 19, 2011 3:14 pm
by DMyers
I searched through the entire code, and confirmed that I am not using multiple threads, nor am I executing Thread.Abort on anything.

I am using Thread.Sleep in a couple of locations, to pause the current (and only) thread for a short period.

I commented out the Keyboard.AbortKey assignment in Program.cs.

This morning I re-ran the suite twice, and during one run, the "The test run has been aborted by the user" issue occurred again.

Is there any way to dig deeper into the root cause of this?

Re: The test run has been aborted by the user

Posted: Tue Aug 23, 2011 9:31 am
by Support Team
Hi,
DMyers wrote:Is there any way to dig deeper into the root cause of this?
Would it be possible to send us your whole solution to [email protected] ? So we can check if there are any issues inside, because at the moment we have no clue why the test aborts. I would be also very helpful if you post us the settings for the scheduler.

Regards,
Peter
Ranorex Team