# Print a test page using Create-Job + Send-Document
{

    NAME "Print test page using Create-Job"

    OPERATION Create-Job

    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 integer copies 1

    STATUS successful-ok

    EXPECT job-id
    EXPECT job-uri

}

{

    NAME "... and Send-Document"

    OPERATION Send-Document

    GROUP operation-attributes-tag
        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

    FILE $filename

    # What statuses are OK?
    STATUS successful-ok

}
