This is a migrated thread and some comments may be shown as answers.

Possible to see how long a timeout took to timeout?

3 Answers 38 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 02 Apr 2012, 11:34 AM
Hi

Is it possible to see how long a timeout took before it failed?

Currently when a telerik method fail on timeout the only info i get is "Wait condition timeout" or something along those lines, i would really like to have outputted how long the timeout took.

E.g.
Wait condition timeout after XX seconds


is that possible??

If it's not could you add it as a request for improvement :)

3 Answers, 1 is accepted

Sort by
0
Accepted
Jonas
Top achievements
Rank 2
answered on 04 Apr 2012, 02:55 PM
Hello Martin,

I don't know if this will help you but you can get or set this setting by using :
Manager.Settings.ElementWaitTimeout
Gets/Sets the global wait on elements timeout that will be used during execution.
or 
Manager.Settings.WaitCheckInterval
Gets/Sets the interval in msec. to use between checks for all the WaitForxx methods. Default is 500 msec. 

This way you can atleast know what it's set to.

Best regards
Jonas

0
Martin
Top achievements
Rank 1
answered on 04 Apr 2012, 04:43 PM
Hi Jonas

Thank for your reply, I actually did find that setting yesterday, I still think it would be nice to have it outputtet in the error message but atleast now everybody with knowledge of the solution setup will know how long a default telerik timeout is.
0
Cody
Telerik team
answered on 05 Apr 2012, 06:53 PM
Hi Martin,

Jonas is on the right track. When a test fails, just look at the current value for Manager.Settings.ElementWaitTimeout and log that. This can be accomplished in your [TestCleanup()] method.

Greetings,
Cody
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Martin
Top achievements
Rank 1
Answers by
Jonas
Top achievements
Rank 2
Martin
Top achievements
Rank 1
Cody
Telerik team
Share this question
or