Ejemplo n.º 1
0
 def test_wp_pic_delete(self):
     logging.info('==========test_wp_pic_delete==========')
     self.choose_pic_setup()
     wp = WpView(self.driver)
     connect_device(wp.get_phone_dev())
     wp.adjust_object_place()
     wp.object_delete()
     time.sleep(10)
Ejemplo n.º 2
0
 def test_wp_shape_move(self):
     # 文本框移动
     logging.info('==========test_wp_shape_move==========')
     self.shapeatt_setup()
     wv = WpView(self.driver)
     connect_device(wv.get_phone_dev())
     wv.text_box_move()
     time.sleep(10)
Ejemplo n.º 3
0
 def test_wp_pic_control_point(self):
     logging.info('==========test_wp_pic_control_point==========')
     self.choose_pic_setup()
     wp = WpView(self.driver)
     connect_device(wp.get_phone_dev())
     wp.adjust_object_place()
     # 手势拖拉大小控制点
     wp.pic_control_point()
     time.sleep(10)
Ejemplo n.º 4
0
 def test_wp_pic_rotate_90(self):
     # 图片旋转90度
     logging.info('==========test_wp_pic_rotate_90==========')
     self.choose_pic_setup()
     wp = WpView(self.driver)
     connect_device(wp.get_phone_dev())
     wp.adjust_object_place()
     wp.object_rotate_90()
     time.sleep(10)
Ejemplo n.º 5
0
 def test_wp_pic_save_album(self):
     # 保存图片至相册
     logging.info('==========test_wp_pic_save_album==========')
     self.choose_pic_setup()
     wp = WpView(self.driver)
     connect_device(wp.get_phone_dev())
     wp.adjust_object_place()
     wp.pic_save_to_album()
     self.assertTrue(wp.get_toast_message('图片保存成功'), 'picture save to album fail')
Ejemplo n.º 6
0
    def test_wp_shape_control_point(self):
        # 手势拖拉形状控制点
        logging.info('==========test_wp_shape_control_point==========')
        self.shapeatt_setup()
        wv = WpView(self.driver)
        connect_device(wv.get_phone_dev())

        wv.shape_control_point()
        time.sleep(10)
Ejemplo n.º 7
0
    def test_wp_shape_free_rotate(self):
        # 形状自由旋转
        logging.info('==========test_wp_shape_free_rotate==========')
        self.shapeatt_setup()
        wv = WpView(self.driver)
        connect_device(wv.get_phone_dev())

        wv.object_free_rotate()
        time.sleep(10)
Ejemplo n.º 8
0
    def test_wp_shape_copy_paste(self):
        # 形状复制粘贴
        logging.info('==========test_wp_shape_copy_paste==========')
        self.shapeatt_setup()
        wv = WpView(self.driver)
        connect_device(wv.get_phone_dev())

        wv.object_copy_paste()
        time.sleep(10)
Ejemplo n.º 9
0
 def test_wp_shape_text_select(self):
     # 文本框内容选取
     logging.info('==========test_wp_shape_text_select==========')
     self.shapeatt_setup()
     wv = WpView(self.driver)
     connect_device(wv.get_phone_dev())
     wv.text_box_text_select()
     self.assertTrue(
         exists(Template(r'../Res/res_delete.png',
                         resolution=(1080, 1920))))