无法从TFS API获取步骤结果注释 [英] Not Able to get Step Result Comment from TFS API

查看:60
本文介绍了无法从TFS API获取步骤结果注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

代码段#

result.Iterations [1] .Actions [0] .Outcome = TestOutcome.Passed; //更新为通过"的测试步骤1"状态

result.Iterations [1] .Actions [0] .Comment ="Actual1"; //设置完之后,在实际的测试用例步骤中也不会发生任何事情,其余所有内容都会更新

结果为:  ITestCaseResult结果= run.QueryResults()[0];而Action [0]是第一步.

还有其他方法可以设置实际的步长结果吗?

解决方案

您好Nishant33,

根据您的问题,建议您参考以下线程,使用TFS API来检查结果注释步骤.

参考:

请参见Aidan的 http ://stackoverflow.com/questions/6505812/how-to-create-a-test-run-and-result-using-the-team-foundation-server-api

如果以上建议仍然无法解决您的问题,建议您与我分享有关您的问题的详细代码,以便我们尝试重现您的问题.

最好的问候


Code Snippet # 

result.Iterations[1].Actions[0].Outcome = TestOutcome.Passed; // gets updated with Test Step 1 Status as PASSED

result.Iterations[1].Actions[0].Comment = "Actual1"; // After setting this also nothing happens in actual test case step, rest all gets updated 

where result is :  ITestCaseResult result = run.QueryResults()[0]; and Action[0] is first step.

is there any other way to set the actual step result ?? 

解决方案

Hi Nishant33,

Based on your issue, I suggest you can refer the following threads to check the step Result Comment using TFS API.

Reference:

See Aidan's code snippet in this case below to see if it helps you.

http://stackoverflow.com/questions/6505812/how-to-create-a-test-run-and-result-using-the-team-foundation-server-api

If the above suggestion still could not help you, I suggest you can share me the detailed code about your issue so that we will try to reproduce your issue.

Best Regards,


这篇关于无法从TFS API获取步骤结果注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆