]>
Commit | Line | Data |
---|---|---|
9498f97a MS |
1 | # Fax a test page using Create-Job + Send-Document |
2 | # | |
3 | # Usage: | |
4 | # | |
5 | # ./ipptest -f filename ipp://... fax-job.test | |
6 | { | |
7 | # The name of the test... | |
8 | NAME "Create FaxOut Job for 555-1212 and an IPP destination" | |
9 | ||
10 | # The operation to use | |
11 | OPERATION Create-Job | |
12 | ||
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 | |
19 | ||
20 | GROUP job-attributes-tag | |
21 | ATTR collection destination-uris { | |
22 | MEMBER uri destination-uri tel:4055551212 | |
23 | },{ | |
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 | |
27 | } | |
28 | ||
29 | # What statuses are OK? | |
30 | STATUS successful-ok | |
31 | STATUS successful-ok-ignored-or-substituted-attributes | |
32 | ||
33 | # What attributes do we expect? | |
34 | EXPECT job-id OF-TYPE integer WITH-VALUE >0 | |
35 | EXPECT job-uri OF-TYPE uri | |
36 | } | |
37 | { | |
38 | # The name of the test... | |
39 | NAME "Send FaxOut Document" | |
40 | ||
41 | # The operation to use | |
42 | OPERATION Send-Document | |
43 | ||
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 | |
53 | ||
54 | FILE $filename | |
55 | ||
56 | # What statuses are OK? | |
57 | STATUS successful-ok | |
58 | STATUS successful-ok-ignored-or-substituted-attributes | |
59 | } |