Skip to main content

Microsoft Test Manager(MTM)

Quick Start Guide for Testing using Microsoft Test Manager

This is a Quick Start Guide for manual testing using Visual Studio Ultimate or Visual Studio Test Professional The guide helps you get started quickly by describing how to create manual tests, run them and record the results by using Microsoft Test Manager.

Connect to Your Team Project

1.Open Microsoft Test Manager.

Note
To display the Microsoft Test Manager window, click Start, and then click All Programs. Point to Microsoft Visual Studio 2010 and then click Microsoft Test Manager 2010.
  1. To add a new Team Foundation Server for the first time, type the name of the Team Foundation Server, ‘Name of the Server’ and then click Add.

The connection string that will be used to connect to Team Foundation Server is shown in Preview.

pic1

3. To select a team project collection, click the arrow to view the list of team projects for this team project collection.

pic2

4. Select the name of your team project in the list, and then click Connect.

If you successfully connect to this team project, the Testing Center is displayed.

Note
You can select an existing test plan to use or add a new one. To select an existing test plan to use, click the plan in the list and then click Select Plan.

5. To add a plan, click Add.

The Add test plan dialog box is displayed.

pic4

6. Type the name for your plan in Enter the plan name, and then click Add.

Your plan is now added to the list and highlighted.

6

7. (Optional) To create a URL that other team members can use to connect to this plan, click Copy URL for plan.

This copies the URL to the plan you created to the clipboard. You can now paste this URL into an email and send it to others in your team so that they can easily connect to the plan. To select the plan you added, click Select plan.

The Contents view for your test plan is displayed. Now follow the steps in the next procedure to add the details of your test plan.

 Add Details to Your Test Plan

8. To change to the properties view for your test plan, click Properties.

8 9

9. (Optional) To change to a different iteration for your team project, click Iteration.

10. (Optional) The default configuration provided for the test plan specifies that the tests should be run on the Windows 7 operating system using Internet Explorer 8.0 as the browser. You can just use this as a placeholder to get started, or you can create a different configuration with different default values, or different configuration variables. To add new configurations, click In this plan under Configurations, and then click Manage.

Note
Configurations are part of planning and inform the tester what is required. When the tests are run, there is no verification that the tests are actually running on that configuration.

11. To save any changes, click Save and Close.

12. The Contents view is displayed. You can now follow the steps in the next procedure to create your manual test.

Create and Add Requirement to test plan

Creating a Requirement to the test plan

  • Open Microsoft Test Manager.
  • From the Testing Center, click Plan and then click Contents. The Contents pane is displayed.
  • To create a requirement to your test plan, click on the New drop down menu and click on the requirement

10

13. In new requirement window, enter the title, Requirement type, area, iteration, Status, priority and the description of the requirement in the Description pane.

11

14. In new requirement window, enter the title, Requirement type, area, iteration, Status, priority and the description of the requirement in the Description pane.

14

5) After entering all the details, Click on Save and Close the requirement. The Requirement will be saved with the title name

 

 Adding an existing requirement to test plan

  • Open Microsoft Test Manager.
  • From the Testing Center, click Plan and then click Contents. The Contents pane is displayed.
  • To add a requirement to your test plan, select the location where you want to place it in the test suite hierarchy and then click Add requirements.

The Add existing requirements to this test plan dialog box is displayed.

Note
The test suite hierarchy has a root node that has the same name as the test plan. You can add test cases, test suites or requirements to this test suite root node, but you cannot rename it.

 

15

  • Select any requirements that you want to add to the test plan, and then click Add requirements to plan.
Note
Any existing test cases that are already linked to these requirements are displayed in the test suite details pane when you select the requirement in the test suite hierarchy.

16

  • (Optional) By default, the requirement-based test suite is given the name of the requirement id followed by the name of the requirement. To rename it, right-click the name and point to rename. Then type the new name.

The name will also be displayed in the test suite details pane.

  • (Optional) Click State and select from the list of states based on the following table:
State When to use it
In Planning If you are not yet ready to run the tests linked to this requirement.
In Progress When you are ready to run the tests linked to this requirement.
Completed When you have finished running the tests for this requirement and the quality level reached meets your goals.
Important
To run tests, you must set the status of the requirement to In Progress.
  • To change the default configurations for the requirement that you added, if you want them to be different from the default configurations for the plan, click the drop-down arrow next to the list of configurations in the test suite details pane.

A dialog box is displayed that shows all the configurations for your team project and the current default configurations for your test plan.

  • You must first clear Use configurations from parent test suite, and then select the default configurations that you want to add and any that you want to remove.
Note
Changing the default configurations only affects new test cases or test suites that are added to this test suite. For more information about how to change the pairings of tests and configurations that are already in your test plan, see the procedure about how to update configurations for specific test cases.
  • (Optional) To add a new configuration or manage existing configurations, click Manage.

The Test Configuration Manager activity is displayed. To save your changes to the default configurations, click Save.

 

Create and add Manual Test Cases

 Creating a New Test Case

  1. From the Testing Center, click Plan and then click Contents. The Contents pane is displayed.
  2. Select the requirement in the test suite hierarchy pane that you want to create a test case for, and then click New.

The New Test Case dialog box is displayed.

  1. Enter the details for your new test case including the actions and expected results for each test step, and then click Save and Close.

The new test case is now displayed in the test suite details pane.

  1. Repeat the previous two steps to add more test cases.

The changes that you have made to the requirement in the test plan are automatically saved.

Note   To add a copy of an existing test case to the requirement, right-click a test case in the test suite details pane and point to create copy and add to suite. The new test case dialog box is displayed so that you can edit the test case as necessary.

17

18

 Linking the existing test cases to requirement

  1. From the Testing Center, click Plan and then click Contents. The Contents pane is displayed.
  2. Select the requirement in the test suite hierarchy pane that you want to add test cases to, and then click Add.

19

The Add test case to suite dialog box is displayed. All available test cases are shown in the list of tests.

20

Tests that have already been added to the requirement are not shown in the list of tests.
  1. (Optional) If there are several test cases listed, you can narrow your test case search by changing the query for test cases as shown in the following steps.
    1. To add a new clause to your query, select Click here to add a clause.
    2. Click each column in the query clause to fill in the clause. If a column has a list of accepted values, a drop-down arrow appears when the column is selected. Click the drop-down arrow to select a value from the list. The following columns are available:

 

 

Query Column How to complete
And/Or Select And if this clause and the previous clause must be true to match a result. Select Or if either this clause or the previous clause must be true to match a result.
Field The list for this field contains all the searchable work item fields used in the current Team Foundation Server. Use as many clauses and fields as you want to get useful results. Press ALT+DOWN ARROW or type the field name that you want to select.
Operator Examples of operator choices are = (equal), <> (not equal to), > (greater than), < (less than), >= (greater than or equal to), <= (less than or equal to), In, Was Ever, Was Never, and Contains.
Value Specifies the value that you are looking for in the specified field. If there is a list of values to select from, click the drop-down arrow to select the one that you want. Team Foundation work item tracking includes some query variables to dynamically add values to your query. For more information, see Query Variables.
  1. Repeat the previous two steps to add all the values for which you want to search.
  2. To see the results of your query, click Run to run the query.
  1. Select the tests that you want to add, and then click Add test cases.

The test cases that you selected are now displayed in the test suite details pane. The changes that you have made to the requirement in the test plan are automatically saved.

Note
All the existing test cases that you add are paired with each default configuration to define what tests must be run on which configurations for the test plan. To see these pairings, select the tests in the test suite details pane and then click Configurations.

 

Removing link between a test case & requirement

  1. From the Testing Center, click Plan and then click Contents.

The Contents pane is displayed.

  1. To remove the link between a requirement and a test case, select the specific requirement in the test suite hierarchy.

All the existing tests linked to that requirement are displayed in the test suite details pane.

  1. Right-click the test in the list of existing tests, and point to Remove.

In the Tested User Stories tab for the test case, the Tests link for this requirement is removed. The test case is no longer displayed in the list of tests for this suite. These changes you have made to the requirement are automatically saved.

Note
You can edit a test case directly and remove the Tests link for any requirement from the Tested User Stories tab.