Test Power transition [S3 AND S4] supported for a device

Note  This content applies to the Windows Logo Kit (WLK). For the latest information using the new Windows Hardware Certification Kit (HCK), see Windows HCK User's Guide on the Windows Hardware Dev Center.

Type: Automated Test

Overview

This test is not required to get a logo (see details in "Running the Test" below). This test takes the VID\PID for a device, a power state, and a number of iterations as command line parameter.

Using DevED, it finds the device and disables it. It then puts the system into the specified power state,

sets back to S0 power state, and enables the device. It validates whether the device is reenabled or not.

Details

Run Time: 3 minutes
Log File: DevicePowerTest.wtl
System Restart Required: No
Test Category:
Supported operating systems for Logo or Signature testing:
  • Windows 7

  • Windows Server 2008 R2

  • Windows Vista

  • Windows Server 2008

  • Windows XP

  • Windows Server 2003

Program: DevicePowerTest.exe

Requirements

Software Requirements

The test tool requires the following software:

  • Supported operating system (see list above)

  • Software components included with the device that is being tested

Hardware Requirements

The test tool requires the following hardware:

  • Device to be tested

  • Computer that meets the minimum software requirements

Processor

The test tool runs on the following processor architectures:

  • x86

  • x64

  • IA64

Running the Test

All test cases return Pass or Fail. Because this test is not required to run to get a logo, it will not show up in device console when making a submission. To run this test in the DTM, please see How to Manually Schedule USB DTM Jobs.

To manually run this test:

  1. Install the DevED component installer.

  2. Copy the devicetestconfig.xml and DevicePowerTest.exe.

  3. Execute DevicePowerTest.exe.

  4. Uninstall the MSI.

Command Syntax

Command option Description

DevicePowerTest.exe

Launches the device power state test. Will not work unless parameters are defined.

[VID] [PID]

The Vendor ID and Product ID of the device under test, where [VID] and [PID] are replaced by the actual Vid and Pid of the device. This parameter can be replaced by using the Device Instance ID parameter.

[Device Instance Path]

The device instance path of the device to be tested. This parameter can be used instead of the VID PID parameter.

[S[3 or 4 or 5]]

Power state to cycle through.

[ITERATIONS]

The number of iterations for this test to run. The default is set to 3.

 

Code Tour

File Manifest

File Location

DevicePowerTest.exe

[WTT\TestBinRoot]\NTTEST\DRIVERSTEST\usb\DevED\TestApps

DeviceTestConfig.xml

[WTT\TestBinRoot]\NTTEST\DRIVERSTEST\usb\DevED\TestApps

DevEDInstaller.msi

[WTT\TestBinRoot]\NTTEST\DRIVERSTEST\usb\DevED

 

 

 

Build date: 9/14/2012

Community Additions

ADD
Show: