我正在尝试在 C# 中使用 TFS Api 在 MTM 中向测试用例添加附件。我没有收到任何异常抛出,但我仍然无法在 TFS 中看到上传的文件。我正在添加相关代码,我正在尝试添加附件供您参考。请帮帮我。
foreach (ITestCaseResult result in results)
{
result.Attachments.Add(result.CreateAttachment(@"ThePath"));
result.Outcome = TestOutcome.Failed;
result.State = TestResultState.Completed;
result.Save();
}
results.Save(true);
testRun.Save();
testRun.Refresh();
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句