Coded UI test takes 2-3 minutes to pass

前端 未结 2 1835
执笔经年
执笔经年 2021-01-27 10:03

So I am working with Coded UI to run some automated tests and one of the tests takes an extremely long time to complete.

I used breakpoints and found that after End Get

相关标签:
2条回答
  • 2021-01-27 10:35

    ¿? have you tried changing the value of ..

    Playback.PlaybackSettings.SearchTimeout = miliseconds;

    msdn playbacksettings.searchtimeout

    good luck and tell us something

    0 讨论(0)
  • 2021-01-27 10:38

    Coded UI does searches for precisely what is given in the search and filter properties, that operates quite fast. However, if that search fails then Coded UI does a smart match trying to find something similar and that can take a long time. It is necessary because titles etc can change a little from run to run. Changing the tests to avoid needing a smart match can dramatically improve the search speed. The general approach is to modify the search from equality to contains and to remove the part of the string that changes. A Microsoft blog explains in more detail, see http://blogs.msdn.com/b/dave_froslie/archive/2012/08/10/why-do-my-coded-ui-tests-pause-during-playback.aspx

    0 讨论(0)
提交回复
热议问题