trx报告中缺少测试用例描述 [英] Test case description missing from trx report

查看:111
本文介绍了trx报告中缺少测试用例描述的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 

我正在使用MS测试框架。我已将声明声明如下: 

I am using MS test framework. I have declared the description as below: 

  [TestMethod]

  [说明("验证APP成功启动)]]

 [TestMethod]
 [Description("Validate that the APP launches successfully")]

但是当我检查trx报告并将其转换为excel时,缺少测试用例描述。 

But when I check the trx report and convert the same to excel, test case description is missing. 

你能告诉我吗?如何在测试报告中获取描述。 

Can you please let me know how to get the description in the test report. 

此外,我想为单元测试用例添加自己的测试用例ID,请告诉我如何做到这一点。

Also I want to add me own Test case id for the unit test cases, please do let me know how to do that also.

谢谢&问候 

Thanks & Regards 

Thakur 

Thakur 

推荐答案

>>您能否告诉我如何在测试报告中获取说明。 

>>我也想要为单元测试用例添加自己的测试用例ID,请告诉我如何做到这一点。

请在MSTest中运行测试,并指定两个选项 / resultsfile  和  / detail:

Please run your test in MSTest, and specify two options /resultsfile: and  /detail:

这会对您有所帮助。

参考文档:

https://msdn.microsoft.com/en-us/library/ms182489.aspx?f=255&MSPPError=-2147217396

 

问候,

Fletcher


这篇关于trx报告中缺少测试用例描述的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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