0
我们在构建代理上有一组通过VSTS运行的Selenium UI测试。它们运行得很好,但由于UI测试本质上很慢,所以我们设置了一个晚上运行的Release,然后为测试人员提供一份详细报告,供他们在早上阅读。我们使用NUnitTestAdapter.3.7.0来运行测试。步骤超时设置不正确或忽略
由于运行时间很长,我有“测试程序集”步骤超时 - 这些测试生活的步骤设置为0(无限制)。相当直接向前?然而,由于某些未知的原因,这个步骤在一小时后仍然会被取消 - 切断大量测试。现在我想我可以创建更小的测试集并添加更多类似的“测试程序集” - 但这对我来说并不合适。
的带有.trx日志显示被取消之前的大约一个小时运行测试:
2017-06-21T03:02:36.9610971Z ##[section]Starting: Test Assemblies
2017-06-21T03:02:36.9767239Z ==============================================================================
2017-06-21T03:02:36.9767239Z Task : Visual Studio Test
2017-06-21T03:02:36.9767239Z Description : Run tests with Visual Studio test runner
2017-06-21T03:02:36.9767239Z Version : 1.0.85
2017-06-21T03:02:36.9767239Z Author : Microsoft Corporation
2017-06-21T03:02:36.9767239Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkId=624539)
2017-06-21T03:02:36.9767239Z ==============================================================================
2017-06-21T03:02:36.9767239Z Preparing task execution handler.
2017-06-21T03:02:37.3267423Z Executing the powershell script: C:\agent\_work\_tasks\VSTest_ef087383-ee5e-42c7-9a53-ab56c98420f9\1.0.85\VSTest.ps1
2017-06-21T03:02:38.0298958Z Working folder: C:\agent\_work\r17\a
2017-06-21T03:02:38.0298958Z Executing C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe "xxx.dll" /TestCaseFilter:"TestCategory=MP2" /Settings:"C:\agent\_work\r17\a\TestResults\1_2017-06-21_05-02-37-AM.runsettings" /logger:trx /TestAdapterPath:"C:\agent\_work\r17\a\drop\b\packages\NUnit3TestAdapter.3.7.0\tools"
2017-06-21T03:02:38.0298958Z Microsoft (R) Test Execution Command Line Tool Version 14.0.25420.1
2017-06-21T03:02:38.0298958Z Copyright (c) Microsoft Corporation. All rights reserved.
2017-06-21T03:02:38.0298958Z
2017-06-21T03:02:38.0298958Z Starting test execution, please wait...
2017-06-21T03:02:38.1705198Z Information: NUnit Adapter 3.7.0.0: Test execution started
2017-06-21T03:02:38.1705198Z
....
2017-06-21T04:01:16.0450600Z ##[warning]No results found to publish.
2017-06-21T04:01:16.2950650Z ##[error]The operation was canceled.
2017-06-21T04:01:16.3106930Z ##[section]Finishing: Test Assemblies
我在这里失去了一些东西?这些步骤是否有严格的上限?
它确实似乎是一个(很好隐藏)独立代理设置在释放定义。也许VSTS应该暗示这个地方? – shmow