• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Print a test page using create-job + send-document
2{
3	# The name of the test...
4	NAME "Print test page using create-job"
5
6	# The resource to use for the POST
7	# RESOURCE /admin
8
9	# The operation to use
10	OPERATION create-job
11
12	# Attributes, starting in the operation group...
13	GROUP operation
14	ATTR charset attributes-charset utf-8
15	ATTR language attributes-natural-language en
16	ATTR uri printer-uri $uri
17	ATTR name requesting-user-name $user
18
19	GROUP job
20	ATTR integer copies 1
21
22	# What statuses are OK?
23	STATUS successful-ok
24
25	# What attributes do we expect?
26	EXPECT job-id
27	EXPECT job-uri
28}
29{
30	# The name of the test...
31	NAME "... and send-document"
32
33	# The resource to use for the POST
34	# RESOURCE /admin
35
36	# The operation to use
37	OPERATION send-document
38
39	# Attributes, starting in the operation group...
40	GROUP operation
41	ATTR charset attributes-charset utf-8
42	ATTR language attributes-natural-language en
43	ATTR uri printer-uri $uri
44	ATTR integer job-id $job-id
45	ATTR name requesting-user-name $user
46	ATTR mimeMediaType document-format $filetype
47	ATTR boolean last-document true
48
49	FILE $filename
50
51	# What statuses are OK?
52	STATUS successful-ok
53}
54