def setUp(self):
        super(ComposeUI, self).setUp()
        self._test_name = __name__
        self.device = g_common_obj.get_device()
        print "[Setup]: %s" % self._test_name
        self._composeui = ComposeUiImpl()
        self._imageviewer = ImageDetails()
        self.photos = PhotosExtendImpl()
        self.photosImpl = get_photo_implement()
        self.qrcodeImpl = QRcode()
        g_common_obj.root_on_device()
        g_common_obj.remount_device()
        self.photosImpl.rm_delete_photos()
        self.photosImpl.refresh_sdcard()
        self.photos.clean()

        self.qrcode = "GIFPICTURE"
        config = TestConfig()
        cfg_file = 'tests.tablet.artifactory.conf'
        cfg_arti = config.read(cfg_file, 'artifactory')
        config_handle = ConfigHandle()
        cfg_arti["location"] = config_handle.read_configuration('artifactory', 'location', '/etc/oat/', 'sys.conf')

        cfg = config.read(cfg_file, 'qrcode_marked_image')
        self.qrcode = cfg.get("screenshot_edit_qrcode")
        print "[Debug] qrcode:%s" % (self.qrcode)
        arti = Artifactory(cfg_arti.get('location'))
        pic_name = cfg.get("screenshot_edit_image")
        file_path = arti.get(pic_name)
        g_common_obj.adb_cmd_common('push ' + file_path + ' /sdcard/Pictures')
        self.photosImpl.refresh_sdcard()
        special_actions.setup()
        self.photos.setup()
 def setUpClass(self):
     """
     set environment
     """
     super(ImageEdit, self).setUpClass()
     self.photos = get_photo_implement()
     self._imageviewer = ImageDetails()
     self.photos.rm_delete_photos()
     self.photos.deploy_photo_content("content_picture", "bmp")
Ejemplo n.º 3
0
 def setUpClass(self):
     """
     set environment
     """
     super(ImageView, self).setUpClass()
     self._imageviewer = ImageDetails()
     self.device = g_common_obj.get_device()
     self.photos = get_photo_implement()
     self.photos.rm_delete_photos()
     self.photos.deploy_photo_content("content_picture", "wbmp5")
 def setUpClass(self):
     """
     set environment
     """
     super(ImageView, self).setUpClass()
     self._imageviewer = ImageDetails()
     self.photos = get_photo_implement()
     self.photos.rm_delete_photos()
     push_pics = ['bmp' + str(i) for i in range(1, 7)]
     for i in push_pics:
         self.photos.deploy_photo_content("content_picture_bmp", i)
 def setUpClass(self):
     """
     set environment
     """
     super(ImageViewThumbnailsMode, self).setUpClass()
     self.device = g_common_obj.get_device()
     self._imageviewer = ImageDetails()
     self.photos = get_photo_implement()
     self.photos.rm_delete_photos()
     push_pics = ['jpeg' + str(i) for i in range(1, 5)]
     for i in push_pics:
         self.photos.deploy_photo_content("content_picture_jpeg", i)
 def setUp(self):
     super(ImageView, self).setUp()
     self._test_name = __name__
     print "[Setup]: %s" % self._test_name
     self._imageviewer = ImageDetails()
Ejemplo n.º 7
0
 def setUp(self):
     super(CheckImageDetails, self).setUp()
     self._test_name = __name__
     print "[Setup]: %s" % self._test_name
     self._checkDetails = ImageDetails()
Ejemplo n.º 8
0
 def __init__(self):
     self.tmpdir = getTmpDir()
     self._imageviewer = ImageDetails()
     self._device = g_common_obj.get_device()
     self._locator = Locator(self._device)