@ bo24.test - Test plan Section 2.4: Print job validation @ Version 1.8 @ Last revised by Xerox Corporation on 99-03-02. # 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.4 Print job validation (Validate-Job) @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ # This will test the mandatory validate-job operation. # Implementations that do not implement validate job can substitute # the results from section 2.5 in the table in section 4.5. A note # should be made in the table indicating this substitution has been # made. @ @ 2.4.1 Simple Job @ ---------------------------------------------------------------- @ @ Send a Validate-Job to the printer. Record the job attributes @ that are being sent. Try various supported attributes. @ @ @ Test A - ALL REQUIRED operation attributes for a Printer to @ support), ipp-attribute-fidelity omitted, @ but no Job Template attributes @ --------------------------------------- @ Validate-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.4 A Job', \ document-name: 'The File To Print', \ document-format: $requested-doc-format \ ) \ ) Expect Response \ status-code: 0x0, \ 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.1. @ @@ @ Test B - Supported (Mandatory) op attrs, @ no ipp-attribute-fidelity and @ media=na-letter-white attributes @ --------------------------------------- @ Validate-Job \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ job-name: 'Test case 2.4 B Job', \ document-name: 'The File To Print', \ document-format: $requested-doc-format \ ), \ Job: ( \ media: ($media-simple-syntax)na-letter-white \ ) \ ) Expect Response \ status-code: 0x0 | 0x1, \ 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.1. @ @ @ Test C - Supported (Mandatory) op attrs, @ no ipp-attribute-fidelity and @ copies=2 attributes @ --------------------------------------- @ Validate-Job \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ job-name: 'Test case 2.4 C Job', \ document-name: 'The File To Print', \ document-format: $requested-doc-format \ ), \ Job: ( \ copies: 2 \ ) \ ) Expect Response \ status-code: 0x0 | 0x1, \ 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.1. @ @ @ Test D - Supported (Mandatory) op attrs, @ no ipp-attribute-fidelity and @ sides=2 attributes @ --------------------------------------- @ Validate-Job \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ job-name: 'Test case 2.4 D Job', \ document-name: 'The File To Print', \ document-format: $requested-doc-format \ ), \ Job: ( \ sides: one-sided \ ) \ ) Expect Response \ status-code: 0x0 | 0x1, \ 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.1. @ @ 2.4.2 Unsupported attribute job/best effort @ ---------------------------------------------------------------- @ @ Send a validate-job 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 @ --------------------------------------- @ Validate-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.4 E Job', \ ipp-attribute-fidelity: false, \ document-name: 'The File To Print', \ document-format: $requested-doc-format \ ) \ ) Expect Response \ status-code: 0x0, \ 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.1. @ @@ @ Test F - Supported (Mandatory) op attrs, @ ipp-attribute-fidelity=false and @ media=na-letter-white attributes @ --------------------------------------- @ Validate-Job \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ job-name: 'Test case 2.4 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 \ ) \ ) Expect Response \ status-code: 0x0 | 0x1, \ 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.1. @ @ @ Test G - Supported (Mandatory) op attrs, @ ipp-attribute-fidelity=false and @ copies=2 attributes @ --------------------------------------- @ Validate-Job \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ job-name: 'Test case 2.4 G Job', \ document-name: 'The File To Print', \ document-format: $requested-doc-format, \ ipp-attribute-fidelity: false \ ), \ Job: ( \ copies: 2 \ ) \ ) Expect Response \ status-code: 0x0 | 0x1, \ 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.1. @ @ @ Test H - Supported (Mandatory) op attrs, @ ipp-attribute-fidelity=false and @ sides=2 attributes @ --------------------------------------- @ Validate-Job \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ job-name: 'Test case 2.4 H Job', \ document-name: 'The File To Print', \ document-format: $requested-doc-format, \ ipp-attribute-fidelity: false \ ), \ Job: ( \ sides: one-sided \ ) \ ) Expect Response \ status-code: 0x0 | 0x1, \ 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.2. @ @ @ Test I - Supported (Mandatory) op attrs @ ipp-attribute-fidelity=false and @ ALL Job Template attributes @ --------------------------------------- @ Validate-Job \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ job-name: 'Test case 2.4 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' \ ) \ ) Expect Response \ status-code: 0x1, \ 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.2. @ @ @ 2.4.3 Unsupported attribute job/fidelity @ ---------------------------------------------------------------- @ @ Send a validate-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 @ --------------------------------------- @ Validate-Job \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ job-name: 'Test case 2.4 J Job', \ document-name: 'The File To Print', \ document-format: $requested-doc-format, \ ipp-attribute-fidelity: true \ ) \ ) Expect Response \ status-code: 0x0, \ 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 K - Supported (Mandatory) op attrs, @ ipp-attribute-fidelity=true and @ media=na-letter-white attributes @ --------------------------------------- @ Validate-Job \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ job-name: 'Test case 2.4 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 \ ) \ ) Expect Response \ status-code: 0x0 | 0x040b, \ 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 @ --------------------------------------- @ Validate-Job \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ job-name: 'Test case 2.4 L Job', \ document-name: 'The File To Print', \ document-format: $requested-doc-format, \ ipp-attribute-fidelity: true \ ), \ Job: ( \ copies: 2 \ ) \ ) Expect Response \ status-code: 0x0 | 0x040b, \ 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 @ --------------------------------------- @ Validate-Job \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ job-name: 'Test case 2.4 M Job', \ document-name: 'The File To Print', \ document-format: $requested-doc-format, \ ipp-attribute-fidelity: true \ ), \ Job: ( \ sides: one-sided \ ) \ ) Expect Response \ status-code: 0x0 | 0x040b, \ 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 @ --------------------------------------- @ Validate-Job \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ job-name: 'Test case 2.4 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' \ ) \ ) Expect Response \ status-code: 0x040b, \ 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. @