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)
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)
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)
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')