本文整理汇总了Python中myLib.miro_app.MiroApp.edit_item_type方法的典型用法代码示例。如果您正苦于以下问题:Python MiroApp.edit_item_type方法的具体用法?Python MiroApp.edit_item_type怎么用?Python MiroApp.edit_item_type使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类myLib.miro_app.MiroApp
的用法示例。
在下文中一共展示了MiroApp.edit_item_type方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_361
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import edit_item_type [as 别名]
def test_361(self):
"""http://litmus.pculture.org/show_test.cgi?id=361 edit item video to audio.
1. add 3-blip-videos feed
2. download the Joo Joo
3. Edit item from Video to Audio
4. Verify item played as audio item
"""
reg = MiroRegions()
miro = MiroApp()
time.sleep(5)
url = "http://qa.pculture.org/feeds_test/MixedCats.xml"
feed = "MIXED"
title = "Tongue"
new_type = "Music"
old_type = "Video"
#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()
#start clean
miro.delete_feed(reg, feed)
#add feed and download joo joo item
miro.add_feed(reg, url,feed)
miro.tab_search(reg, title)
if reg.m.exists("button_download.png",10):
click(reg.m.getLastMatch())
miro.wait_for_item_in_tab(reg, "Videos", 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="Music",item=title)
reg.m.click(title)
type(' ') #use spacebar to start playback
self.assertTrue(miro.verify_audio_playback(reg, title))
miro.stop_audio_playback(reg, title)
#cleanup
miro.delete_feed(reg, feed)
示例2: test_362
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import edit_item_type [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)