How to: Run a Test Case with Associated Automation as a Manual Test
You might want to run a test case that has automation associated with it as a manual test case using Microsoft Test Manager. This lets you run each test step and determine whether there are any issues. For example, if you have a coded UI test that has failed, you might want to manually step through the test steps to determine if there is an issue with the application under test or with the test itself.
- Visual Studio Ultimate, Visual Studio Premium, Visual Studio Test Professional
Use the following procedure to run an automated test in your test plan as a manual test.
To run a test case with associated automation as a manual test
Open Microsoft Test Manager.
To display the Microsoft Test Manager window, choose Start, and then choose All Programs. Point to Microsoft Visual Studio 2012 and then choose Microsoft Test Manager.
To run the automated test as a manual test, choose the down-arrow on the center group switcher and then choose Testing Center.
On the center group menu bar, choose Test.
To override running as an automated test, right-click the test and then choose Run with options.
The Run options dialog box is displayed.
You can run multiple automated tests manually by selecting multiple tests, or you can select to run a whole suite of tests. To run a suite, right-click the test suite and then choose Run with options.
Select Run all the tests manually.
(Optional) To override the test settings to use for running the test manually that you selected in this test plan, choose Test settings under Manual test runs and select the test setting that you want to use.
(Optional) You can also override the environment used in the test settings for your test plan. To do this, choose Environment under Manual test runs and select another environment from the list.
This environment must have the same roles as the test settings that you use.
To run the automated test as a manual test, choose Run.
Test Runner opens with the automated test displayed in the list of tests.
In Test Runner, click Start test.
You can increase the speed and efficiency of tests using action recordings. To create an action recording to use to play back your test later, choose Create action recording. For more information about action recordings, see Recording and Playing Back Manual Tests.
Perform the steps in the test case.
To mark the result of a test step, choose the drop-down for the Ready icon to the right of the test step and then choose either Pass or Fail.
To pause the test case at any time, choose Pause. If you are recording the test case, choosing Pause also pauses the video recording. To resume the test case and the video recording, choose Resume.
If you find a bug, choose Create bug.
The New Bug dialog box is displayed. Any data that you have attached or collected will automatically be added to the bug. For more information, see How to: Submit a Bug using Test Runner.
When you have finished testing, choose End Test.
A result for the test is now marked in the Tests pane, based on the test step results. If you chose to record the test, the recording is automatically stopped and saved.
The overall result for a test is based on the status for all the test steps that were marked. Therefore, if one test step is marked as failed then the test will have a status of failed.
You must mark a test step with a status if it is a validation test step. Otherwise, the test will be automatically marked as failed.
To save your test results, choose Save and Close.
The test results are saved in your test plan.
If you want to discard your test results, just choose Close.