Ranorex executable hangs on Validate.NotExists()

Ask general questions here.
tallahassee101
Posts: 169
Joined: Thu Jan 13, 2011 2:06 pm

Ranorex executable hangs on Validate.NotExists()

Post by tallahassee101 » Tue Feb 22, 2011 7:14 pm

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Ranorex executable hangs on Validate.NotExists()

Post by Support Team » Wed Feb 23, 2011 1:41 pm

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

tallahassee101
Posts: 169
Joined: Thu Jan 13, 2011 2:06 pm

Re: Ranorex executable hangs on Validate.NotExists()

Post by tallahassee101 » Wed Feb 23, 2011 4:20 pm

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.

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

Re: Ranorex executable hangs on Validate.NotExists()

Post by Ciege » Wed Feb 23, 2011 4:35 pm

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?
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!

Ciege...

tallahassee101
Posts: 169
Joined: Thu Jan 13, 2011 2:06 pm

Re: Ranorex executable hangs on Validate.NotExists()

Post by tallahassee101 » Tue Mar 08, 2011 8:04 pm

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