[英]CodedUI Ordered Test stopping after an hour
I am trying to run a set of test that takes longer than an hour to complete. 我正在尝试运行一组测试,该测试需要一个多小时才能完成。 However once I reach the time span of an hour the test will stop and skip all the test that have not being run.
但是,一旦我到达一个小时的时间跨度,测试将停止并跳过所有尚未运行的测试。 Any suggestions would be great :)
任何建议将是巨大的:)
在“测试设置”文件中,测试设置之一是“如果总执行时间超过则中止测试运行:”,另一项是“如果执行时间超过则将单个测试标记为失败:”-确保这两项设置都具有进行了调整以适应您需要的时间。
You can change the test timeout attribute as shown in this thread: MSTest: how to increase test time 您可以更改测试超时属性,如以下线程所示: MSTest:如何增加测试时间
[TestMethod]
[Timeout(10*60*1000)]
public void Login_ExpirationFail_Test()
{......}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.