How to create a parameterized test case in Microsoft Test Manager

Parameterized test cases save your time and effort on testing the same functionality with different test data.

Let me take a simple example to explain this. Assume you have to test the ‘cutting’ functionality of a knife on three different ingredients. First thing it will come to your mind is that there will have to have three test cases to test the primary functionality of it. But no, you can cover all three in one test case if you use parameter values in TMT.

Create a test case with parameter values

To insert parameter values you can user the highlighted option as in Figure 1


Figure 1

Once you insert a parameter, it will appear a table to specify required parameter values as in the Figure 2


Figure 2

Once you define parameter values and save the test case, you can start test case execution for the created parameterized test case.


Figure 3

Run parameterized test case

When you start executing the test case it will show you iterations as in Figure 4.


Figure 4

By clicking on the ‘Next’ button next to the iteration, you can proceed to the next iteration.


Figure 5

If at least one iteration is failed the whole test case would get saved as failed. Figure 6


Figure 6

You can also use multiple parameters in the same test case.

This way MTM will minimize your time and the effort need in creating test cases.


Start testing with Microsoft Test Manager (MTM)

Microsoft Test Manager is a extension of Team Foundation server (TFS) and Visual Studio. TMT helps you to create, execute and track test cases and defects. All team members can be accessed these work items.

Quick guide to start manual testing in MTM

  1. Connect to the team project

Once you open up the MTM for the first time, it will prompt you to enter the team Foundation Server. Once you proceed with this step you will be given a window to connect to the team project. All the projects you have access, will be listed down for you. Select the appropriate team project and click on the ‘connect’. Once this action is successful it will display the Testing Center.

  1. Create the test plan

You can either select an existing test plan or create a new test plan from the Testing Center window.

1  Figure 1

To add a new Test Plan – you may simply click on the Add button. Once you click the Add button it will give you the following window to add a new test plan.


          Figure 2

Once you create the test plan, it will be added to the list. You may select the created test plan and select the ‘Select Plan’ button. Content available for the selected plan would be displayed.

  1. Add details to the created properties

Once you navigate to the properties tab you can set more details to the test plan

Figure 3

  1. Add Test Suite – Static/Dynamic

To Add test suites, navigate back to Contents, if you are in the properties tab


Figure 4

4.1 Create a static test suite:

Hover over on the ‘New’ button


Figure 5

Select Suite from the drop down menu – This action will create a test suite for you. You can give an appropriate name for the test suite

4.2 Create a Dynamic test suite or add requirements to the test plan:

Hover over on the ‘New’ button


Figure 6

Select Query-based suite from the drop down menu – This will redirect you to a window where you can query the requirement or the user story by ID or the name.


Figure 7

You can query the relevant user story and add it to the test plan


Figure 8

Note: You can add requirement based test suite using the ‘Add requirements’ option also.

  1. Add Manual Test cases

Select the test suite, and click on the new button as in the figure 9


Figure 9

Following form will be given to create a new test case


Figure 10

  1. Run Test cases and report bugs if have any

To run the test you should be navigated to the Test tab, as in the figure 11


Figure 11

Select the test case and click on the Run button as in the figure 12


Figure 12

It will give you following window and you can start test case execution.


Figure 13

If the test case if fail, you can simply add a bug from this window itself by clicking on the icon highlighted in the figure 14


Figure 14

  1. Track Progress of the testing

7.1 Track the progress of a test suite:

  • Select the test suite
  • Hover over the progress bar – progress of test execution would be shown in a tool tip, as in the figure 15


Figure 15

7.2 Track Progress of the Test Plan

  • Go to Plan -> Results
  • This will give you an overall picture of the test plan. Figure 16


Figure 16

You don’t have to spend time on creating separate reports for test execution progress. You can simply refer these charts which will make your life easier.