Knowledge Share

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

Share | 

 minimize performance hit for Coded ui when using nested if

Go down 

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

PostSubject: minimize performance hit for Coded ui when using nested if    Wed 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:
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
minimize performance hit for Coded ui when using nested if
Back to top 
Page 1 of 1
 Similar topics
» browser runs minimized at startup in selenium RC

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