@ bo25.test - Test plan Section 2.5: Print jobs submission @ Version 1.7 @ Last revised by Xerox Corporation on 99-03-02. # Added NONSPOOLING conditional to submit one job at a time - TNH # Fixed title to show relationship to Test Plan - TNH # Allow any Unsupported Attributes in response - 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.5 Print job submission (Print-Job) @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ # This step tests the print-job operation. The results of this test can # be checked by the examining the response and performing a subsequent # operation as in sections 2.6 and 2.7. List any results that do not match # the results from section 2.4 in the table in section 4.6 @ @ 2.5.1 Simple Job @ ---------------------------------------------------------------- @ @ Submit some jobs using the print-job operation. Use the @ attribute combinations used in section 2.4.1. If the results do not @ agree, make a note in section 4.6. @ @ @ Test A - ALL REQUIRED operation attributes for a Printer to @ support) ipp-attribute-fidelity omitted, @ but no Job Template attributes @ --------------------------------------- @ Print-Job \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ requesting-user-name: 'IPP Bake-off User 1', \ job-name: 'Test case 2.5 A Job', \ document-name: 'The File To Print', \ document-format: $requested-doc-format \ ) \ ), \ data: $test-print-file Expect Response \ status-code: successful-ok, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: *, \ ... \ ), \ Job: ( \ job-uri: *, \ job-id: *, \ job-state: pending | processing, \ ... \ ) \ ) @ @ Record combinations in the table in section 4.5 for comparison @ with the results in section 2.5.1. @ @@ @ Test B - Supported (Mandatory) op attrs, @ no ipp-attribute-fidelity and @ media=na-letter-white attributes @ --------------------------------------- @ IfDef NON-SPOOLING $prompt-to-accept-next-job-1 $prompt-to-accept-next-job-2 EndIf Print-Job \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ job-name: 'Test case 2.5 B Job', \ document-name: 'The File To Print', \ document-format: $requested-doc-format \ ), \ Job: ( \ media: ($media-simple-syntax)na-letter-white \ ) \ ), \ data: $test-print-file Expect Response \ status-code: successful-ok | \ successful-ok-ignored-or-substituted-attributes,\ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: *, \ ... \ ), \ Job: ( \ job-uri: *, \ job-id: *, \ job-state: pending | processing, \ ... \ ), \ ... \ ) @ @ Record combinations in the table in section 4.5 for comparison @ with the results in section 2.5.1. @ @ @ Test C - Supported (Mandatory) op attrs, @ no ipp-attribute-fidelity and @ copies=2 attributes @ --------------------------------------- @ IfDef NON-SPOOLING $prompt-to-accept-next-job-1 $prompt-to-accept-next-job-2 EndIf Print-Job \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ job-name: 'Test case 2.5 C Job', \ document-name: 'The File To Print', \ document-format: $requested-doc-format \ ), \ Job: ( \ copies: 2 \ ) \ ), \ data: $test-print-file Expect Response \ status-code: successful-ok | \ successful-ok-ignored-or-substituted-attributes,\ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: *, \ ... \ ), \ Job: ( \ job-uri: *, \ job-id: *, \ job-state: pending | processing, \ ... \ ), \ ... \ ) @ @ Record combinations in the table in section 4.5 for comparison @ with the results in section 2.5.1. @ @ @ Test D - Supported (Mandatory) op attrs, @ no ipp-attribute-fidelity and @ sides=2 attributes @ --------------------------------------- @ IfDef NON-SPOOLING $prompt-to-accept-next-job-1 $prompt-to-accept-next-job-2 EndIf Print-Job \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ job-name: 'Test case 2.5 D Job', \ document-name: 'The File To Print', \ document-format: $requested-doc-format \ ), \ Job: ( \ sides: one-sided \ ) \ ), \ data: $test-print-file Expect Response \ status-code: successful-ok | \ successful-ok-ignored-or-substituted-attributes,\ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: *, \ ... \ ), \ Job: ( \ job-uri: *, \ job-id: *, \ job-state: pending | processing, \ ... \ ), \ ... \ ) @ @ Record combinations in the table in section 4.5 for comparison @ with the results in section 2.5.1. @ @ 2.5.2 Unsupported attribute job/best effort @ ---------------------------------------------------------------- @ @ Send a Print-Job operation to the printer. The attribute-fidelity @ attribute is supplied as false. Record @ the job attributes that are being sent. Try various unsupported @ and supported attribute combinations. @ @ @ Test E - Supported (Mandatory) op attrs, @ ipp-attribute-fidelity=false and @ no Job Template attributes @ --------------------------------------- @ IfDef NON-SPOOLING $prompt-to-accept-next-job-1 $prompt-to-accept-next-job-2 EndIf Print-Job \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ job-name: 'Test case 2.5 E Job', \ document-name: 'The File To Print', \ document-format: $requested-doc-format, \ ipp-attribute-fidelity: false \ ) \ ), \ data: $test-print-file Expect Response \ status-code: successful-ok, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: *, \ ... \ ), \ Job: ( \ job-uri: *, \ job-id: *, \ job-state: pending | processing, \ ... \ ) \ ) @ @ Record combinations in the table in section 4.5 for comparison @ with the results in section 2.5.1. @ @@ @ Test F - Supported (Mandatory) op attrs, @ ipp-attribute-fidelity=false and @ media=na-letter-white attributes @ --------------------------------------- @ IfDef NON-SPOOLING $prompt-to-accept-next-job-1 $prompt-to-accept-next-job-2 EndIf Print-Job \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ job-name: 'Test case 2.5 F Job', \ document-name: 'The File To Print', \ document-format: $requested-doc-format, \ ipp-attribute-fidelity: false \ ), \ Job: ( \ media: ($media-simple-syntax)na-letter-white \ ) \ ), \ data: $test-print-file Expect Response \ status-code: successful-ok | \ successful-ok-ignored-or-substituted-attributes,\ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: *, \ ... \ ), \ Job: ( \ job-uri: *, \ job-id: *, \ job-state: pending | processing, \ ... \ ), \ ... \ ) @ @ Record combinations in the table in section 4.5 for comparison @ with the results in section 2.5.1. @ @ @ Test G - Supported (Mandatory) op attrs, @ ipp-attribute-fidelity=false and @ copies=2 attributes @ --------------------------------------- @ IfDef NON-SPOOLING $prompt-to-accept-next-job-1 $prompt-to-accept-next-job-2 EndIf Print-Job \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ job-name: 'Test case 2.5 G Job', \ document-name: 'The File To Print', \ document-format: $requested-doc-format, \ ipp-attribute-fidelity: false \ ), \ Job: ( \ copies: 2 \ ) \ ), \ data: $test-print-file Expect Response \ status-code: successful-ok | \ successful-ok-ignored-or-substituted-attributes,\ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: *, \ ... \ ), \ Job: ( \ job-uri: *, \ job-id: *, \ job-state: pending | processing, \ ... \ ), \ ... \ ) @ @ Record combinations in the table in section 4.5 for comparison @ with the results in section 2.5.1. @ @ @ Test H - Supported (Mandatory) op attrs, @ ipp-attribute-fidelity=false and @ sides=2 attributes @ --------------------------------------- @ IfDef NON-SPOOLING $prompt-to-accept-next-job-1 $prompt-to-accept-next-job-2 EndIf Print-Job \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ job-name: 'Test case 2.5 H Job', \ document-name: 'The File To Print', \ document-format: $requested-doc-format, \ ipp-attribute-fidelity: false \ ), \ Job: ( \ sides: one-sided \ ) \ ), \ data: $test-print-file Expect Response \ status-code: successful-ok | \ successful-ok-ignored-or-substituted-attributes,\ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: *, \ ... \ ), \ Job: ( \ job-uri: *, \ job-id: *, \ job-state: pending | processing, \ ... \ ), \ ... \ ) @ @ Record combinations in the table in section 4.5 for comparison @ with the results in section 2.5.2. @ @ @ Test I - Supported (Mandatory) op attrs @ ipp-attribute-fidelity=false and @ ALL Job Template attributes @ --------------------------------------- @ IfDef NON-SPOOLING $prompt-to-accept-next-job-1 $prompt-to-accept-next-job-2 EndIf Print-Job \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ job-name: 'Test case 2.5 I Job', \ document-name: 'The File To Print', \ document-format: $requested-doc-format, \ ipp-attribute-fidelity: false \ ), \ Job: ( \ job-priority: 50, \ job-hold-until: ($job-hold-until-simple-syntax)second-shift, \ job-sheets: ($job-sheets-simple-syntax)standard, \ multiple-document-handling: single-document, \ copies: 2, \ finishings: , \ page-ranges: <<2,3>>, \ sides: one-sided, \ number-up: 2, \ orientation-requested: portrait, \ media: ($media-simple-syntax)na-letter-white, \ printer-resolution: <300,300,3>, \ print-quality: normal, \ bogus-attribute: 'bogus attr value' \ ) \ ), \ data: $test-print-file Expect Response \ status-code: successful-ok-ignored-or-substituted-attributes \ | successful-ok-conflicting-attributes, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: *, \ ... \ ), \ Unsupported: ( \ bogus-attribute: *, \ ... \ ), \ Job: ( \ job-uri: *, \ job-id: *, \ job-state: pending | processing, \ ... \ ) \ ) @ @ Record combinations in the table in section 4.5 for comparison @ with the results in section 2.5.2. @ @ @ 2.5.3 Unsupported attribute job/fidelity @ ---------------------------------------------------------------- @ @ Send a Print-Job to the printer. The attribute-fidelity @ attribute is set to true. Record the job attributes that @ are being sent. Try various unsupported and supported attribute @ combinations. @ @ @ Test J - Supported (Mandatory) op attrs, @ ipp-attribute-fidelity=true and @ no Job Template attributes @ --------------------------------------- @ IfDef NON-SPOOLING $prompt-to-accept-next-job-1 $prompt-to-accept-next-job-2 EndIf Print-Job \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ job-name: 'Test case 2.5 J Job', \ document-name: 'The File To Print', \ document-format: $requested-doc-format, \ ipp-attribute-fidelity: true \ ) \ ), \ data: $test-print-file Expect Response \ status-code: successful-ok, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: *, \ ... \ ), \ Job: ( \ job-uri: *, \ job-id: *, \ job-state: pending | processing, \ ... \ ) \ ) @ @ Record combinations in the table in section 4.5 for comparison @ with the results in section 2.5.3. @ @@ @ Test K - Supported (Mandatory) op attrs, @ ipp-attribute-fidelity=true and @ media=na-letter-white attributes @ --------------------------------------- @ IfDef NON-SPOOLING $prompt-to-accept-next-job-1 $prompt-to-accept-next-job-2 EndIf Print-Job \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ job-name: 'Test case 2.5 K Job', \ document-name: 'The File To Print', \ document-format: $requested-doc-format, \ ipp-attribute-fidelity: true \ ), \ Job: ( \ media: ($media-simple-syntax)na-letter-white \ ) \ ), \ data: $test-print-file Expect Response \ status-code: successful-ok | \ client-error-attributes-or-values-not-supported,\ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: *, \ ... \ ), \ ... \ ) @ @ Record combinations in the table in section 4.5 for comparison @ with the results in section 2.5.3. @ @ @ Test L - Supported (Mandatory) op attrs, @ ipp-attribute-fidelity=true and @ copies=2 attributes @ --------------------------------------- @ IfDef NON-SPOOLING $prompt-to-accept-next-job-1 $prompt-to-accept-next-job-2 EndIf Print-Job \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ job-name: 'Test case 2.5 L Job', \ document-name: 'The File To Print', \ document-format: $requested-doc-format, \ ipp-attribute-fidelity: true \ ), \ Job: ( \ copies: 2 \ ) \ ), \ data: $test-print-file Expect Response \ status-code: successful-ok | \ client-error-attributes-or-values-not-supported,\ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: *, \ ... \ ), \ ... \ ) @ @ Record combinations in the table in section 4.5 for comparison @ with the results in section 2.5.3. @ @ @ Test M - Supported (Mandatory) op attrs, @ ipp-attribute-fidelity=true and @ sides=2 attributes @ --------------------------------------- @ IfDef NON-SPOOLING $prompt-to-accept-next-job-1 $prompt-to-accept-next-job-2 EndIf Print-Job \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ job-name: 'Test case 2.5 M Job', \ document-name: 'The File To Print', \ document-format: $requested-doc-format, \ ipp-attribute-fidelity: true \ ), \ Job: ( \ sides: one-sided \ ) \ ), \ data: $test-print-file Expect Response \ status-code: successful-ok | \ client-error-attributes-or-values-not-supported,\ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: *, \ ... \ ), \ ... \ ) @ @ Record combinations in the table in section 4.5 for comparison @ with the results in section 2.5.3. @ @ @ Test N - Supported (Mandatory) op attrs @ ipp-attribute-fidelity=true and @ ALL Job Template attributes @ and one bogus Job Template attribute @ --------------------------------------- @ IfDef NON-SPOOLING $prompt-to-accept-next-job-1 $prompt-to-accept-next-job-2 EndIf Print-Job \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ job-name: 'Test case 2.5 N Job', \ document-name: 'The File To Print', \ document-format: $requested-doc-format, \ ipp-attribute-fidelity: true \ ), \ Job: ( \ job-priority: 50, \ job-hold-until: ($job-hold-until-simple-syntax)second-shift, \ job-sheets: ($job-sheets-simple-syntax)standard, \ multiple-document-handling: single-document, \ copies: 2, \ finishings: , \ page-ranges: <<2,3>>, \ sides: one-sided, \ number-up: 2, \ orientation-requested: portrait, \ media: ($media-simple-syntax)na-letter-white, \ printer-resolution: <300,300,3>, \ print-quality: normal, \ bogus-attribute: 'bogus attr value' \ ) \ ), \ data: $test-print-file Expect Response \ status-code: client-error-attributes-or-values-not-supported,\ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: *, \ ... \ ), \ Unsupported: ( \ bogus-attribute: *, \ ... \ ) \ ) @ @ Record combinations in the table in section 4.5 for comparison @ with the results in section 2.5.3. @