Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

How to: Capture a Screenshot While Running a Test

While you run a test using Test Runner , you have the option to create screenshots that can be attached to the test results. The screenshots can be useful as supporting material related to bugs, for isolating code defects, or for refining user interface designs. For more information, see How to: Submit a Bug using Test Runner

Test Runner  lets you take the following types of screenshots:

  • Window screenshot   For capturing the specific window associated with the application under test.

  • Rectangular screenshot   A rectangle that you can define.

  • Full screenshot   The entire screen.

The window is saved in an image file that has the .png extension. It is listed as part of the test step.

Capturing screenshots in Test Runner

To capture a screenshot using Test Runner

  • Click the arrow next to Capture Rectangular screenshot on the toolbar and choose 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.

    NoteNote

    You can add annotations to the screenshot by double-clicking it. By default, Paint should start and you can add your notes and then save the file.

Community Additions

ADD
Show:
© 2015 Microsoft