Szerkesztés

Megosztás a következőn keresztül:


Testing a Driver

The WDK adds a driver testing interface to Visual Studio that allows you to build, deploy, install, and test a driver on a remote test computer on your network. The WDK also provides a collection of device driver tests that you can use to test features and functions of your driver. You can also write customize or write your own driver tests using the Driver Test Template in Visual Studio.

Video Demonstration

This video demonstrates the how to run driver-related tests in a test group.

This section describes some strategies for testing driver, and information about how you select and configure a remote computer to use for testing.

To prepare a driver for public distribution, you should run the Windows Hardware Certification Kit (HCK). For information about the Windows Certification program and how to obtain the HCK, see Windows Hardware Certification Program.

The WDK provides the test binaries and tools which make it easy to run the Device Fundamentals tests from the command-line. For more information, see Run the DevFund Tests via the command-line.

Topic Description

Tips for testing drivers during development

When should you start testing? As soon as you have the requirements for your driver, you can begin to design test cases to test that the critical requirements have been implemented. Studies show that finding and fixing defects in code becomes more expensive the longer the defects remain in the code. Finding and fixing defects early in the development cycle is less costly and disruptive than finding defects after the code has been released and distributed. Creating your test cases early can also help you find problems in your design.

How to test a driver at runtime using Visual Studio

The WDK extensions to Visual Studio provide a device testing interface that enables you to conveniently build, deploy, install, and test a driver on a test computer on your network. The WDK provides a collection of device driver tests that you can use to test the features and functions of your driver.

How to write a driver test using a Driver Test template

You can use the Windows Driver Kit (WDK) for Windows 8 to create your own driver tests or to customize some of the tests that are provided. You can deploy the tests that you create to remote test computers using the driver testing framework that the WDK provides for Microsoft Visual Studio Ultimate 2012.

See Also

Tools for Verifying Drivers