Delen via


PrintTicket Test

This automated test exercises the unmanaged PrintTicket and PrintCapabilties APIs that are part of Windows Vista and newer version of Windows.

If you have the Windows Driver Kit (WDK) test suite at the command line, the test tool sequentially runs the test cases that the TestSuite.xml file mentions. For the WDK test suite, the test cases call all of the native PrintTicket and PrintCapabilities APIs sequentially by using valid input parameters and expect valid output.

You can use this test to evaluate:

  • A driver's implementation of the PrintTicket and PrintCapabilities COM callable interface: IPrintTicketProvider.

  • A driver plugin's implementation of the PrintTicket and PrintCapabilities COM callable interface: IPrintOEMPrintTicketProvider.

  • A legacy driver's PrintTicket and PrintCapabilities shim layer. You can test the PrintTicket and PrintCapabilities API calls for legacy printers that do not support the IPrintTicketProvider interface.

Test details

Associated requirements

Device.Imaging.Printer.Base.printTicket

See the device hardware requirements.

Platforms

Windows 7 (x64) Windows 7 (x86) Windows 8 (x64) Windows 8 (x86) Windows Server 2012 (x64) Windows Server 2008 R2 (x64) Windows 8.1 x64 Windows 8.1 x86 Windows Server 2012 R2

Expected run time

~2 minutes

Categories

Certification Functional

Type

Automated

 

Running the test

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

Troubleshooting

For troubleshooting information, see Troubleshooting Device.Imaging Testing.

Warning  

Any attempt to change the system default printer while the test is running might lead to inconsistent results.

 

 

 

Send comments about this topic to Microsoft