简体   繁体   English

更新TFS2015中与单元测试相关的测试用例

[英]Update test cases in TFS2015 that are associated with unit tests

I got build definition in tfs2015 with two steps, in second one i'm running unit tests: 我在tfs2015中通​​过两步获得了构建定义,在第二步中,我正在运行单元测试:

在此处输入图片说明

Is there a way to update test cases in tfs that are associated(associated automation) with those unit tests? 有没有一种方法可以更新与这些单元测试相关联的tfs中的测试用例?

在此处输入图片说明

Ie mark test cases as passed if associated unit test passed in latest build. 即,如果相关的单元测试在最新版本中通过,则将测试用例标记为通过。 Right now after build my test cases are marked active, no matter if corresponding unit tests passed or not. 在构建之后,无论相应的单元测试是否通过,我的测试用例都立即标记为活动状态。

No, there is bo way to update Teat Cases without using Microsoft Test Manager. 不,没有使用Microsoft Test Manager即可更新Teat Cases的方法。 You would use the old Test Agent / Controller model. 您将使用旧的测试代理/控制器模型。

In TFS 2015/2017 there is a new model that does not involve Test Cases: https://blogs.msdn.microsoft.com/visualstudioalm/2016/08/02/traceability-with-continuous-testing/ 在TFS 2015/2017中,有一个不涉及测试用例的新模型: https : //blogs.msdn.microsoft.com/visualstudioalm/2016/08/02/traceability-with-continuous-testing/

在此处输入图片说明

In the Build results view of the Test Cases you can directly associate the test result with a Requirement (User Story/PBI). 在测试用例的“构建结果”视图中,您可以将测试结果与需求(用户案例/ PBI)直接关联。 Once done all future results will be associated with the same Requirement. 完成后,所有将来的结果将与相同的需求相关联。

https://www.visualstudio.com/en-gb/docs/report/widget-catalog#requirements-quality-widget https://www.visualstudio.com/zh-CN/docs/report/widget-catalog#requirements-quality-widget

You can then add the "Requirements Quality" widget on the dashboard. 然后,您可以在仪表板上添加“需求质量”小部件。

You can run test through Run Functional Tests step/task. 您可以通过“运行功能测试”步骤/任务来运行测试。 With this step/task, you can specify test plan and test suite that contains automated test cases. 通过此步骤/任务,您可以指定包含自动测试用例的测试计划和测试套件。

在此处输入图片说明

Article: Executing Automated tests in Build vNext using Test Plan, Test Suites 文章: 使用测试计划,测试套件在Build vNext中执行自动化测试

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM