Page 1 of 1

Java Program Freezes, Causing Ranorex to Crash

Posted: Thu Mar 08, 2012 12:33 am
by AppTester
Hi,

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.

Re: Java Program Freezes, Causing Ranorex to Crash

Posted: Thu Mar 08, 2012 12:39 am
by Ciege
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...