I got build definition in tfs2015 with two steps, in second one i'm running unit tests:
Is there a way to update test cases in tfs that are associated(associated automation) with those unit tests?
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. 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/
In the Build results view of the Test Cases you can directly associate the test result with a Requirement (User Story/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
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.