יום שישי 17 אוגוסט 2012 07:27
I am trying to verify tooltip for a control. Sometime the tool tip does not show up and the help text method keeps on waiting for the tooltip to appear and halts the further test case execution. if there is no tooltip on control i want the test to continue by returning anull value or false how to do it
יום שישי 17 אוגוסט 2012 08:13
string hlptext = Controlname.HelpText;
יום שישי 17 אוגוסט 2012 08:34
Thanks for the reply, I have tried that and lot of other things too like setting focus or moving over the control and so on
but the issue is not of hover or focus, the issue is that if the control does not have a tool tip, the
Controlname.HelpText does not returns back it stays there and halts the execution.
I want to come out of that statement may be after a time limit even if it does not get the tool tip and move to next statement.
If you have any idea where we can set a timelimit on help text command so that if the control does not have a tool tip the test does not get halted at the helptext command.
יום שישי 17 אוגוסט 2012 15:44How long are you waiting the default time out is 120 seconds?
יום שני 20 אוגוסט 2012 05:06
Thanks and good to know that there is indeed a timeout set,
but don't you think 2 min is very long timeout. I was not waiting that long. Is there way to reduce the timeout?
יום רביעי 22 אוגוסט 2012 05:26מנחה דיון
I think maybe Playback.Wait() method can help you, this method make the playback pause for a specified time.
Also you can add ThinkTime for that control. Please also take a look at this case: http://social.msdn.microsoft.com/Forums/en-US/vsautotest/thread/e4f7caa0-b322-4662-9d11-8db49402a056
Vicky Song [MSFT]
MSDN Community Support | Feedback to us
- סומן כתשובה על-ידי Vicky SongModerator יום שני 27 אוגוסט 2012 05:40