Esempio n. 1
0
class ComposeUI(UIATestBase):

    def setUp(self):
        super(ComposeUI, self).setUp()
        self._test_name = __name__
        print "[Setup]: %s" % self._test_name
        self._composeui = ComposeUiImpl()

    def tearDown(self):
        print "[Teardown]: %s" % self._test_name
        super(ComposeUI, self).tearDown()
        g_common_obj.set_vertical_screen()

    def test_rotatedutwithnotificationbar_20times(self):
        ''' refer TC test_RotateDUTWithNotificationBar_20times
        '''
        print "[RunTest]: %s" % self.__str__()
        self._composeui.launch_settings_am()
        self._composeui.rotate_to_left()
        self._composeui.popup_notification_bar()
        self._composeui.rotate_20times()
        self._composeui.stop_settings_am()
Esempio n. 2
0
class ComposeUI(UIATestBase):

    def setUp(self):
        super(ComposeUI, self).setUp()
        self._test_name = __name__
        print "[Setup]: %s" % self._test_name
        self._composeui = ComposeUiImpl()
        self.photos = get_photo_implement()

    def tearDown(self):
        print "[Teardown]: %s" % self._test_name
        super(ComposeUI, self).tearDown()
        ImageDetails.delete_picture()
        ImageDetails.set_workaround()
        g_common_obj.set_vertical_screen()

    def test_screenshot_approtate(self):
        ''' refer TC test_ScreenShot_AppRotate
        '''
        print "[RunTest]: %s" % self.__str__()
        self.photos.launch_photos_am()
        self._composeui.rotate_to_left()
        self._composeui.capture_screen_shot()