Page 1 of 1

enable continue on fail

Posted: Mon Nov 03, 2014 5:33 pm
by strannik
Hi All,

Is it possible to change time for Enable continue on fail settings when Ranorex is looking for an item?

For an example in my case it is 1m or 1.5m. I need to decrease time that script will run faster.

Thank you.

Re: enable continue on fail

Posted: Mon Nov 03, 2014 6:23 pm
by krstcs
The time that Ranorex takes to find an item is based on the Search Timeout of the item and it's parent item(s). It is called the "Effective Timeout" and in order to change it you must change the timeout of the element and all of it's parent objects in the repository.

BUT---
Changing the search timeouts will NOT speed up your test run significantly, it will only make it FAIL faster because you aren't giving Ranorex sufficient time to find objects. You cannot make Ranorex go faster and still expect it to be accurate. It must be given time to find (or NOT find) objects. Remember that the search timeout is only the MAXIMUM time that Ranorex will wait before it fails, not the minimum.

If you are expecting an object to not be found, then there are better ways to handle it than using "Continue on Fail" and manipulating the timeouts so it fails faster. Continue On Fail should be used only when you don't care if an action fails, and it will still wait for the full timeout before it fails due to not finding on object.

You could use WaitFor.NotExist() (or WaitFor.Exist()). It will wait until either the specified timeout is reached (and throw a failure) or the item is not present (or present).

Re: enable continue on fail

Posted: Mon Nov 03, 2014 8:37 pm
by strannik
Thank you krstcs,

I need script to continue executing after it is not find the item that's why I was asking is it possible or not to change settings.