本文整理汇总了Python中myLib.miro_app.MiroApp.wait_conversions_complete方法的典型用法代码示例。如果您正苦于以下问题:Python MiroApp.wait_conversions_complete方法的具体用法?Python MiroApp.wait_conversions_complete怎么用?Python MiroApp.wait_conversions_complete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类myLib.miro_app.MiroApp
的用法示例。
在下文中一共展示了MiroApp.wait_conversions_complete方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_620
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import wait_conversions_complete [as 别名]
def test_620(self):
"""http://litmus.pculture.org/show_test.cgi?id=620 dl youtube video and convert.
1. Download youtube video
2. Convert to video formats
3. Verify playback
4. Convert to audio formats
5. Verify playback
6. Cleanup
"""
reg = MiroRegions()
miro = MiroApp()
# 1. Download youtube vidoe
vid_url = "http://www.youtube.com/watch?v=baJ43ByylbM&feature=fvw"
item_title = "Zoom"
reg.tl.click("File")
reg.tl.click("Download from")
time.sleep(4)
type(vid_url)
time.sleep(2)
type("\n")
miro.confirm_download_started(reg, item_title)
miro.wait_for_item_in_tab(reg, "videos",item_title)
if reg.m.exists(item_title,3):
miro.log_result("9","test_620 file external download verified.")
reg.m.click(item_title)
# 2. Convert to audio formats
try:
aconvertList = ("MP3","Vorbis")
for x in aconvertList:
miro.convert_file(reg, x)
time.sleep(2)
miro.click_sidebar_tab(reg, "Converting")
miro.wait_conversions_complete(reg, item_title,x)
# 3. Verify playback
miro.click_sidebar_tab(reg, "music")
aplaybackList = ("MP3",)
for x in aplaybackList:
miro.tab_search(reg, "Converted to "+str(x),False)
if reg.m.exists(Pattern("item_play_unplayed.png")):
doubleClick(reg.m.getLastMatch())
self.assertTrue(miro.verify_audio_playback(reg, title))
miro.stop_audio_playback(reg, title)
else:
self.fail("converted item not found")
except FindFailed, debugging:
self.verificationErrors.append(debugging)