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()
        self.photos.rm_delete_photos()
        self.photos.refresh_sdcard()

    def tearDown(self):
        print "[Teardown]: %s" % self._test_name
        super(ComposeUI, self).tearDown()
        self.photos.rm_delete_photos()
        self.photos.refresh_sdcard()

    def test_screenshot_pngformat(self):
        ''' refer TC test_Screenshot_PNGFormat
        '''
        print "[RunTest]: %s" % self.__str__()
        self._composeui.capture_screen_shot()
        time.sleep(2)
        #         ImageDetails.set_workaround()
        #         self.photos.launch_photos_am()
        self.photos.open_image_command("/sdcard/Pictures/screen.png")
        time.sleep(2)
        self._composeui.check_photos_format()
        self.photos.stop_photos_am()
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()
        ImageDetails.delete_picture()
        ImageDetails.set_workaround()

    def test_screenshot_homescreen_staticwallpaper(self):
        ''' refer TC test_ScreenShot_HomeScreen_StaticWallpaper
        '''
        print "[RunTest]: %s" % self.__str__()
        self._composeui.capture_screen_shot()
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()
        self.photos.rm_delete_photos()
        self.photos.refresh_sdcard()

    def tearDown(self):
        print "[Teardown]: %s" % self._test_name
        super(ComposeUI, self).tearDown()
        self.photos.rm_delete_photos()
        self.photos.refresh_sdcard()

    def test_screenshot_suspendresume(self):
        ''' refer TC test_Screenshot_SuspendResume
        '''
        print "[RunTest]: %s" % self.__str__()
        self._composeui.capture_screen_shot()
        self._composeui.suspend_and_resume()
Example #4
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()