{ # Version: August 27 2010 # Updated for Universal Printer Specification NAME "Get all printer attributes and check for required universal printer attributes." # The operation to use OPERATION get-printer-attributes # The version to use VERSION 2.0 # Defines that may be passed to ipptest's -d option : # PRINTER_IS_COLOR # PRINTER_TAKES_JPEG # PRINTER_TAKES_PDF # Attributes, starting in the operation group... GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $uri # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT charset-configured OF-TYPE charset EXPECT charset-supported OF-TYPE charset WITH-VALUE utf-8 EXPECT color-supported OF-TYPE boolean WITH-VALUE false IF-NOT-DEFINED PRINTER_IS_COLOR EXPECT color-supported OF-TYPE boolean WITH-VALUE true IF-DEFINED PRINTER_IS_COLOR EXPECT compression-supported OF-TYPE keyword WITH-VALUE none EXPECT copies-default OF-TYPE integer EXPECT copies-supported OF-TYPE rangeOfInteger EXPECT document-format-default OF-TYPE mimeMediaType EXPECT document-format-supported OF-TYPE mimeMediaType WITH-VALUE image/urf EXPECT document-format-supported OF-TYPE mimeMediaType WITH-VALUE image/jpeg IF-DEFINED PRINTER_TAKES_JPEG EXPECT document-format-supported OF-TYPE mimeMediaType WITH-VALUE application/pdf IF-DEFINED PRINTER_TAKES_PDF EXPECT finishings-default OF-TYPE enum EXPECT finishings-supported OF-TYPE enum WITH-VALUE 3 EXPECT generated-natural-language-supported OF-TYPE naturalLanguage EXPECT ipp-versions-supported OF-TYPE keyword WITH-VALUE 2.0 EXPECT job-creation-attributes-supported OF-TYPE keyword WITH-VALUE copies EXPECT job-creation-attributes-supported OF-TYPE keyword WITH-VALUE finishings EXPECT job-creation-attributes-supported OF-TYPE keyword WITH-VALUE ipp-attribute-fidelity EXPECT job-creation-attributes-supported OF-TYPE keyword WITH-VALUE job-name EXPECT job-creation-attributes-supported OF-TYPE keyword WITH-VALUE media EXPECT job-creation-attributes-supported OF-TYPE keyword WITH-VALUE media-col EXPECT job-creation-attributes-supported OF-TYPE keyword WITH-VALUE orientation-requested EXPECT job-creation-attributes-supported OF-TYPE keyword WITH-VALUE output-bin EXPECT job-creation-attributes-supported OF-TYPE keyword WITH-VALUE orientation-requested EXPECT job-creation-attributes-supported OF-TYPE keyword WITH-VALUE output-bin EXPECT job-creation-attributes-supported OF-TYPE keyword WITH-VALUE print-quality EXPECT job-creation-attributes-supported OF-TYPE keyword WITH-VALUE printer-resolution EXPECT job-creation-attributes-supported OF-TYPE keyword WITH-VALUE sides EXPECT jpeg-k-octets-supported OF-TYPE rangeOfInteger IF-DEFINED PRINTER_TAKES_JPEG EXPECT jpeg-x-dimension-supported OF-TYPE rangeOfInteger IF-DEFINED PRINTER_TAKES_JPEG EXPECT jpeg-y-dimension-supported OF-TYPE rangeOfInteger IF-DEFINED PRINTER_TAKES_JPEG EXPECT media-col-default OF-TYPE collection EXPECT media-col-supported OF-TYPE keyword EXPECT media-default OF-TYPE keyword EXPECT media-supported OF-TYPE keyword EXPECT natural-language-configured OF-TYPE naturalLanguage EXPECT operations-supported OF-TYPE enum EXPECT orientation-requested-default OF-TYPE enum|no-value EXPECT orientation-requested-supported OF-TYPE enum WITH-VALUE 3 EXPECT output-bin-default OF-TYPE keyword EXPECT output-bin-supported OF-TYPE keyword EXPECT output-mode-default OF-TYPE keyword WITH-VALUE monochrome IF-NOT-DEFINED PRINTER_IS_COLOR EXPECT output-mode-default OF-TYPE keyword WITH-VALUE color IF-DEFINED PRINTER_IS_COLOR EXPECT output-mode-supported OF-TYPE keyword WITH-VALUE monochrome EXPECT output-mode-supported OF-TYPE keyword WITH-VALUE color IF-DEFINED PRINTER_IS_COLOR EXPECT pages-per-minute OF-TYPE integer EXPECT page-ranges-supported OF-TYPE boolean WITH-VALUE true IF-DEFINED PRINTER_TAKES_PDF EXPECT pages-per-minute-color OF-TYPE integer IF-DEFINED PRINTER_IS_COLOR EXPECT pdf-k-octets-supported OF-TYPE rangeOfInteger IF-DEFINED PRINTER_TAKES_PDF EXPECT pdf-versions-supported OF-TYPE keyword WITH-VALUE none IF-NOT-DEFINED PRINTER_TAKES_PDF EXPECT pdf-versions-supported OF-TYPE keyword WITH-VALUE iso-32000-1_2008 IF-DEFINED PRINTER_TAKES_PDF EXPECT pdl-override-supported OF-TYPE keyword WITH-VALUE attempted EXPECT print-quality-default OF-TYPE enum EXPECT print-quality-supported OF-TYPE enum WITH-VALUE 4 EXPECT printer-icons OF-TYPE uri EXPECT printer-is-accepting-jobs OF-TYPE boolean EXPECT printer-location OF-TYPE text EXPECT printer-make-and-model OF-TYPE text EXPECT printer-more-info OF-TYPE uri EXPECT printer-name OF-TYPE name EXPECT printer-resolution-default OF-TYPE resolution EXPECT printer-resolution-supported OF-TYPE resolution EXPECT printer-state OF-TYPE enum EXPECT printer-state-reasons OF-TYPE keyword EXPECT printer-up-time OF-TYPE integer EXPECT printer-uri-supported OF-TYPE uri EXPECT queued-job-count OF-TYPE integer EXPECT sides-default OF-TYPE keyword EXPECT sides-supported OF-TYPE keyword WITH-VALUE one-sided EXPECT urf-supported OF-TYPE keyword EXPECT uri-authentication-supported OF-TYPE keyword SAME-COUNT-AS printer-uri-supported EXPECT uri-security-supported OF-TYPE keyword SAME-COUNT-AS printer-uri-supported }