Search code examples
visual-studio-2013microsoft-test-manager

Microsoft Test Manager 2013 automatic tests


I’m using TFS2013 with Visual Studio 2013. I’d like to use Microsoft Test Manager 2013 (MDM) to make a plan. When I create a plan, I want two different kinds of suites. One is for the manual tests, and the other is for the automatic tests. These last ones are from test cases work items linked to units tests in Visual Studio. What I’d like to know is can the automatic tests get the results from the build log file built before hand? Or must I have to create an environment and make it execute those tests?

Thank you, W.


Solution

  • You can't show the results of Unit Test running after the build in Test Plan in Microsoft Test Manager because there is no connection between these Unit Tests and the Test Plan.
    Using these Unit Tests for automation of Test Cases that belong to Test Plan is not sufficient.

    In order to achieve what you want you have to start tests using tcm.exe.
    This MSDN article may be very helpful for you: Using tcm to import and run automated tests for a test plan from the command line

    This is the "usual" way to use a Test Plan.
    But if you use it this way you have to create an environment to run the tests on it.

    In your case you don't need an extra environment, though, since your tests could apparently be executed on the build machine.
    If you want to stick to your approach, please check this article: How to execute tests locally using TCM.exe command-line?
    I've never tried it myself but it sounds like it will do what you want.

    If you are going to use "Microsoft Test Manager" in the future I would highly recommend you this free e-book: Testing for Continuous Delivery with Visual Studio 2012
    This book will be helpful when you are using VS 2013, too, since the approach is similar.