# Print a 3MF file using Create-Job + Send-Document
{
	# The name of the test...
	NAME "Create-Job for 3D Print Job"

	# The operation to use
	OPERATION Create-Job

	# Attributes, starting in the operation group...
	GROUP operation-attributes-tag
	ATTR charset attributes-charset utf-8
	ATTR language attributes-natural-language en
	ATTR uri printer-uri $uri
	ATTR name requesting-user-name $user

	GROUP job-attributes-tag
	ATTR collection materials-col {
		MEMBER keyword material-type pla
	}
	ATTR enum print-quality 4

	# What statuses are OK?
	STATUS successful-ok

	# What attributes do we expect?
	EXPECT job-id
	EXPECT job-uri
}
{
	# The name of the test...
	NAME "... and Send-Document"

	# The operation to use
	OPERATION Send-Document

	# Attributes, starting in the operation group...
	GROUP operation
	ATTR charset attributes-charset utf-8
	ATTR language attributes-natural-language en
	ATTR uri printer-uri $uri
	ATTR integer job-id $job-id
	ATTR name requesting-user-name $user
	ATTR boolean last-document true
	ATTR mimeMediaType document-format $filetype

	FILE $filename

	# What statuses are OK?
	STATUS successful-ok
}
