1 # Fax a test page using Create-Job + Send-Document
5 # ./ipptest -f filename ipp://... fax-job.test
7 # The name of the test...
8 NAME "Create FaxOut Job for 555-1212 and an IPP destination"
10 # The operation to use
13 # Attributes, starting in the operation group...
14 GROUP operation-attributes-tag
15 ATTR charset attributes-charset utf-8
16 ATTR language attributes-natural-language en
17 ATTR uri printer-uri $uri
18 ATTR name requesting-user-name $user
20 GROUP job-attributes-tag
21 ATTR collection destination-uris {
22 MEMBER uri destination-uri tel:4055551212
24 MEMBER uri destination-uri ipp://11.22.33.44/ipp/print
25 MEMBER enum print-quality 5
26 MEMBER keyword media na_letter_8.5x11in
29 # What statuses are OK?
31 STATUS successful-ok-ignored-or-substituted-attributes
33 # What attributes do we expect?
34 EXPECT job-id OF-TYPE integer WITH-VALUE >0
35 EXPECT job-uri OF-TYPE uri
38 # The name of the test...
39 NAME "Send FaxOut Document"
41 # The operation to use
42 OPERATION Send-Document
44 # Attributes, starting in the operation group...
45 GROUP operation-attributes-tag
46 ATTR charset attributes-charset utf-8
47 ATTR language attributes-natural-language en
48 ATTR uri printer-uri $uri
49 ATTR integer job-id $job-id
50 ATTR name requesting-user-name $user
51 ATTR mimetype document-format $filetype
52 ATTR boolean last-document true
56 # What statuses are OK?
58 STATUS successful-ok-ignored-or-substituted-attributes