How to: Find the Recommended Tests to Run After Code Changes
If you are using Team Foundation Build to build your application under test, you can determine which test cases you should run, based on code changes to your application. You need to set up your build filter in your test plan to show you only the builds that you want to see. For more information about how to set up your build filter and select a build, see How to: Select a Build For Your Test Plan.
When there are more builds available that meet the quality criteria that you have set for your build filter in your test plan, you can determine whether there are any test cases that are recommended that you run using Microsoft Test Manager. If you want to view the recommended test cases, you must have already collected test impact data for your tests. For more information about how to collect test impact data, see How to: Collect Data to Check Which Tests Should be Run After Code Changes.
To find the recommended tests to run after code changes
Open Microsoft Test Manager.
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.
To determine changes between builds, click the down-arrow on the center group switcher and then click Testing Center.
On the center group menu bar, click Track.
Click Recommended Tests.
The Recommended Tests activity is displayed that shows the current build that you are using for your test plan.
To select a previous build to compare and show the recommended tests and related work items, click the drop-down arrow for Previous build to compare and select a build.
Any recommended tests and their configurations are now displayed. These tests are recommended based on the test impact analysis for the tests that you have run. For more information about test impact analysis data and how to collect it using test settings, see How to: Collect Data to Check Which Tests Should be Run After Code Changes.
(Optional) To view the work items associated with all the builds between and including the build in use for your test plan and the previous build that you selected, click Related work items.
(Optional) To select a later build to use, follow these steps:
Click Modify following the Build in use.
The Assign Build activity is now displayed.
To select a later build to take for testing your application, click Available builds and select the build you want. Then click Assign to plan.
The build you selected is now shown in Build in use.
To return to the Recommended Tests activity, click Recommended Tests.
To compare this new build with previous builds, click Previous build to compare and select a previous build.
The recommended test cases and their configurations are now displayed.
(Optional) Select the test case and configuration pairings that you want to run again, and then click Reset to active.
The test case and configuration pairings are now displayed in the Run Tests activity with a status of ready.