• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Test create-job + send-document with job-sheets attribute
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	ATTR name job-sheets standard
22
23	# What statuses are OK?
24	STATUS successful-ok
25	STATUS successful-ok-ignored-or-substituted-attributes
26
27	# What attributes do we expect?
28	EXPECT job-id
29	EXPECT job-uri
30}
31{
32	# The name of the test...
33	NAME "... and send-document"
34
35	# The resource to use for the POST
36	# RESOURCE /admin
37
38	# The operation to use
39	OPERATION send-document
40
41	# Attributes, starting in the operation group...
42	GROUP operation
43	ATTR charset attributes-charset utf-8
44	ATTR language attributes-natural-language en
45	ATTR uri printer-uri $uri
46	ATTR integer job-id $job-id
47	ATTR name requesting-user-name $user
48	ATTR boolean last-document true
49
50	FILE ../data/testprint.ps
51
52	# What statuses are OK?
53	STATUS successful-ok
54	STATUS successful-ok-ignored-or-substituted-attributes
55}
56