MTP Compliance Test - Requirements - Media Players
This test validates compliance with the Media Transfer Protocol (MTP), Revision 1.0.
This test makes sure that devices that use the MTP class driver comply with MTP implementation standards. This test is directed at portable media player devices that connect by using the MTP. This test validates compliance with defined protocols based on requirements that are documented in the Windows Certification Program.
Note
This test does not cover the following items:
Digital rights management (DRM) validation
Devices that use proprietary (third-party) drivers that work with the Windows Portable Device (WPD) driver stack
Devices that are not PTP or MTP-based
Test details
Specifications |
|
Platforms |
|
Supported Releases |
|
Expected run time (in minutes) | 5 |
Category | Development |
Timeout (in minutes) | 300 |
Requires reboot | false |
Requires special configuration | false |
Type | automatic |
Additional documentation
Tests in this feature area might have additional documentation, including prerequisites, setup, and troubleshooting information, that can be found in the following topic(s):
Running the test
Before you run the test, complete the test setup as described in the test requirements: Device.Portable Testing Prerequisites.
The MTP device should be active and plugged in before commencing the test. The tool Mtpinfup.exe will update the driver for the attached MTP device to a signed test .inf file Mtptest.inf. Upon completion of the test, Mtpinfup.exe will update the driver back to the original in-box driver Wpdmtp.inf. If an optional capability is not supported by the device, the test will skip that test case.
Troubleshooting
For generic troubleshooting of HLK test failures, see Troubleshooting Windows HLK Test Failures.
For troubleshooting information, see Troubleshooting Device.Portable Testing.
More information
This test requires that a MTP-compatible device is installed. The test is fully automated with Pass/Fail results for each requirement.
This test is divided into the following functional categories:
Device Capabilities tests
Operations tests
Device Properties
Object Property tests
Each of the functional categories mentioned above contain child test cases, testing the sub components that fall under the corresponding category.
The test will validate that the following Operations are supported by the device:
OpenSession
CloseSession
GetDeviceInfo
GetStorageIDs
GetStorageInfo
GetObject
GetDevicePropDesc
GetDevicePropValue
SetDevicePropValue
DeleteObject
SendObject
GetNumObjects
GetObjectHandles
GetObjectInfo
SendObjectInfo
GetPartialObject
GetObjectPropsSupported
GetObjectPropDesc
GetObjectPropValue
SetObjectPropValue
GetObjectReferences
SetObjectReferences
The test validates that the following device properties are supported:
Synchronization Partner
Device Friendly Name
The test validates that the following formats are supported:
Undefined
Association
AbstractAudioAlbum
AbstractAudioVideoPlaylist
For AbstractAudioAlbum, the following properties are verified:
Genre
AlbumArtist
The test validates that the following Object Properties are supported for each supported format:
StorageID
ObjectFormat
ProtectionStatus
ObjectSize
ObjectFileName
ParentObject
PersistentUniqueObjectIdentifier
Name
Non-Consumable
For supported Image formats, the test looks for these additional Object Properties:
Width
Height
For supported Video formats, the test looks for these additional Object Properties:
Width
Height
SampleRate
NumberOfChannels
ScanType
Audio WAVE CODEC
AudioBitRate
VideoFourCCCodec
VideoBitrate
Frames PerThousand Second
Encoding Profile
For supported Audio formats, the test looks for these additional Object Properties:
Artist
Track
AlbumName
AlbumArtist
SampleRate
NumberOfChannels
AudioBitRate
AudioWaveCodec
All other supported operations, device properties, and object properties are considered optional and therefore will be validated according to implementation details defined in the Picture Transfer Protocol (PTP) for Digital Still Photography Devices, Version 1.0 (PIMA15740) and Media Transfer Protocol (MTP), Revision 1.0.
Run time: |
Test duration depends on the number of supported capabilities, formats, and operations. Run time can vary up to 2 hours. |
Log file: |
WTTTestLog.xml |
System restart required: |
No |
Test category: |
Portable Media Player |
Program: |
MtpTest.exe |
Command syntax
Command | Description |
---|---|
te.exe /p:"BVT=TRUE" MtpTest.dll /select(@name='@CapabilitiesTests*') /p "DeviceProfile=MtpMediaPlayer.xml" |
Runs the test. |
Note
For command-line help for this test binary, type /h.
File list
File | Location |
---|---|
Mtptest.dll |
<testbinroot>\mtp\ |
MtpMediaPlayer.xml |
<testbinroot>\mtp\ |
Parameters
Parameter name | Parameter description |
---|---|
WDKDeviceID | |
WpdTestDir | |
TaefTestFile | |
TaefParameters | |
TestParameters | |
TestSelect |