Share via

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 Visual Studio. 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.


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 Visual Studio, 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 choose 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, Choose Save. If you are using Visual Studio, choose OK.

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

See Also


Create Test Settings for Manual Tests Using Microsoft Test Manger

Create Test Settings for Automated Tests Using Microsoft Test Manager

Create Test Settings to Run Automated Tests from Visual Studio


Setting Up Machines and Collecting Diagnostic Information Using Test Settings

Running Manual Tests Using Test Runner

Recording and Playing Back Manual Tests