【发布时间】:2023-03-03 21:52:01
【问题描述】:
我需要从 TFS 2013 查询并获取测试结果 trx 文件,以便我可以修改该文件并将其用于生成报告。我在 IBuildServer 中找不到任何允许我查询 trx 文件的方法。是否可以使用BuildDetail.DropLocation 读取文件,其中我有告诉我 trx 文件位置的字符串。我写了几行如下
TfsSerice = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(new Uri(tfsUri));
TfsSerice.EnsureAuthenticated();
var buildServer = (IBuildServer)TfsSerice.GetService(typeof(IBuildServer));
BuildDetail = buildServer.QueryBuilds("MyUserLibrary").FirstOrDefault();
【问题讨论】: