运行 功能测试:上传测试时出错 运行 结果/附件

Run Functional Tests: Error uploading test run results / attachments

环境:

我们有一个包含 400 多个测试的大型测试套件和一个自定义数据收集器,用于收集相当大的日志文件(每个文件 50 MB 并不少见)。 "Run Functional Tests" 任务似乎执行了所有测试,但在尝试发布测试结果和附件时最后失败了:

W, 3224, 3, 2016/08/24, 02:32:07.663, 322736173808, DTAExecutionHost.exe, Failure attempting to call the restapis. Exception: System.AggregateException: One or more errors occurred. ---> Microsoft.VisualStudio.Services.Common.VssServiceException: Cannot upload file as it exceeded the maximum file size (104857600 bytes)

(from DTAExecutionHost.exe.log on the test machine)

我想这是一个 TFS/IIS 配置问题,但我不知道去哪里找。

TFS/IIS中没有与100M限制相关的配置。根据错误信息,这可能与 REST API 限制有关。

尝试通过您的测试运行 附件找到超过100M 的文件然后将其删除并再次运行 发布定义以查看错误是否消失。