Is there any way to change default Validate action timeout
-
- Posts: 18
- Joined: Thu Apr 09, 2015 9:55 am
Is there any way to change default Validate action timeout
The default timeout is 60 sec for Validate action and i am not able to find option to change it based on different TCs. Generally it's quite irritating when we Validating if element does not exist.
-
- Certified Professional
- Posts: 455
- Joined: Tue Feb 18, 2014 2:14 pm
- Location: Co Louth, Ireland
- Contact:
Re: Is there any way to change default Validate action timeout
If you right click (on the repository item you are validating) and select properties, you can change the Search Timeout there. That will give Ranorex more time to find the item you are validating.
Will that do what you need?
Will that do what you need?
-
- Posts: 18
- Joined: Thu Apr 09, 2015 9:55 am
Re: Is there any way to change default Validate action timeout
Thanks Fergal,
But this will simply add more time to search that element. In my case i want to reduce it which is default set to 60 sec
But this will simply add more time to search that element. In my case i want to reduce it which is default set to 60 sec
Re: Is there any way to change default Validate action timeout
First, it is NOT recommended to LOWER the timeout from the default of 30s (per element) as this can make your tests fail unexpectedly due to Ranorex not being given enough time to find the element. Also, the timeout is the MAXIMUM time that Ranorex will search for an item. If it finds it before that, it will stop searching.
Second, the timeout used by Ranorex to find an item is called the "Effective Timeout" and is the cumulative timeouts of the element and all of it's parents in the repository tree. In order to change the timeout you would need to change all of the timeouts above as well.
Third, there is a new parameter on all Validate.Exist and Validate.NotExist actions that takes a Duration that will be used as the actual timeout, instead of the element's effective timeout.
Again, it is NOT recommended to lower the timeout unless you are sure Ranorex will ALWAYS have enough time to find the element.
In my opinion, automated tests are NOT about speed, that is only a by-product of the actual purpose, which is consistency. Human testers are not consistent. Automation does the same thing every time. You shouldn't need to watch it, so there should be no concern about the time spent search for things.
Second, the timeout used by Ranorex to find an item is called the "Effective Timeout" and is the cumulative timeouts of the element and all of it's parents in the repository tree. In order to change the timeout you would need to change all of the timeouts above as well.
Third, there is a new parameter on all Validate.Exist and Validate.NotExist actions that takes a Duration that will be used as the actual timeout, instead of the element's effective timeout.
Again, it is NOT recommended to lower the timeout unless you are sure Ranorex will ALWAYS have enough time to find the element.
In my opinion, automated tests are NOT about speed, that is only a by-product of the actual purpose, which is consistency. Human testers are not consistent. Automation does the same thing every time. You shouldn't need to watch it, so there should be no concern about the time spent search for things.
Shortcuts usually aren't...