简体   繁体   English

如何访问TFS API或TFS报告中的TestCategory属性?

[英]How can I access The TestCategory attribute in the TFS API or TFS Report?

We have a rather complicated library of automated test. 我们有一个相当复杂的自动化测试库。 We are using TestCategory and TestProperty help us keep things clean. 我们正在使用TestCategory和TestProperty帮助我们保持环境整洁。 Now I want the ability to report on the categories after they run. 现在,我希望能够在类别运行后对其进行报告。

Does anyone know if the Test Category or Test Property in MSTest is accessible from the TFS Warehouse or better yet, through the TFS API? 有谁知道是否可以通过TFS API从TFS仓库访问更好的测试类别或测试属性?

The TestCategory is not available in the tests results and thus isn't available via warehouse or API. TestCategory在测试结果中不可用,因此无法通过仓库或API使用。 TestCategory can be used to filter the tests that are run during a build but that's it. TestCategory可以用于过滤在构建期间运行的测试,仅此而已。 So you could create different test builds based on test category and then report based on each build. 因此,您可以根据测试类别创建不同的测试版本,然后根据每个版本进行报告。

You could alternatively associate automation to your test cases, then organize your test cases into suites and organize your reports based on suites. 您可以选择将自动化与测试用例相关联,然后将测试用例组织到套件中,并根据套件来组织报告。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 CustomTestMethod 属性中获取 TestCategory - How to get the TestCategory with in the CustomTestMethod attribute 如何在TFS中处理测试报告汇总 - how to handle test Report aggregation in TFS 如何使单元测试作为TFS2008构建的一部分运行? - How can I get unit tests to run as part of a TFS2008 build? 如何从TFS 2010上运行的测试结果中获取内部异常文本 - How can I get Inner Exception text from Test Results run on TFS 2010 如何设置要在TFS Build Server中运行的单元测试的超时 - How can I set the Timeout for a unit test takes to run in TFS Build Server 我可以控制TFS Build Server上的Web项目的端口号吗? - Can I control Port Number of Web Projects on TFS Build Server? 如何为每个C#TestMethod单元测试自动创建TFS测试用例 - How can I automate creation of TFS Test Case's for each C# TestMethod Unit Test 如何调试推送到我的TFS构建服务器的代码? - How do I debug code pushed to my TFS build server? 如何为要在TFS中检入代码的文件提供路径? - How do I give file path for code to be checked in at TFS? 当它们通过时,如何在 TFS 构建测试上附加文件? - How to I attach files on TFS Build Tests when they pass?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM