本文整理汇总了Python中myLib.miro_app.MiroApp.verify_video_playback方法的典型用法代码示例。如果您正苦于以下问题:Python MiroApp.verify_video_playback方法的具体用法?Python MiroApp.verify_video_playback怎么用?Python MiroApp.verify_video_playback使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类myLib.miro_app.MiroApp
的用法示例。
在下文中一共展示了MiroApp.verify_video_playback方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_173
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import verify_video_playback [as 别名]
def test_173(self):
"""http://litmus.pculture.org/show_test.cgi?id=173 1st time install, search everywhere
Litmus Test Title:: 173 - 1st time install, search everywhere
Description:
1. Clean up Miro support and vidoes directories
2. Launch - walk through 1st tieme install dialog and search everywhere
"""
miro = MiroApp()
miro.quit_miro()
myLib.config.delete_database_and_prefs()
myLib.config.delete_miro_video_storage_dir()
#set the search regions
miro.restart_miro()
search_path = os.path.join(os.getenv("PCF_TEST_HOME"),"Miro","TestData")
miro.first_time_startup_dialog(lang="Default",
run_on_start="No",
search="Yes",
search_path="Everywhere",
itunes="No")
time.sleep(10)
reg = MiroRegions()
miro = MiroApp()
miro.click_sidebar_tab(reg, "Videos")
find(Pattern("sort_name_normal.png"))
doubleClick(getLastMatch().below(100))
miro.verify_video_playback(reg)
示例2: test_364
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import verify_video_playback [as 别名]
def test_364(self):
"""http://litmus.pculture.org/show_test.cgi?id=364 edit item misc to video
1. Download item that lands in Misc
2. Edit type to video
3. start playback and verify play external dialog
4. cleanup
"""
reg = MiroRegions()
miro = MiroApp()
time.sleep(5)
url = "http://vimeo.com/moogaloop_local.swf?clip_id=7335370&server=vimeo.com"
title = "local"
#Set Global Preferences
miro.open_prefs(reg)
prefs = PreferencesPanel()
general_tab = prefs.open_tab("General")
general_tab.show_videos_in_videos("on")
general_tab.close_prefs()
miro.cancel_all_downloads(reg)
reg.tl.click("File")
reg.tl.click("Download from")
time.sleep(4)
type(url)
time.sleep(10)
type("\n")
if reg.s.exists("Downloading"):
print "item dl started"
reg.s.waitVanish("Downloading",120)
time.sleep(5)
miro.wait_for_item_in_tab(reg, tab="Misc",item=title)
x = reg.m.find(title)
click(x)
reg.s.find("Music")
tmpr = Region(reg.s.getLastMatch().above())
tmpr.setW(tmpr.getW()+80)
tmpr.setX(tmpr.getX()-20)
y = tmpr.find("Videos")
dragDrop(x,y)
#locate item in video tab and verify playback
click(y)
if reg.m.exists(title):
doubleClick(reg.m.getLastMatch())
miro.verify_video_playback(reg)
miro.delete_items(reg, title,"Videos")
else:
miro.delete_items(reg, title,"Videos")
self.fail("item not found in videos tab")
示例3: test_362
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import verify_video_playback [as 别名]
def test_362(self):
"""http://litmus.pculture.org/show_test.cgi?id=362 edit item music to video
1. add Feed
2. download Paris mp3
3. Edit item from Audio to Video
4. Verify item played as video item
"""
reg = MiroRegions()
miro = MiroApp()
time.sleep(5)
url = "http://qa.pculture.org/feeds_test/MixedCats.xml"
feed = "MIXED"
term = "Paris"
title = "Laren"
new_type = "Video"
old_type = "Music"
#Set Global Preferences
miro.open_prefs(reg)
prefs = PreferencesPanel()
general_tab = prefs.open_tab("General")
general_tab.show_audio_in_music("on")
general_tab.show_videos_in_videos("on")
podcasts_tab = prefs.open_tab("Podcasts")
podcasts_tab.autodownload_setting("Off")
podcasts_tab.close_prefs()
#add feed and download joo joo item
miro.add_feed(reg, url,feed)
miro.tab_search(reg, term)
if reg.m.exists("button_download.png",10):
click(reg.m.getLastMatch())
miro.wait_for_item_in_tab(reg, "Music",item=title)
reg.m.find(title)
reg.m.click(title)
reg.mtb.click("tabsearch_clear.png")
miro.edit_item_type(reg, new_type, old_type)
#locate item in audio tab and verify playback
miro.wait_for_item_in_tab(reg, tab="Video",item=title)
reg.m.doubleClick(title)
miro.verify_video_playback(reg)
miro.quit_miro()
miro.restart_miro()
miro.wait_for_item_in_tab(reg, tab="Video",item=title)
#cleanup
miro.delete_feed(reg, feed)
示例4: test_122
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import verify_video_playback [as 别名]
def test_122(self):
"""http://litmus.pculture.org/show_test.cgi?id=122 item click actions, normal view.
1. add 3-blip-videos feed
2. download the Joo Joo
3. verify varios item click scenerios
"""
reg = MiroRegions()
miro = MiroApp()
time.sleep(5)
url = "http://pculture.org/feeds_test/3blipvideos.xml"
feed = "ThreeBlip"
title1 = "The Joo"
title2 = "York"
title3 = "Accessing"
miro.delete_feed(reg, feed)
miro.open_prefs(reg)
prefs = PreferencesPanel()
podcasts_tab = prefs.open_tab("Podcasts")
podcasts_tab.autodownload_setting("Off")
podcasts_tab.default_view_setting("Standard")
podcasts_tab.close_prefs()
#add feed and download joo joo item
miro.add_feed(reg, url,feed)
miro.tab_search(reg, title1)
if reg.m.exists("button_download.png",10):
click(reg.m.getLastMatch())
miro.click_podcast(reg, feed)
miro.tab_search(reg, title2,confirm_present=True)
#double-click starts download
doubleClick(title2)
if miro.confirm_download_started(reg, title=title2) == "in_progress":
miro.log_result("122","normal view double-click starts download")
else:
self.fail("normal view double-click starts download, failed")
#double-click pauses download
miro.click_podcast(reg, feed)
doubleClick(title2)
if exists("item-renderer-download-resume.png"):
miro.log_result("122","normal view double-click pauses download")
else:
self.fail("normal view double-click pause download, failed")
#double-click resumes download
doubleClick(title2)
if exists("item-renderer-download-pause.png"):
miro.log_result("122","normal view double-click resume download")
else:
self.fail("normal view double-click resume download, failed")
#double-click starts playback
miro.wait_for_item_in_tab(reg, tab="Videos",item=title1)
miro.click_podcast(reg, feed)
miro.tab_search(reg, title1)
doubleClick(title1)
if exists(Pattern("playback_bar_video.png")):
miro.log_result("122","normal view double-click starts playback")
else:
self.fail("normal view double-click start playback, failed")
miro.verify_video_playback(reg)
#single click thumb starts download
miro.tab_search(reg, title3)
if reg.m.exists("thumb-default-video.png"):
print "using default thumb"
click(reg.m.getLastMatch())
else:
print "can't find thumb, best guess"
reg.m.find(title1)
click(reg.m.getLastMatch().left(50))
if miro.confirm_download_started(reg, title=title3) == "in_progress":
miro.log_result("122","normal view click starts download")
else:
self.fail("normal view double-click starts download, failed")
#single click thumb starts playback
miro.click_podcast(reg, feed)
miro.tab_search(reg, title1)
if reg.m.exists("thumb-default-video.png"):
print "using default thumb"
click(reg.m.getLastMatch())
elif reg.m.exists("thumb-joojoo.png"):
print "found joo joo thumb"
click(reg.m.getLastMatch())
else:
print "can't find thumb, best guess"
reg.m.find(title1)
click(reg.m.getLastMatch().left(50))
if exists("playback_bar_video.png"):
miro.log_result("122","normal view double-click starts playback")
else:
self.fail("normal view double-click start playback, failed")
miro.verify_video_playback(reg)
#cleanup
miro.delete_feed(reg, feed)
示例5: test_725
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import verify_video_playback [as 别名]
def test_725(self):
"""http://litmus.pculture.org/show_test.cgi?id=725 item click actions, list view.
1. add 3-blip-videos feed
2. download the Joo Joo
3. verify varios item click scenerios
"""
reg = MiroRegions()
miro = MiroApp()
time.sleep(5)
url = "http://pculture.org/feeds_test/3blipvideos.xml"
feed = "ThreeBlip"
title1 = "The Joo"
title2 = "York"
title3 = "Accessing"
miro.delete_feed(reg, feed)
#Set Global Preferences
miro.open_prefs(reg)
prefs = PreferencesPanel()
podcasts_tab = prefs.open_tab("Podcasts")
podcasts_tab.autodownload_setting("Off")
podcasts_tab.default_view_setting("List")
podcasts_tab.close_prefs()
time.sleep(2)
#add feed and download joo joo item
miro.add_feed(reg, url,feed)
miro.tab_search(reg, title1)
#double-click starts download
reg.m.find(title1)
title_loc = reg.m.getLastMatch()
doubleClick(title_loc)
if reg.m.exists("video-download-pause.png"):
miro.log_result("122","list view double-click starts download")
else:
self.fail("list view double-click starts download, failed")
#double-click pauses download
doubleClick(title_loc)
if reg.m.exists("video-download-resume.png"):
miro.log_result("122","list view double-click pauses download")
else:
self.fail("list view double-click pause download, failed")
#double-click resumes download
doubleClick(title_loc)
if exists("video-download-pause.png"):
miro.log_result("122","list view double-click resumes download")
else:
self.fail("list view double-click resume download, failed")
#double-click starts playback
miro.wait_for_item_in_tab(reg, tab="Videos",item=title1)
miro.click_podcast(reg, feed)
miro.tab_search(reg, title1)
doubleClick(title1)
if exists(Pattern("playback_bar_video.png")):
miro.log_result("122","list view double-click starts playback")
else:
self.fail("list view double-click start playback, failed")
miro.verify_video_playback(reg)
#cleanup
miro.delete_feed(reg, feed)