编码的UI处理结果很慢并转移到下一个测试用例。 [英] Coded UI slow to process result and move onto next test case.
问题描述
我正在尝试使用手动编码的UI Map在Coded UI中运行测试。有问题的测试会检查Windows对话框中的消息,然后单击确定按钮。这些步骤运行起来相对较快,但是需要3-4分钟编写一次这个测试
成功并进入下一个测试。
I am trying to run tests in Coded UI with a hand coded UI Map. The tests in question check a message on a windows dialog box and click an ok button. These steps run relatively quickly, however it takes Coded UI a further 3-4 minutes to post that this test is successful and move onto the next test.
这些测试过去需要花费2分钟才能运行,现在它们需要6分钟以上。
These tests used to take 2 mins each to run, now they take 6+ minutes.
有没有办法加快Coded UI处理结果并进入下一个测试用例的方式?  ;
Is there a way to speed the way Coded UI processes results and moves onto the next test case?
在后台运行的QTAgent是: QTAgent32_40 exe * 32
The QTAgent running in the background is: QTAgent32_40 exe * 32
Microsoft Visual Studio Enterprise 2015
版本14.0.24720.00更新1.
Microsoft Visual Studio Enterprise 2015 >
版本14.0.24720.00更新1
Microsoft .NET Framework
版本4.6.01055
已安装版本:企业版
Visual C#2015 00322-80000-00000-AA708
Microsoft Visual C#2015
Microsoft Visual Studio Enterprise 2015
Version 14.0.24720.00 Update 1.
Microsoft Visual Studio Enterprise 2015
Version 14.0.24720.00 Update 1
Microsoft .NET Framework
Version 4.6.01055
Installed Version: Enterprise
Visual C# 2015 00322-80000-00000-AA708
Microsoft Visual C# 2015
问候,
John。
推荐答案
嗨约翰,
对此感到抱歉给您带来不便。
Sorry about this brought you such inconvenience.
>>然而,编辑用户界面再花3-4分钟发布此测试成功并进入下一个测试。
发布 这意味着,它在线发布一些内容?我的意思是,如果这与互联网有关,以防万一。
Post that here means, it's posting some thing online? I mean if this's related to internet, just in case.
您介意分享更多细节吗?我们欢迎您提供示例代码段。
Would you mind sharing more details? a sample code snippet will be welcome.
我知道一些播放设置可以帮助我们加快一些测试的运行速度,比如两个设置:
As I know some playback setting could help us speed up some tests running, like two settings blow:
Playback.PlaybackSettings.WaitForReadyLevel = WaitForReadyLevel.Disabled;
Playback.PlaybackSettings.DelayBetweenActions = 10;
它们将有助于禁用等待线程并减少操作之间的延迟。
They will help to disable the wait for thread and reduce the delay between actions.
你可以尝试一下,让我们知道结果。
You could try them and let us know the result.
致以最好的问候,
Fletcher
这篇关于编码的UI处理结果很慢并转移到下一个测试用例。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!