How to: Configure Event Log Collection Using Test Settings

You can configure the diagnostic data adapter that collects the event log data from Microsoft Test Manager and Microsoft Visual Studio 2010. The data will be available for review with the test results and in a bug, if you create a bug.

The following procedure describes how to configure your diagnostic data adapter to collect event log data.

Note

The event log can be collected for both manual and automated tests.

Configure the Data to Collect from the Event Log

Before you perform the steps in this procedure, you must open your test settings from either Microsoft Test Manager or Microsoft Visual Studio 2010, and then select the Data and Diagnostics page.

To configure the diagnostic data adapter to collect from the event log

  1. Select the role to use to collect event log data.

  2. Select Event Log and then click Configure.

    The dialog box to configure the event log collection is displayed.

  3. To configure which event logs to collect, select or clear Application, Security or System.

  4. To configure which event types to collect, select or clear Error, Warning, Information, FailureAudit or SuccessAudit.

  5. To limit the number of entries recorded in the event log per test, type the appropriate number in Maximum entries to log per test.

  6. To collect events that occur when other tests are run, check Collect events from test cases that are run as part of another test.

  7. If you are using Microsoft Test Manager, Click Save. If you are using Visual Studio, click OK.

    The diagnostic data adapter for the event log is now configured and saved for this test setting.

See Also

Tasks

Create Test Settings for Manual Tests

Create Test Settings for Automated Tests as Part of a Test Plan

Create Test Settings to Run Automated Tests from Visual Studio

Concepts

Setting Up Machines and Collecting Diagnostic Information Using Test Settings

Running Manual Tests Using Test Runner

Recording and Playing Back Manual Tests