Page 1 of 1

How to view cause of errors / not runs?

Posted: Fri Dec 12, 2014 1:09 pm
by Fergal
Version 5.2.1

I have a simple test suite, with one Test Case, which includes two modules. One of the modules includes a user code method. When I try to run the tests, nothing happens and I don't receive any info on what's going wrong. Clicking either View > Errors or View > Output, doesn't show me anything.

When I comment out the user code method, the tests run fine and test reports are created, so obviously the problem is with my user code.

Should I not be receiving some kind of error report, when the tests don't run?

Thanks!

Re: How to view cause of errors / not runs?

Posted: Mon Dec 15, 2014 3:31 pm
by krstcs
Have you tried putting a break-point in your code module at the beginning of the code? Then step through the code using the "F11" key and see where it is hanging.

Re: How to view cause of errors / not runs?

Posted: Tue Dec 16, 2014 4:59 pm
by Support Team
Hi Fergal,

Unfortunately we are not aware of such an issue. May I ask you to send us your solution or a sample whereby this problem occurs?

This will help us to analyze the issue in more detail.
Thank you in advance.

P.S.: You can send the solution to [email protected] if you don't want to post it here in this forum.
Regards,
Markus (S)

Re: How to view cause of errors / not runs?

Posted: Thu Dec 18, 2014 3:56 pm
by Fergal
Thanks krstcs, I'm not familiar how to do that yet. However, my question is regarding the fact that I am not getting error reports, rather than the actual error itself.

Thanks Markus, I have sent an email with a problem project.

Re: How to view cause of errors / not runs?

Posted: Thu Dec 18, 2014 5:51 pm
by krstcs
To add a break-point, you need to view the actual code.

Then, in the left margin (grey area left of the line numbers and code) you just left-click. This will add a red "ball" that tells the system to pause execution at that point when you run the test. You can then use "F11" to step through each line of code.

This will allow you to see where the error is occurring and perhaps figure out the reason you are not getting error reports.

Re: How to view cause of errors / not runs?

Posted: Fri Dec 19, 2014 12:45 pm
by Support Team
Hi Fergal,

Thank you for sending us your project. I've already answered your email.
May I ask you to update this posting if the solution I've provided helps you overcome your issue.
Thank you.

Regards,
Markus (S)

Re: How to view cause of errors / not runs?

Posted: Wed Jan 14, 2015 1:14 pm
by Fergal
Thank you Markus, correcting the error you found allows the tests to run successfully. You also suggested un-installing and re-installing Ranorex to fix the issue re lack of error reports. I will reply back here once I have completed the re-installation.

Thanks again!

Re: How to view cause of errors / not runs?

Posted: Fri Jan 23, 2015 11:59 am
by Fergal
Fergal wrote:...You also suggested un-installing and re-installing Ranorex to fix the issue re lack of error reports...
That's been done now and it worked perfectly.

Thanks again, Markus!