【发布时间】:2016-09-28 11:43:19
【问题描述】:
我正在尝试在 tfs api 中获取测试用例的结果
在测试用例管理器中,我看到了以下结果: https://gyazo.com/72ccfcef96d1718907ea702d7a8bbfc9
但是当我尝试在我的测试用例工具中得到这个结果时,我无法得到任何结果:
var testResults = project.TestResults.ByTestId(7987);
foreach (var result in testResults)
{
var topIteration = result.Iterations.FirstOrDefault();
if (topIteration == null)
continue;
// do something
}
因为 topIteration 总是等于 null。
如何从 tfs api 获得正确的结果(通过/失败/阻止)?
【问题讨论】: