Run Telerik tests through МТМ

I want to run my Telerik tests through Microsoft Test Manager


Table of Contents:

Create Test Studio project and TFS build

1.  Create a Progress Test Studio project and connect it to TFS.

Specific settings for Test Studio project:

  • Set “Copy to Output Directory” property to “Copy Always” for all files e.g. *.tstest files, data files, independent code files e.t.c. This will ensure all files needed for the build to be pulled from TFS.

Copy always

  • If there are tests called as Test As Steps, external references or data files which are used in Test As Step they should be configured for the Test in Deployment items.

Deplyment item

Note: In order to see Test Studio test properties create a .vsmdi file. Select a test from the Test List Editor and you will find the Test Properties.

2.  Create and configure TFS build definition which MTM needs for execution the tests.

Specific settings for Test Studio project:

  • Edit the build definition to include the source with the Test Studio project solution.

Items to build

  • Create a new Work Item of type Test Case in TFS which is your solution connected to. Choose work item under Team Explorer and click New Work Item of type Test Case.

Test case

  • Associate Test Case automation property to point to the Progress Test Studio test *.tstest. This will ensure that the TFS Test Case is using automation test when run through MTM.


You should install Telerik Test Sutudio Runtime edition on the TFS Build Controler/Agent machine. This will ensure the build will succeed and recognize Telerik Test Project when pulled out from TFS.

Run tests in MTM

1.  First you should configure and register the MTM Controller and Agent.

2.  Run MTM and connect it to the team project from TFS where your project is.

3.  Create new environment in MTM Lab Center.

Specific settings:

  • Select Desktop client for machine role.

Desktop role

  • In the Advanced section check Configure environment to run UI tests check box and enter the proper credentials.


You should install Telerik Test Sutudio Runtime edition on both MTM Controller and MTM Agent machines.

Note: When you install Progress Test Studio Runtime on the Test Controller/Agents machines you have to stop them, unregister and register again (unregister Agent from Controller and Controller from TFS team project), so the new Telerik installation is recognized by them.

4.  Create a Test Plan in MTM in Testing Center.

Create plan

5.  In the new Test Plan add the TFS Test Cases which you have already created and contain Test Studio automation associated tests.

Add test cases

6.  Click RUN button to pull out the test cases and add the ones you need.


7.  Trigger a Run with Options for the selected TFS Test Case that has Test Studio .tstest as automation for it. This will run the TFS Work Item of type Test Case with associated automation test from Progress Test Studio (*.tstest) automatically on the MTM Test Agent.

Run with options

8.  Select the already created build, environment and run the tests.


9.  After the test completion press refresh button to see the results. MTM creates also a .trx file in the Attachments section.

Test Results

In this article
Not finding the help you need? Improve this article