PrintTicket Conformance Test (PTConform)

Type: Automated Test

Overview

The PrintTicket Conformance Test (PTConform) is a conformance tool that you can use to check the validity of PrintTicket and PrintCapabilities documents. PTConform checks that a given PrintTicket or PrintCapabilities syntactically and structurally conforms to the public PrintSchema definition.

Details

The Print Schema provides an XML-based format for expressing and organizing a large set of properties that describe either a job format or capabilities of a print queue in a hierarchically structured manner. The PrintSchema has well-defined public framework elements and public keywords.

 

PTConform reads through an XML document and tests each node to be a valid public framework element. After testing for validity of the framework element, this test checks to see if it defines any public keyword element and checks for the keyword to conform to the PrintSchema.

Note  If a framework node does not contain a public keyword but rather a printer driver’s private namespace keyword, keyword validation is skipped for that node.

 

The results of the test are logged in the log file PTConform.log or PTConform.xml depending on the LogType chosen in the command line parameters.

Run Time: 2 minutes
Log File: 
System Restart Required: No
Test Category: 
Supported operating systems for Logo or Signature testing:

  • Windows 7

  • Windows Server 2008 R2

  • Windows Vista

  • Windows Server 2003

  • Windows XP

Program: 

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
  • Windows keyboard
  • Two-button pointing device
  • Color display monitor capable of at least 1024 by 768 resolution, 32-bits per pixel, 60 Hz
  • Hard drive with a minimum of 20 GB available on partition C:

Processor

  • x86
  • x64
  • Itanium

Command Syntax

Command option Description
PTConform.exe /PrintTicket=PrintTicketXMLFileName /LogType=LogType /Verbosity=LogVerbosityLevel
PrintTicketXMLFileName Is the PrintTicket XML saved as a file on disk.
/LogType LogType – Specifies the type of logging that you want. This option takes one of two values: "wtt" or "txt". When "wtt", a WTT logfile named PTConform.xml is created. When "txt", a text log file named PTConform.log is created. The default value is "txt". To obtain a WTT log, WTTLog.dll must be installed on the system.
LogVerbosityLevel Specifies the verbosity of the log file that is produced. This option takes the following values: "1" will log only error messages and "2" will log traces and error messages.
PTConform.exe /PrintTicket=XmlFileName Use PTConform to test a PrintTicket.
PTConform.exe /PrintCapabilities=XmlFileName Use PTConform to test a PrintCapabilities.
PTConform.exe /Printer=PrintQueueName Use PTConform to test the default PrintTicket for a specific print queue.

Test Assertions

 

Windows Logo Program: IMAGING-0030 Printer drivers must be correctly implemented based on the content of the WDK

Send feedback on this topic
Built on December 10, 2009