@ sub-do-pause-printer-resume-printer - subroutine to Pause-Printer, @ Resume-Printer @ 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 Pause-Printer, Resume-Printer @ First test Pause-Printer @ Pause-Printer \ 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: stopped \ ) \ ) @ @ Repeat the Pause-Printer. MUST be successful, since @ Pausing a paused printer MUST be successful. @ Pause-Printer \ 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: stopped \ ) \ ) @ @ Then test Resume-Printer @ Resume-Printer \ 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 | processing \ ) \ ) @ @ Repeat the Resume-Printer. MUST be successful, since @ Resuming an idle or procesing printer MUST be successful. @ Resume-Printer \ 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 | processing \ ) \ ) @ @ End of Pause-Printer and Resume-Printer test @