简体   繁体   中英

TFS 2015 Test case association with test method

I created a test case (work item) in Visual Studio Team Services (previously Visual Studio Online) and associated it with an automated test.

  1. Can I run the automated test from the web UI ?
  2. When I run the dll of the solution from build definition, the test is running, but how can I get the information about the test case thats associated with the test ?

1 - You can run a build which runs your tests. I don't think you can run individual tests.

2 - You can access the test case iteration data using the DataRow property on the TestContext.

testContextInstance.DataRow["Name"].ToString();

You cant run individual automated Test Cases in the Web yet, but you can run them from Microsoft Test Manager.

On the "run" tab in MTM you can select any automated test cases and create a test run for a particular build (where it gets the DLL) and a particular environment (where that build is deployed).

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.

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