本文整理汇总了Python中myLib.miro_app.MiroApp.handle_crash_dialog方法的典型用法代码示例。如果您正苦于以下问题:Python MiroApp.handle_crash_dialog方法的具体用法?Python MiroApp.handle_crash_dialog怎么用?Python MiroApp.handle_crash_dialog使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类myLib.miro_app.MiroApp
的用法示例。
在下文中一共展示了MiroApp.handle_crash_dialog方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_5
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import handle_crash_dialog [as 别名]
def test_5(self):
"""http://litmus.pculture.org/show_test.cgi?id=5 update install.
Litmus Test Title:: 5 - upgrade from an earlier version of miro (3.5.1)
Description:
1. Copy in Miro 3.5.1 database
2. Launch miro and verify it is upgraded to current version.
"""
miro = MiroApp()
miro.quit_miro()
db = os.path.join(os.getenv("PCF_TEST_HOME"),"Miro","TestData","databases","351sqlitedb")
myLib.config.replace_database(db)
#set the search regions
miro.restart_miro()
waitVanish("Upgrading")
waitVanish("Preparing")
time.sleep(10)
miro.handle_crash_dialog('5', db=False, test=False)
reg = MiroRegions()
miro = MiroApp()
miro.click_sidebar_tab(reg, "Downloading")
miro.quit_miro()
myLib.config.set_def_db_and_prefs()
示例2: test_215
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import handle_crash_dialog [as 别名]
def test_215(self):
"""http://litmus.pculture.org/show_test.cgi?id=215 Feed search, saved search feed
1. Add list of guide feeds (Static List)
2. Perform a search and save it.
3. Verify Search saved
4. Cleanup
"""
reg = MiroRegions()
miro = MiroApp()
url = "http://pculture.org/feeds_test/list-of-guide-feeds.xml"
feed = "Static"
term = "Gimp"
title = "GimpKnowHow"
#1. add feed
miro.add_feed(reg, url, feed)
#2. search
miro.tab_search(reg, term)
reg.mtb.click("button_save_as_podcast.png")
#3. verify search saved
miro.click_last_podcast(reg)
#4. cleanup
type(Key.DELETE)
#Last chance to verify Gimp is the saved search feed.
self.assertTrue(reg.m.exists("GIMP"),5)
miro.remove_confirm(reg, action="remove")
miro.delete_feed(reg, "Static List")
miro.handle_crash_dialog('215', db=False, test=False)
示例3: test_54
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import handle_crash_dialog [as 别名]
def test_54(self):
"""http://litmus.pculture.org/show_test.cgi?id=54 Test Crash Reporter no DB.
1. Perform a search of crash inducing text
2. Submit crash dialog
3. Quit Miro
"""
print self.id()
setAutoWaitTimeout(60)
reg = MiroRegions()
miro = MiroApp()
term ="LET'S TEST DTV'S CRASH REPORTER TODAY"
miro.click_sidebar_tab(reg, "Search")
miro.search_tab_search(reg, term)
miro.handle_crash_dialog( '54', db=False, test=True)
示例4: test_55
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import handle_crash_dialog [as 别名]
def test_55(self):
"""http://litmus.pculture.org/show_test.cgi?id=55 Test Crash Reporter with DB.
1. Perform a search of crash inducing text
2. Submit crash dialog with db
3. Quit Miro
"""
setAutoWaitTimeout(60)
reg = MiroRegions()
miro = MiroApp()
term ="LET'S TEST DTV'S CRASH REPORTER TODAY"
miro.click_sidebar_tab(reg, "Search")
miro.search_tab_search(reg, term)
miro.handle_crash_dialog( '55', test=True)
miro.search_tab_search(reg, term=" ",engine=None)
示例5: test_682
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import handle_crash_dialog [as 别名]
def test_682(self):
"""http://litmus.pculture.org/show_test.cgi?id=54 Test Crash Reporter with DB.
1. Perform a search of crash inducing text
2. Submit crash dialog
3. Quit Miro
"""
print self.id()
reg = MiroRegions()
miro = MiroApp()
if myLib.config.get_os_name() == "osx":
reg.tl.click("Dev")
else:
type('f',KEY_ALT)
time.sleep(1)
type(Key.LEFT)
reg.t.click("Test Soft")
miro.handle_crash_dialog( '682', db=True, test=True)
示例6: test_321
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import handle_crash_dialog [as 别名]
def test_321(self):
"""http://litmus.pculture.org/show_test.cgi?id=321 delete slow to load site.
1. Add slow feed as a source
2. delete it before is loads
"""
site_url = "http://pculture.org/feeds_test/slowsite.php"
site = "pculture"
alt_site = "Miro Guide"
setAutoWaitTimeout(60)
reg = MiroRegions()
miro = MiroApp()
miro.add_source_from_tab(reg, site_url)
miro.click_last_source(reg)
type(Key.DELETE)
type(Key.ENTER)
miro.handle_crash_dialog(db=False,test=False)
示例7: test_681
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import handle_crash_dialog [as 别名]
def test_681(self):
"""http://litmus.pculture.org/show_test.cgi?id=54 Test Crash Reporter no DB.
1. Perform a search of crash inducing text
2. Submit crash dialog
3. Quit Miro
"""
print self.id()
setAutoWaitTimeout(60)
reg = MiroRegions()
miro = MiroApp()
if myLib.config.get_os_name() == "osx":
type(Key.F2, KeyModifier.CTRL)
for x in range(0,11):
type(Key.RIGHT)
type(Key.DOWN)
else:
type('f',KEY_ALT)
time.sleep(1)
type(Key.LEFT)
reg.t.click("Test Soft")
miro.handle_crash_dialog( '681', db=False, test=True)
示例8: tearDown
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import handle_crash_dialog [as 别名]
def tearDown(self):
miro = MiroApp()
miro.handle_crash_dialog(self, self.id())
type(Key.ESC) #get rid of any leftover dialogs on teardown
print "finished test: ",self.id()
self.assertEqual([], self.verificationErrors)