Knowledge Share

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

Share | 
 

 minimize performance hit for Coded ui when using nested if

View previous topic View next topic Go down 
AuthorMessage
Admin
Admin


Posts : 141
Points : 407
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:
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
http://knowledgeshare.forumotion.com
 
minimize performance hit for Coded ui when using nested if
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Switching between nested iframes within a frame
» Nested frames in selenium webdriver
» browser runs minimized at startup in selenium RC
» How to open Command prompt by coding in C# having Selenium Rc server path ?
» Finding elements in a page with nested frames

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