@ bo28.test - Test plan Section 2.8: Get-Printer-Attributes @ Version 1.4 @ Last revised by Xerox Corporation on 99-03-02. # Added tests for returning unsupported attributes and status codes - TNH # Fixed title to show relationship to Test Plan - TNH # Use symbolic status codes - TNH # Copyright (c) 1998, 1999 by Xerox Corporation. All rights reserved. # User is granted the right to modify this file for use with # the IPP Server Test Tool, as described in the file # LICENSE-IppTest.txt. @ @ 2.8 Send request from Client to Printer (Get-Printer-Attributes) @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ # For each IPP Printer send a get-printer-attributes request to # the Printer to get default response (i.e. no requested # attributes or groups). Any IPP Client or Test Tool may be used. # The objective of this initial test is basic IPP connectivity. # It is preferable to use an independently implemented Client/Test # Tool. Use the results of the IPP operation below. @ 2.8.1 Get-printer-attributes - Default @ ---------------------------------------------------------------- @ Get-Printer-Attributes \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ ) \ ) Expect Response \ status-code: successful-ok, \ attributes: ( \ Operation: ( \ oa08 = attributes-charset: utf-8, \ oa09 = attributes-natural-language: *, \ ... \ ), \ Printer: ( \ pd01 = printer-uri-supported: *, \ pd02 = uri-security-supported: *, \ pd03 = printer-name: *, \ pd04 = printer-state: *, \ pd05 = operations-supported: *, \ pd06 = charset-configured: *, \ pd07 = charset-supported: *, \ pd08 = natural-language-configured: *, \ pd09 = generated-natural-language-supported: *, \ pd10 = printer-is-accepting-jobs: *, \ pd11 = pdl-override-supported: *, \ pd21 = document-format-default: *, \ pd22 = document-format-supported: *, \ pd12 = printer-up-time: *, \ ... \ ) \ ) @ The returned attributes should be all the Printer Description @ and Job Template attributes supported by the Printer. @ Make sure the results are the same as for the printer in section 2.1. @ as recorded in Section 4.2.1, 4.2.2, and 4.2.3. @ 2.8.2 Get-printer-attributes - All @ "requested-attributes"=all @ ---------------------------------------------------------------- @ Get-Printer-Attributes \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ requested-attributes: \ ) \ ) Expect Response \ status-code: successful-ok, \ attributes: ( \ Operation: ( \ oa08 = attributes-charset: utf-8, \ oa09 = attributes-natural-language: *, \ ... \ ), \ Printer: ( \ pd01 = printer-uri-supported: *, \ pd02 = uri-security-supported: *, \ pd03 = printer-name: *, \ pd04 = printer-state: *, \ pd05 = operations-supported: *, \ pd06 = charset-configured: *, \ pd07 = charset-supported: *, \ pd08 = natural-language-configured: *, \ pd09 = generated-natural-language-supported: *, \ pd10 = printer-is-accepting-jobs: *, \ pd11 = pdl-override-supported: *, \ pd21 = document-format-default: *, \ pd22 = document-format-supported: *, \ pd12 = printer-up-time: *, \ ... \ ) \ ) @ The returned attributes should be all the Printer Description @ and Job Template attributes supported by the Printer. @ Make sure the results are the same as the previous test (8.2.1) @ and for the printer in section 2.1. @ as recorded in Section 4.2.1, 4.2.2, and 4.2.3. @ 2.8.3 Get-printer-attributes - Printer Description @ "requested-attributes"=printer-description @ ---------------------------------------------------------------- @ Get-Printer-Attributes \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ requested-attributes: \ ) \ ) Expect Response \ status-code: successful-ok, \ attributes: ( \ Operation: ( \ oa08 = attributes-charset: utf-8, \ oa09 = attributes-natural-language: *, \ ... \ ), \ Printer: ( \ pd01 = printer-uri-supported: *, \ pd02 = uri-security-supported: *, \ pd03 = printer-name: *, \ pd04 = printer-state: *, \ pd05 = operations-supported: *, \ pd06 = charset-configured: *, \ pd07 = charset-supported: *, \ pd08 = natural-language-configured: *, \ pd09 = generated-natural-language-supported: *, \ pd10 = printer-is-accepting-jobs: *, \ pd11 = pdl-override-supported: *, \ pd21 = document-format-default: *, \ pd22 = document-format-supported: *, \ pd12 = printer-up-time: *, \ ... \ ) \ ) @ The returned attributes should be all the Printer Description @ supported by the Printer. @ Make sure the results are the same as for the printer in section 2.1. @ as recorded in Section 4.2.1, 4.2.2, and 4.2.3. @ 2.8.3 Get-printer-attributes - Job Template @ "requested-attributes"=job-template @ ---------------------------------------------------------------- @ Get-Printer-Attributes \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ requested-attributes: \ ) \ ) Expect Response \ status-code: successful-ok, \ attributes: ( \ Operation: ( \ oa08 = attributes-charset: utf-8, \ oa09 = attributes-natural-language: *, \ ... \ ), \ Printer: ( \ ... \ ) \ ) @ The returned attributes should be all the Job Template @ supported by the Printer. @ Make sure the results are the same as for the printer in section 2.1. @ as recorded in Section 4.2.1, 4.2.2, and 4.2.3. @ 2.8.4 Get-printer-attributes - ask for an unsupported (bogus) attribute @ "requested-attributes"=bogus-attribute @ ---------------------------------------------------------------- @ Get-Printer-Attributes \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ requested-attributes: \ ) \ ) @ @ When an unsupported attribute is requested in Get-Printer-Attributes: @ MUST return successful-ok-ignored-or-substituted-attributes (0x1) @ MAY (but NEED NOT) also return the attribute in the @ Unsupported Attributes Group with the 'unsupported' out-of-band value @ Expect Response \ status-code: successful-ok-ignored-or-substituted-attributes, \ attributes: ( \ Operation: ( \ ... \ ), \ Printer: ( \ printer-state: idle | processing | stopped \ ), \ ... \ ) @ The returned attributes should be all the Job Template @ supported by the Printer. @ Make sure the results are the same as for the printer in section 2.1. @ as recorded in Section 4.2.1, 4.2.2, and 4.2.3.