diff --git a/_ticket.py b/_ticket.py index f51f0e6..07df28b 100644 --- a/_ticket.py +++ b/_ticket.py @@ -178,6 +178,10 @@ class GCPConstants(object): A4_HEIGHT = 297000 A4_WIDTH = 210000 + # Legal Paper size in microns + LEGAL_HEIGHT = 356000 + LEGAL_WIDTH = 216000 + # # CJS (Cloud Job State) constants # diff --git a/testcert.py b/testcert.py index 4775515..6701dc1 100755 --- a/testcert.py +++ b/testcert.py @@ -5400,7 +5400,26 @@ def test_48_CloudPrintMarginsOptions(self): prompt += 'If the margins are not correct, fail this test.' self.waitAndManualPass(test_id, test_name, output, verification_prompt=prompt) - + + def test_49_CloudPrintMediaSizeSelectLegal(self): + """Verify cloud printing with media size option.""" + #test_id = 'c8de872f-49bd-45b7-9623-8db0861aed35' + test_name = 'GCP.PageSizeLegal' + _logger.info('Testing the selection of Legal media size.') + PromptAndWaitForUserAction('Load printer with Legal size paper. ' + 'Select return when ready.') + + self.cjt.AddSizeOption(GCPConstants.LEGAL_HEIGHT, GCPConstants.LEGAL_WIDTH) + output = self.submit(_device.dev_id, Constants.IMAGES['PNG1'], test_id, + test_name, self.cjt) + try: + self.assertTrue(output['success']) + except AssertionError: + notes = 'Error selecting Legal media size.' + self.LogTest(test_id, test_name, 'Failed', notes) + raise + else: + self.waitAndManualPass(test_id, test_name, output) if __name__ == '__main__': runner = unittest.TextTestRunner(verbosity=2)