# sub-get-specified-job-attribute.test - get job attribute NOT FINISHED # include file for use with any test # Accepts one printer attribute as input. # Sets the value of that symbol to the value of the attribute. # Until tool is enhanced, the requested attribute must be # an attribute that the Printer supports, else a syntax error. # 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 (defined symbols): # getAttribute xxx REQUIRED - error if not supplied. # # Output parameter (defined symbols): # xxx # IfNDef getAttribute Echo 'ERROR IN SCRIPT: getAttribute symbol not defined;' Echo 'Needed by sub-get-specified-job-attribute.test \ Echo 'include file' Else IfNDef first-job-id Echo 'ERROR IN SCRIPT: first-job-id symbol not defined;' Echo 'Needed by sub-get-specified-job-attribute.test \ Echo 'include file' Else Get-Printer-Attributes \ target: $target, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: en-us, \ printer-uri: $target, \ requested-attributes: <$getAttribute> \ ) \ ) Expect Response \ status-code: successful-ok, \ attributes: ( \ Operation: ( \ attributes-charset: utf-8, \ attributes-natural-language: *, \ ... \ ), \ Printer: ( \ getAttribute = $getAttribute: * \ ) \ ) # Undefine input parameters before returning, lest they become stale: Define Symbol getAttribute EndIf EndIf