Поделиться через


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.

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

  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.

  2. To run the automated test as a manual test, click the down-arrow on the center group switcher and then click Testing Center.

  3. On the center group menu bar, click Test.

  4. To override running as an automated test, right-click the test and then click Run with options.

    The Run options dialog box is displayed.

    Note

    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 click Run with options.

  5. Select Run all the tests manually.

  6. (Optional) To override the test settings to use for running the test manually that you selected in this test plan, click Test settings under Manual test runs and select the test setting that you want to use.

  7. (Optional) You can also override the environment used in the test settings for your test plan. To do this, click Environment under Manual test runs and select another environment from the list.

    Note

    This environment must have the same roles as the test settings that you use.

  8. To run the automated test as a manual test, click Run.

  9. Test Runner opens with the automated test displayed in the list of tests.

  10. In Test Runner, click Start test.

    Note

    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, click Create action recording. For more information about action recordings, see Recording and Playing Back Manual Tests.

  11. Perform the steps in the test case.

  12. To mark the result of a test step, click the drop-down for the Ready icon to the right of the test step and then click either Pass or Fail.

    Note

    To pause the test case at any time, click Pause. If you are recording the test case, clicking Pause also pauses the video recording. To resume the test case and the video recording, click Resume.

  13. If you find a bug, click 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.

  14. When you have finished testing, click 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.

    Important

    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.

  15. To save your test results, click Save and Close.

    The test results are saved in your test plan.

    Note

    If you want to discard your test results, just click Close.

See Also

Tasks

How to: Analyze Test Runs Using Microsoft Test Manager

Concepts

Reviewing Test Results