Java Program Freezes, Causing Ranorex to Crash

Ask general questions here.
Posts: 20
Joined: Thu Sep 29, 2011 12:11 am

Java Program Freezes, Causing Ranorex to Crash

Post by AppTester » Thu Mar 08, 2012 12:33 am


I'm not too sure how many people experience this issue, but I'm guessing it's rare.

I'm testing a Java application that freezes at one point. After clicking a button to add some records, the UI freezes for some time while. That is how the application is supposed to work. The issue for me is that the program freezes for a different period each time, depending on how many records are being added. Could be 30 seconds, could be 30 minutes. While I wait for the program to respond, it interferes with Ranorex, causing the test to crash.

I'm wondering, is there a way to handle a program freezing for an unknown amount of time? Or even better, is there a way I can determine how long the program will freeze, so I can delay Ranorex while the freezing occurs.

Please help.

User avatar
Posts: 1336
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: Java Program Freezes, Causing Ranorex to Crash

Post by Ciege » Thu Mar 08, 2012 12:39 am

1) Can you expand on what you mean by "ranorex crashes"? Is it just the test is failing?
2) Are you setting a hard timeout for a find element?
3) Have you tried wrapping your find in a try/catch loop to catch any not found exception and then looping while the element is not found?

Lots of possibilities here depending on your answers above...
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!