【问题标题】:TFS 2015 Build - Run functional tests - Failed to obtain durationInMs fieldTFS 2015 Build - 运行功能测试 - 无法获取 durationInMs 字段
【发布时间】:2017-04-23 14:33:04
【问题描述】:

使用 TFS 2015 启动的构建中的“运行功能测试”步骤以以下错误消息结束:

DistributedTests: Test run is aborted. Logging details of the run logs.
DistributedTests: Une nouvelle série de tests a été créée.
Série de tests mise en file d\'attente pour Project Collection Build Service (TEAM FOUNDATION).
DistributedTests: Test discovery started.
DistributedTests: Test Run Discovery Completed . Test run id : 14886
DistributedTests: 2 test cases discovered.
DistributedTests: Test execution started. Test run id : 14886
DistributedTests: UnExpected error occured during test execution. Try again.
DistributedTests: Error : Une ou plusieurs erreurs se sont produites.--->Failed to obtain durationInMs field.
DistributedTests: Test run aborted. Test run id: 14886

有什么解决办法吗?

【问题讨论】:

  • 请将 system.debug 变量设置为 true 以重新构建,是否有更详细的错误日志?还可以在测试中心页面下找到测试运行,看看是否有错误消息?顺便说一句,你能把日志用英文发布吗
  • 在 system.debug = true 和测试页面上都没有更多细节。

标签: selenium tfs azure-devops tfsbuild functional-testing


【解决方案1】:
  1. vsts-tasks github 上存在一个已知问题,请检查您是否存在以下问题:

如果 TFS/Build Agent 是更新 1,但测试代理高于更新 1 即更新 2,系统预计会抛出“无法获取 durationInMs”错误。原因是我们在 Test Agent 2015 中对 durationInMs 进行了更改更新 2 以及 TFS 2015 更新 2,因此测试代理 2015 更新 2 和更高版本不向后兼容较低版本的 TFS。

  1. 也来自链接问题和here 似乎原因可能是系统是法语的。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-08-05
    • 1970-01-01
    • 2017-05-24
    • 2016-09-09
    • 1970-01-01
    相关资源
    最近更新 更多