【发布时间】:2018-05-09 07:23:39
【问题描述】:
我能够创建一个新的测试运行并更新每个测试步骤的状态,最后完成自动测试运行。我已经使用 C# 库文件对 VSTS 执行所有这些操作。
另外,我目前正在将屏幕截图附加到测试步骤结果中。我可以看到该屏幕截图已附加到“运行”选项卡下的“测试步骤”,但上传未完成且无法看到已加载的屏幕截图。
以下是用于附加屏幕截图的代码:
ITestAttachment attachment = stepResult.CreateAttachment(screenShotPath);
stepResult.Attachments.Add(attachment);
Also please find the screenshot attached to understand my problem much better.
提前感谢您的帮助
【问题讨论】:
-
你解决了这个问题吗?
标签: c# azure-devops msdn