Throw exception time [Customer ID: RX714188 INNOVID]

Class library usage, coding and language questions.
User avatar
amirb
Posts: 7
Joined: Tue May 28, 2013 9:24 am

Throw exception time [Customer ID: RX714188 INNOVID]

Post by amirb » Thu Aug 22, 2013 6:02 pm

Hello,

I'm encountering a scenario when i using the Exist() method to check if a certain repository item exist.
The expected is being thrown only after 1 minute.
Is it possible to change the throw exception time to be lower (like 20 seconds) using some Ranorex IDE configuration or code? and if so can you please provide an example?

Best Regards
Amir Buchvalter
Innovid.com

kmck
Certified Professional
Certified Professional
Posts: 83
Joined: Fri Jul 12, 2013 2:41 pm

Re: Throw exception time [Customer ID: RX714188 INNOVID]

Post by kmck » Thu Aug 22, 2013 9:07 pm

Hello Amirb,

The Exists method takes the path and search timeout. There are a few other options in the API that allow for exception to throw on fail, Booleans, etc. I've noticed that I've also had to lower the repository item's search timeout in order to get the exist method search timeout to run faster.

Exists Method(path, searchTimeout) - http://www.ranorex.com/Documentation/Ra ... sts_14.htm