Knowledge Share
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Knowledge Share

Knowledge is NOT Power IMPLEMENTATION of knowledge is Power!!!
 
HomePortalGalleryRegisterLog in

 

 minimize performance hit for Coded ui when using nested if

Go down 
AuthorMessage
Admin
Admin


Posts : 142
Points : 46895720
Reputation : 0
Join date : 2007-12-29
Location : Chennai

minimize performance hit for Coded ui when using nested if  Empty
PostSubject: minimize performance hit for Coded ui when using nested if    minimize performance hit for Coded ui when using nested if  Icon_minitimeWed Jun 10, 2015 10:33 am

1.    the main reason for delay is the MaximumRetryCount =10. in addition try the following settings:
2.  Playback.PlaybackSettings.MaximumRetryCount = 3;
3.  Playback.PlaybackSettings.DelayBetweenActions = 100;
Playback.PlaybackSettings.SearchTimeout = 15000;
2.    when waiting for control to exists use the:
uiTtestControl.WaitForControlExist(5000)
this will tell the playback to search for the control for a max of 5 sec.
3.    in addition - you should reduce the Playback.PlaybackSettings.SearchTimeout before searching for a control that you know might not exists:
4.        var defaultTimeout = Playback.PlaybackSettings.SearchTimeout;
      Playback.PlaybackSettings.SearchTimeout = 5000;
and after you finish searching return it to the default value:
Playback.PlaybackSettings.SearchTimeout = defaultTimeout;
Back to top Go down
https://knowledgeshare.forumotion.com
 
minimize performance hit for Coded ui when using nested if
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Knowledge Share :: Testing :: Automation :: VSTS :: CODED UI-
Jump to: