Поделиться через


Print Processor API Test

This automated test loads the print processor into its own memory space and verifies that all required interfaces are present. Furthermore, the test tries to call these interfaces to make sure that the print processor is robust.

Test details

Associated requirements

Device.Imaging.Printer.Base.printProcessor

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.

Warning  

You must install all print processors on the system before you can test these processors. If you specify the print processor, the test evaluates the print processor and the default printer. If you do not install a printer, the test only evaluates whether the print processor supports the required interfaces.

 

Troubleshooting

For troubleshooting information, see Troubleshooting Device.Imaging Testing.

More information

The Print Processor API test calls LoadLibrary function on the specified print processor to load it into its own process. It then calls GetProcAddress on the following six required endpoints:

  • OpenPrintProcessor

  • ClosePrintProcessor

  • ControlPrintProcessor

  • EnumPrintProcessorDatatypesW

  • PrintDocumentOnPrintProcessor

  • GetPrintProcessorCapabilities

If the test cannot find one of these required endpoints, the test logs a failure.

Because print processors are capable of running many functions, it is impossible to write an automated test that can test any particular print processor. It We recommend that you test the print processor’s functionality manually.

Success: The Print Processor API test passes if the rollup at the end of the log file contains no failures.

Failure: The Print Processor API test fails if the rollup at the end of the log file contains one or more failures.

 

 

Send comments about this topic to Microsoft