Running automated tests under on-premises Team Foundation Server
With TFS-MTM integration in place, you have the option of launching your automated TA tests from either environment. And in both cases, you can have your test results automatically (or manually) sent to TFS.
The prerequisites for this functionality include installing the TA plug-in for Microsoft Visual Studio, and creating a TA-TFS project in Microsoft Visual Studio. Then, within the project, you must create the necessary associations between your TA and TFS test cases.
This section provides the instructions on how to perform this setup, how to run the automated tests, and how to ensure that test results are sent to TFS.
Prerequisites for running tests under TFS-MTM
This topic describes the requirements that must be met by the systems involved in running tests under TFS-MTM.
Installing the TestArchitect plug-in
Install the TestArchitect plug-in for Microsoft Visual Studio. This allows you to create TestArchitect integration projects and the necessary code templates to associate TestArchitect test cases with MTM test cases.
Configuring TestArchitect for a Team Foundation Server® connection
Use the TestArchitect external tool to set up a repository for integration with a Team Foundation Server (TFS) server.
Mapping a TestArchitect project to a Team Foundation Server project
Mapping a TA project to TFS team project allows you to upload test results to TFS.
Creating TestArchitect-Team Foundation Server projects in Visual Studio
Create a TestArchitect/Microsoft Test Manager project in Microsoft Visual Studio and generate C# code to associate TestArchitect test cases with MTM test cases.
Associating TestArchitect and Team Foundation Server test cases in Visual Studio
To execute TestArchitect test cases from MTM or the Test Hub, an association between TestArchitect tests and Team Foundation Server tests must be created in the related Visual Studio project.
Creating and queueing team builds in TFS-MTM
To run automated tests in MTM, create a team build that includes your test project, and add the build to your test plan.
Creating and configuring test plans
After you create a team build that includes your tests, you can add it to your test plan in MTM.
Running TestArchitect tests from Microsoft Test Manager
Finally, after you successfully create and build the project, proceed to executing and managing the test cases in MTM.
Uploading TestArchitect test results to Team Foundation Server
TestArchitect test results from test projects which are mapped to TFS can be uploaded to TFS manually or automatically.
Mapping TA test cases to TFS test cases
Use the generated test IDs to map the MTM test cases to TestArchitect test cases.
Mapping TA test modules to TFS test cases
In addition to TestArchitect test cases, you can map TestArchitect test modules to TFS test cases.