WDTF Quick Start

The Windows Driver Kit 8.0 provides an integrated solution for writing, deploying, and running tests that use the Windows Driver Test Framework (WDTF). Using the WDK, you can configure a remote computer for deploying, testing, and debugging a driver. When you configure the remote computer, the Windows Driver Test Framework runtime is installed.

Installing WDTF runtime library

Hh781401.wedge(en-us,VS.85).gifTo install WDTF runtime library using Visual Studio and the WDK

  1. Install Visual Studio and then install the WDK.

  2. Configure a remote computer for testing and deployment (Driver > Test > Configure computers...). When you configure the test computer, the Windows Driver Test Framework runtime is installed. For more information, see Deploying a Driver to a Test Computer and Configuring a Computer for Testing and Debugging.

Hh781401.wedge(en-us,VS.85).gifTo install WDTF runtime library manually

  • When you install the WDK, the installation package for the Windows Driver Test Framework runtime is also installed. You need to copy the installation package to a test computer and run a command. For information, see WDTF Runtime Library and "Manually installing WDTF runtime library on a test computer (alternative method)."

Writing tests with WDTF

The WDK provides templates for writing tests with WDTF. See How to write a driver test using a Driver Test template. You can also use a template to create a WDTF SimpleIO plug-in for your target device. For information, see Writing a WDTF SimpleIO plug-in for your device.

Running WDTF tests

When you build your driver test in Visual Studio using a WDTF Driver test template, the new test will be available for deployment to a test computer. By default, the tests that you create will appear in the test category My Test Category. The names of the tests are based upon the test cases that you choose, and they will have names such as My Plug and Play Surprise Remove Test. During each build of the test, the tests will be overwritten and available to run in the Easily Run Tests feature. For more information, see How to test a driver at runtime using Visual Studio.

 

 

Send comments about this topic to Microsoft

Anzeigen:
© 2014 Microsoft