Wednesday 12 November 2014

Microsoft Test Manager integration with tfs

Assuming you have written all automation test cases using C# or Vb.Net and successfully build the code.
Provided your MTM is configured environment.

Open MTM.
Click Plan.
Create New Suite.
Click on Your Suite.
Add existing test cases to your suite.
Click Add @right side.
Write your Query to get all your test cases.
Select all TCs.
Click Add test cases.
Open each test case and click on Associated Automation (last tab).
If you are seeing blank at: Automated test name, the do bellow steps.
Open test case from VSTF:You will find "associated automation". Click on ...Search for your automation test case method and select it. Save
Save
Go to TEST mode in MTM
Set build:
Click on Build in the top right side of MTM.
Click on Modify @  Filter for builds. Change build name...
Click on Modify @ Build in use.
Select right build... Save
Click on your test suite.
Select all your test cases.
Rigt click select run with option.
Select your build, where your test case code is there
Build Config: select release
Test settings: Select browser
Environment:
Click Run