VSTS有序测试中的超时异常 [英] Timed Out Exception in VSTS Ordered Test

查看:78
本文介绍了VSTS有序测试中的超时异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI Guys,


我有28个编码的ui测试来覆盖完整的应用程序功能。我必须运行才能完成应用程序的功能,对于这个我我在vsts 2010中使用有序测试。


每25分钟,有序测试会自动中止并显示错误消息"Timed Out"


我已经将Local.Testsettings中的Timed输出从30分钟更改为3小时。我仍然面临同样的问题。


有没有办法在a中运行编码的ui测试除了VSTS订购测试之外的所需订单。


感谢您对此的回复。


谢谢,Balanarasimha Reddy

解决方案

Balanarasimha Reddy,


听起来你通过增加超时设置做了正确的事情。 您是否完全确定使用适当的经过修改的Local.Testsettings文件执行Coded UI测试?



如果仍然无效,您可能希望将测试分成2个单独的有序测试。 我知道这听起来很愚蠢,但把一半的测试放在一个并称之为UITestsPartOne或其他东西,另一半放在另一半。 我目前在
上执行此项目,因为我无法确保在给定的测试计算机上可以使用testsettings文件,所以我确保每个测试的执行时间不超过30分钟。 测试执行由.bat脚本驱动,该脚本通过命令行实用程序调用MSTest


OR


您可能需要在testmethods上设置一个明确的超时属性。


参见:


http://social.msdn.microsoft.com/Forums/en-US/vststest/thread/f1981468-65ef-401a -a8b7-fb33160151a3



干杯,


保罗


HI Guys,

I have 28 coded ui tests to cover the complete application functionlaity.here i have to run in a order to complete the app functinality, for this i am using ordered test in vsts 2010.

For every 25 mins the ordered test is automaically getting aborted and showing error message called "Timed Out"

I have changed the Timed outs in Local.Testsettings from 30 Mins to 3 Hours.Still i am facing the same issue.

Is there any way to run the coded ui tests in a required order other than VSTS ordered test.

Appreciate your reply on this.


Thanks, Balanarasimha Reddy

解决方案

Balanarasimha Reddy,

It sounds like you are doing the right thing by increasing the timeout settings.  Are you absolutely sure you are executing the Coded UI test with the appropriately modified Local.Testsettings file?

If that still doesn't work, you may want to split the tests into 2 seperate orderedtests.  I know it sounds silly, but put half the tests in one and call it UITestsPartOne or something and put the other half in another.  I do this currently on a project I am working on as I am not guaranteed that a testsettings file will be available on a given test machine, so I ensure that each test does not execute for longer than 30 minutes.  The test execution is driven by a .bat script which calls MSTest via the command-line utility.

OR

You may want to set an explicit timeout attribute on your testmethods.

See:

http://social.msdn.microsoft.com/Forums/en-US/vststest/thread/f1981468-65ef-401a-a8b7-fb33160151a3

Cheers,

Paul


这篇关于VSTS有序测试中的超时异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆