Page 1 of 1

Ranorex executable hangs on Validate.NotExists()

Posted: Tue Feb 22, 2011 7:14 pm
by tallahassee101
Hi,

I've been diagnosing several problems lately with Validate.NotExists() hanging the ranorex executable during execution. My software has been crashing and gets hung up on Validate.NotExist() calls to repo items that have not had this issue in the past. I was wondering if there are any known issues related to the NotExist() that I should be aware of, or anything that would cause a ranorex executable to hang indefinitely. The search timeout of the ranorex objects are set to reasonable 10 - 30 seconds.

Thank you

Re: Ranorex executable hangs on Validate.NotExists()

Posted: Wed Feb 23, 2011 1:41 pm
by Support Team
Hi,

does this problem occur only on one validation in your code, or are there more occurences?
Basically there schould be no problems with using NotExists().
Have you tried to use another validation method on this item?
How is the behaviour in this scenario?

Regards,
Tobias
Support Team

Re: Ranorex executable hangs on Validate.NotExists()

Posted: Wed Feb 23, 2011 4:20 pm
by tallahassee101
I have had it happen on several different NotExists() in my code and it does not happen every time. I tried using a different validation and had no issues, so that is why I am wondering if there is something wrong with the NotExists() that is making it function differently.

Re: Ranorex executable hangs on Validate.NotExists()

Posted: Wed Feb 23, 2011 4:35 pm
by Ciege
1) have you walked (in debug mode) your code to watch exactly what is happening at each step?

2) can you share the code that you are using to do you validate (and maybe a few lines before and after) so we can take a look at exactly what you are doing?

Re: Ranorex executable hangs on Validate.NotExists()

Posted: Tue Mar 08, 2011 8:04 pm
by tallahassee101
I recently upgraded to Ranorex 3.0 and have not noticed this occuring anymore. Whatever the bug was it seems to have been resolved in 3.0