Share via


WMDM Compliance Test

This test validates common WMDM scenarios for Portable Media Devices by exercising content transfer, device initialization, and content cancellation scenarios at the WMDM level.

Test details

Associated requirements

Device.Portable.MediaPlayer.MTP Device.Portable.MobilePhone.MTP

See the device hardware requirements.

Platforms

Windows 7 (x64) Windows 7 (x86) Windows 8 (x64) Windows 8 (x86) Windows 8.1 x64 Windows 8.1 x86

Expected run time

~5 minutes

Categories

Certification Functional

Type

Automated

 

Running the test

Before you run the test, complete the test setup as described in the test requirements: Device.Portable Testing Prerequisites.

Note  

You may need additional hardware if the test device provides bus-specific support. To determine whether you need additional hardware, see the description for each bus-specific test.

 

Troubleshooting

For troubleshooting information, see Troubleshooting Device.Portable Testing.

More Information

The WMDM Compliance test consists of these test cases:

  • Device storage initialization

  • Transfer cancellation from PC to Device

  • Transfer cancellation from Device to PC

Initialize Device Storage

This test case initializes (formats) the device by using the WMDM device interface. The device must be Windows® Portable Device (WPD) compliant and support the WMDM interface. No other setup is required.

Command line: WmdmCopy WmdmCopy.exe wmdmcopy_Format.pro –c -e “{44CDDF79-39E8-41b2-AB57-4B49530CEFC3}" -l "s98wtt.dll"

  1. Get WMDM interface. (Test will be skipped if the device does not support WMDM.)

  2. Get device data

  3. IF WMDM interface exists and can be initialized

    1. Get root storage (IWMDMStorageGlobals)

    2. Initialize storage

    3. Sleep 5 seconds //some devices reboot after format

    4. Set MaxFormatRetryCount to 10

    5. WHILE WMDM device is not found

    6. ENDWHILE

      1. Refresh the device list

      2. If WMDM device exists break

      3. If retry count greater than 10

      4. FAIL test

      5. break

      6. ENDIF

      7. Sleep 2 seconds

  4. ENDIF

Transfer Cancellation from PC to Device

This test case verifies cancellation while transferring content to the device by using the WMDM device interface. The device must be WPD compliant and support the WMDM interface. No other setup is required.

Command line: WmdmCopy.exe WmdmCopy_Content_Transfer_Cancellation.pro -c -e “{C8853606-B76C-42c4-9E51-C0ADFA156DEA}” -l “s98wtt.dll”

  1. Get WMDM interface. (Test will be skipped if device does not support WMDM.)

  2. Get device data

  3. IF WMDM interface exists and can be initialized

    1. Get test content directory

    2. FOR count of 10

      1. Transfer test file from PC to WMDM device

      2. Cancel transfer before completed

      3. IF transfer passed FAIL test

    3. ENDFOR

    4. Transfer file from PC to WMDM device

    5. IF transfer failed FAIL test

  4. ENDIF

Transfer Cancellation from Device to PC

This test case verifies cancellation while transferring content to the device by using the WMDM device interface. The device must be WPD compliant and support the WMDM interface. No other setup is required.

Command line: WmdmCopy.exe WmdmCopy_Content_Transfer_From_Device_Cancellation.pro -c -e “{BA63CCBB-30FD-4432-A8F6-A6597D87BA0F}” -l “s98wtt.dll”

  1. Get WMDM interface. (Test will be skipped if device does not support WMDM.)

  2. Get device data

  3. IF WMDM interface exists and can be initialized

    1. Get test content directory

    2. FOR count of 10

      1. Transfer test file from WMDM device to PC

      2. Cancel transfer before completed

      3. IF transfer passed FAIL test

    3. ENDFOR

    4. Transfer file from WMDM device to PC

    5. IF transfer failed FAIL test

  4. ENDIF

File list

File Location

wmdmcopy.exe

[TestBinRoot]\NTTEST\MULTIMEDIATEST\wmdm\wmdmcopy\

test.mp3

[Wow64TestBinRoot]\NTTEST\MULTIMEDIATEST\wmdm\wmdmcopy\wdk\

test.wma

[Wow64TestBinRoot]\NTTEST\MULTIMEDIATEST\wmdm\wmdmcopy\wdk\

proghelp.dll

[TestBinRoot]\NTTEST\MULTIMEDIATEST\wmdm\proghelp\

s98wtt.dll

[TestBinRoot]\NTTEST\MULTIMEDIATEST\Common\

test.asf

[Wow64TestBinRoot]\NTTEST\MULTIMEDIATEST\wmdm\wmdmcopy\wdk\

test.wav

[Wow64TestBinRoot]\NTTEST\MULTIMEDIATEST\wmdm\wmdmcopy\wdk\

test.wmv

[Wow64TestBinRoot]\NTTEST\MULTIMEDIATEST\wmdm\wmdmcopy\wdk\

WmdmCopy_Content_Transfer_From_Device_Cancellation.pro

[TestBinRoot]\NTTEST\MULTIMEDIATEST\wmdm\wmdmcopy\

WmdmCopy_Content_Transfer_Cancellation.pro

[TestBinRoot]\NTTEST\MULTIMEDIATEST\wmdm\wmdmcopy\

WmdmCopy_Initialize_Device_Storage.pro

[TestBinRoot]\NTTEST\MULTIMEDIATEST\wmdm\wmdmcopy\

 

 

 

Send comments about this topic to Microsoft