本文整理汇总了Python中myLib.miro_app.MiroApp.first_time_startup_dialog方法的典型用法代码示例。如果您正苦于以下问题:Python MiroApp.first_time_startup_dialog方法的具体用法?Python MiroApp.first_time_startup_dialog怎么用?Python MiroApp.first_time_startup_dialog使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类myLib.miro_app.MiroApp
的用法示例。
在下文中一共展示了MiroApp.first_time_startup_dialog方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_236
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import first_time_startup_dialog [as 别名]
def test_236(self):
"""http://litmus.pculture.org/show_test.cgi?id=236 startup, corrupt item_info_cache
Litmus Test Title:: 236 - rebuild item_info_cache on startup.
Description:
1. Clean up Miro support and vidoes directories
2. Launch - walk through 1st tieme install dialog and search everywhere
"""
reg = MiroRegions()
miro = MiroApp()
folder_path = os.path.join(os.getenv("PCF_TEST_HOME"),"Miro","TestData")
miro.add_watched_folder(reg, folder_path)
miro.quit_miro()
myLib.config.delete_preferences()
setAutoWaitTimeout(myLib.testvars.timeout)
#set the search regions
miro.restart_miro()
miro.first_time_startup_dialog(lang="Default",run_on_start="No",search="No",search_path=None,itunes="No")
waitVanish("Preparing")
time.sleep(10)
reg = MiroRegions()
miro = MiroApp()
miro.click_sidebar_tab(reg, "Videos")
miro.tab_search(reg, title="Deerhunter",confirm_present=True)
示例2: test_173
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import first_time_startup_dialog [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)
示例3: test_4
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import first_time_startup_dialog [as 别名]
def test_4(self):
"""http://litmus.pculture.org/show_test.cgi?id=4 1st time install, specify a dir to search.
Litmus Test Title:: 4 - 1st time install, specify a dir to search
Description:
1. Clean up Miro support and vidoes directories
2. Launch - walk through 1st tieme install dialog and search everywhere
"""
reg = MiroRegions()
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=search_path,itunes="No")
time.sleep(10)
reg = MiroRegions()
miro = MiroApp()
miro.click_sidebar_tab(reg, "Videos")
miro.tab_search(reg, title="Deerhunter",confirm_present=True)