Disable Enable Composite 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 script takes Device Instance Path or VID/PID (Device Instance Path) of a composite device (i.e. a device having child devices) and number of iterations (N) as command line parameter. It finds the device and all its children and stores them in a list. It then disables and re-enables the device. After this operation, it again finds the children of the device and stores them in another list. The previous list is compared with that of the current list of devices. If both the lists are same, then the test is repeated until all of the N iterations are complete. During this process, if the base list and current list is not matched, then the test is marked as failed and is ended.

Details

Run Time: 1 minute

Log File: StressCompDev.wtl

System Restart Required: No

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: cscript.exe with TS3_StressCompDev.vbs

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 script.

  3. Execute the test script.

  4. Uninstall the MSI.

Command Syntax

Command option Description

TS3_StressCompDev.vbs

Script that runs the stress enabling and disabling of a composite device test.

/VID:[VID] /PID:[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.

/ID:[Device Instance Path]

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

/iter:[ITERATIONS]

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

 

Code Tour

File Manifest

File Location

TS3_StressCompDev.vbs

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

DevEDInstaller.msi

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

 

 

 

Build date: 9/14/2012