[英]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.