# sub-check-non-spooling.test - check if this is a non-spooling printer # include file for use with any test # If this is a non-spooling printer, prompt the user to type p # when the previous job has completed, so that the next job can be # submitted. Wait until the user types p to proceed with test. # Version 0.1 # Last revised by Xerox Corporation on 99-03-9 23:00 PST. # 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. # Input parameters: # NON-SPOOLING global symbol is defined only if this is a non-spooling printer # # Output parameters: # none. # First test if the printer is idle. # If it is, always can submit the next job, whether this printer is # a spooling or non-spooling printer. By putting this check in, # the sub-check-non-spooling.test can be called on every create, # even the first one in a script. Always checking before any create, # even the first, allows scripts to be batched together, since the first # create in a subsequent batch file, is no longer the first. Define Symbol getAttribute printer-state Include sub-get-specified-printer-attribute.test If [$printer-state: !idle] # Printer is not idle, so check to see if can submit next job # MyPrinterDefs.test has already set the symbols: # prompt-to-accept-next-job-1 # prompt-to-accept-next-job-2 # whether your printer spools or not to do the following. # But it is simpler to just test NON-SPOOLING and do Echo # and Read here in one include file, instead of inline. # NOTE: This include file can start to be used without having to # change older code that uses the above symbols IfDef NON-SPOOLING Echo 'Type A when your non-spooling device can \ '(A)ccept next job...' Read Symbol %tmp4 a | A EndIf EndIf