How to: Submit a Bug using Test Runner
When you run a manual test and discover a defect in the application under test, you can submit a bug directly from Test Runner without having to switch to Visual Studio. Submitting a bug in this manner automatically adds a link and information about your test and testing environment to the bug. You can also update an existing bug if you discover additional defects while you are running a test. For more information, see How to: Update an Existing Bug while using Test Runner.
Note
You can also have Test Runner record aspects of your manual test that you can submit with the bug. This makes the bug more usable by the person who will fix it. For more information about recording, see Recording and Playing Back Manual Tests.
If you find a bug when you are not running a specific test, you can submit a bug from Microsoft Test Manager. For example, you perform ad hoc testing and find a bug, or you notice incorrect behavior from discussion of the application under test. For more information, see How to: Submit a Bug Using Microsoft Test Manager.
Requirements
- Visual Studio Ultimate, Visual Studio Premium, Visual Studio Test Professional
Note
When you create a bug in Microsoft Test Manager and not in Test Runner, information is not automatically added to the bug. You must manually enter system information and the steps to re-create the bug.
To submit a bug from Test Runner
In Test Manager, start to run a test. For more information, see How to: Run Manual Tests.
As you run the test case, mark steps as Pass, as appropriate.
When you discover an application defect, mark the test step on which you discovered that defect as Fail.
(Optional) To type a comment for the failed test step.
Note
You can also add comments in the Comments for this test step using the Add comment to step result button in the toolbar. For more information, see How to: Add a Comment while Running a Test.
(Optional) To take a screen shot for either a rectangular area you can define, the specific window associated with the application under test, or the whole screen, choose the arrow next to Capture on the toolbar and select either Capture rectangular screenshot, Capture full screenshot or Capture window screenshot.
The window is saved in an image file that has the .png extension. It is listed as part of the test step. To annotate this image, double-click the .png file and the file is opened. You can annotate it and save it. For more information, see How to: Capture a Screenshot while Running a Test.
Note
You can also create a video recording of the desktop session during the test. The recording will be attached as a .wmv file together with the test results. This can be useful to help a developer view what occurred when the bug was found. For more information about how to create a video recording, see How to: Include Recordings of the Screen and Voice During Tests Using Test Settings.
(Optional) You can attach a file which can provide additional information to support the issue. Choose Add attachment to step result in the toolbar.
Select the test step where the bug occurred and then choose Create bug icon on the toolbar.
Note
You can also submit a bug at any time while running a test regardless if it is related or discovered during a specific test step or if a test step has failed or not.
A New Bug work item is created. The comments, screenshots, file attachments, and audio and video recordings appear under the STEPS TO REPRODUCE tab.
Note
You may also append the issue to an existing bug by choosing the arrow next to the Create bug icon on the toolbar and selecting Update an existing bug. For more information, see How to: Update an Existing Bug while using Test Runner
Note
The Test Runner is automatically paused while you create a bug.
Tip
The New Bug work item includes a toolbar that you can use to format your text. You can use various formatting options, for example bold, underline, or color highlighting to emphasis key points in your comments.
Type an appropriate title in the <Enter title here> field.
(Optional) To assign the bug to a team member, choose the down-arrow next to Assigned To.
(Optional) To change the state of the bug, choose the down-arrow next to State.
(Optional) To change reason for the bug, choose the down-arrow next to Reason.
(Optional) Type in an appropriate value or text in the textbox next to Effort.
(Optional) To update the bug’s severity, choose the down-arrow next to Severity.
Change the area for the bug by choosing the down-arrow next to Area.
(Optional) To see the system information that was automatically added about the computer that you used for the test, choose the SYSTEM tab.
(Optional) Under TEST CASES, you can view the test case you were running with Test Runner that the bug will be linked to.
(Optional) Type any additional comments in the HISTORY tab.
(Optional) To see the test result attachments that are added as links, for example screenshots choose the LINKS tab. This includes diagnostic trace data. For more information, see How to: Submit Bugs with Diagnostic Trace Data.
To save the bug, choose Save and close.
Choose Resume to continue with the test.
You can end the test and mark it as blocked or continue with the test depending on the bug that you discovered.
See Also
Tasks
How to: Update an Existing Bug while using Test Runner
How to: Submit a Bug Using Microsoft Test Manager
How to: Include Recordings of the Screen and Voice During Tests Using Test Settings
How to: Capture a Screenshot while Running a Test
How to: Attach a File while Running a Test
Concepts
Running Manual Tests Using Test Runner
Other Resources
Including Diagnostic Trace Data with Bugs that are Difficult to Reproduce