简体   繁体   中英

How to run test methods (in Visual Studio) in Microsoft Test Manager?

I'm using Visual Studio 2012 Ultimate and Microsoft Test Manager. In my project, I have written a test class with some test methods (ie Assert this and Assert that).

How do I actually run them in Microsoft Test Manager? I have created a Test Plan and added Test Cases, but how do I actually link my test methods to the test case? I've already looked online and on the Microsoft website, but it wasn't helpful and they were skipping so many steps.

What do I need to configure in Visual Studio? in Microsoft Test Manager?

The test case must be associated with an automated test. MTM test cases have fields for "automation status" and "associated automation", but the later cannot be set from within MTM, it has to be set from Visual Studio.

Open Team Explorer in Visual Studio and use it to find and open the test case with a query. On the right hand side of the "associated automation" tab there is an ellipsis, click it and select the test to be run. See here for more details. Note that when the test case is opened within MTM the ellipsis is not shown. I like to think of " pushing test automation from Visual Studio into MTM " being the method and that test cannot be " pulled into MTM ".

Visit this URL

Here it is very well explained how to associate a test method to a test case.

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