@ sub-purge-jobs.test - subroutine to Purge-Jobs @ Version 1.1 - Quick and dirty @ Last revised by Xerox Corporation on 12:00:00 99-03-12 PST. # Copyright (c) 1998 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. # Input parameters: # None - except what is defined in MyPrinterDefs.test # # Output parameters: # None # @ @ Test for Section 3.11 Purge-Jobs @ Purge-Jobs \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ requesting-user-name: 'user 1' \ ) \ ) \ Expect Response \ status-code: 0, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: *, \ ... \ ) \ ) 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: 0, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: *, \ ... \ ), \ Printer: ( \ printer-state: idle, \ queued-job-count: 0 \ ) \ ) @ @ Repeat the Purge-Jobs. MUST be successful, since @ Purge-Jobs \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ requesting-user-name: 'user 1' \ ) \ ) \ Expect Response \ status-code: 0, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: *, \ ... \ ) \ ) 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: 0, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: *, \ ... \ ), \ Printer: ( \ printer-state: idle, \ queued-job-count: 0 \ ) \ ) @ @ End of Purge-Jobs test @