Пример #1
0
 def test_03_template_export(self):
     """小影学院模版-480P导出"""
     publish.publish_page().click_export_btn()
     time.sleep(1)
     self.screenshot()
     publish.publish_page().select_export(inst=1)
     self.screenshot()
     publish.publish_page().wait_export()
     publish.publish_page().sharePage_back('返回首页')
     publish.publish_page().click_pop_dialog()
Пример #2
0
 def exportTime(self, inst = 2,timeout=600):
     publish.publish_page().click_export_btn()
     publish.publish_page().select_export(inst=inst)
     export_start = time.time()
     self.d(resourceId="com.quvideo.xiaoying:id/tvProgress").wait(timeout=2)
     if self.d(resourceId="com.quvideo.xiaoying:id/tvProgress").wait_gone(timeout=timeout):
         export_end = time.time()
         time_ex = str(round(export_end - export_start, 2))
     else:
         raise Exception('导出等待超时,导出时长超过%s秒' % timeout)
     self.d.app_stop("com.quvideo.xiaoying")
     return time_ex
Пример #3
0
 def test_02_project_export(self):
     """工程文件操作-720P导出"""
     publish.publish_page().click_export_btn()
     time.sleep(1)
     self.screenshot()
     publish.publish_page().select_export(inst=2)
     self.screenshot()
     publish.publish_page().wait_export()
     # publish.publish_page().sharePage_back('返回首页')
     # publish.publish_page().click_pop_dialog()
Пример #4
0
 def test_04_theme_preview(self):
     """从预览页面更换主题"""
     time.sleep(1)
     material.material_page().preview_theme_change(themelist='日常')
     edit.edit_page().stop_video_play()
     publish.publish_page().click_draft_btn()
Пример #5
0
 def create_draft(self):
     log.i('创建一个草稿工程')
     home.home_Page().click_edit_btn()
     gallery.gallery_page.gallery_clip_add(2)
     publish.publish_page().click_draft_btn()