Page 1 of 1

trying to add duration to validation

Posted: Tue Mar 26, 2013 9:11 pm
by EricTcg
I am trying to add a duration to the validation code below. when i do i gives me a couple of errors is there something that i am doing wrong ?

original Code:

Code: Select all

Validate.Exists(repo.BeaconClient.PnlMain.PotentialEquivalentsInStockInfo,"Check Object '{0}'", new Validate.Options(false, ReportLevel.Warn)
Code with Errors:

Code: Select all

Validate.Exists(repo.BeaconClient.PnlMain.PotentialEquivalentsInStockInfo,3000,"Check Object '{0}'", new Validate.Options(false, ReportLevel.Warn)
Thank,

Eric

Re: trying to add duration to validation

Posted: Tue Mar 26, 2013 11:39 pm
by Ciege
According to the API documentation, Validate.Exists with a repository item does not take a duration parameter. The timeout parameter for that repository item needs to be set independently of the validate.exists method.

http://www.ranorex.com/support/user-gui ... html#c2059

But since I personally don't use the repository this is my best guess after reading the API documentation and the user manual...

By the way, in the future when posting questions about errors received, it's always helpful to include the errors that you are getting in your post...

Re: trying to add duration to validation

Posted: Wed Mar 27, 2013 2:58 pm
by EricTcg
ok thank you Ciege

Re: trying to add duration to validation

Posted: Wed Mar 27, 2013 4:03 pm
by Ciege
You are welcome... Did that solve your issue?

Re: trying to add duration to validation

Posted: Wed Mar 27, 2013 4:19 pm
by EricTcg
yes it did thanks you again Ciege.