Export (0) Print
Expand All

How to: Install a Custom Diagnostic Data Adapter

If you have created a custom diagnostic data adapter, or you have been provided with a custom diagnostic data adapter to use, you can install your diagnostic data adapter assembly by copying the assembly file for it into the correct directory on your local machine.

If you want to use your custom diagnostic data adapter for a role in an environment, you must install your diagnostic data adapter on all the machines that run test agents that can be used for this role.

Use the following procedure to install your custom diagnostic adapter in the appropriate locations. You will need administrative permissions on any machine where you install the diagnostic data adapter.

To install a custom diagnostic data adapter

  1. To use the diagnostic data adapter when you run tests on your client machine or on an agent machine, copy all files from your build directory to the following directory on the target machine based on the installation path:

    Program Files\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\DataCollectors

    The files to copy are:

    • The diagnostic data adapter assembly (.dll) (required).

    • The debug data file (.pdb) for your adapter (optional).

    • The configuration file for your adapter (<diagnostic data adapter name>.dll.config), if you have default configuration settings (optional).

    • The configuration editor assembly if you have created one to edit configuration settings for the adapter (optional). This is only for client machines. Agent machines do not use the editor.

    Note Note

    Although your diagnostic data adapter and your configuration editor can be created in the same project and built into the same assembly, you can use separate projects and create separate assemblies for them, if you prefer.

    For more information about how to configure your test settings to use an environment when you run your tests, see Create Test Settings for Manual Tests Using Microsoft Test Manger or Create Test Settings for Automated Tests Using Microsoft Test Manager.

  2. To select your diagnostic data adapter for a test, you must first select an existing test settings or create a new one from Microsoft Test Manager or Visual Studio and then select your diagnostic data adapter on the Data and Diagnostics tab of the selected test settings.

  3. If you have created and installed a diagnostic data adapter configuration editor, to configure your diagnostic data adapter for your test settings, choose Configure next to your adapter and make any changes. Then choose Save. For more information about how to create a configuration editor for your diagnostic data collector, see How to: Create a Custom Editor for Data for Your Diagnostic Data Adapter.

  4. If you are running your tests from Microsoft Test Manager, you can assign these test settings to your test plan before you run your tests or use the Run with Options command to assign test settings and override test settings. For more information about test settings, see Setting Up Machines and Collecting Diagnostic Information Using Test Settings.

    If you are running your tests from Visual Studio, you must set these test settings to be active. For more information about test settings, see Setting Up Machines and Collecting Diagnostic Information Using Test Settings.

  5. Run your tests using the test settings with the diagnostic data adapter selected.

Show:
© 2014 Microsoft