当前位置: 首页>>代码示例>>Python>>正文


Python CrashStatsHomePage.search_for_crash方法代码示例

本文整理汇总了Python中crash_stats_page.CrashStatsHomePage.search_for_crash方法的典型用法代码示例。如果您正苦于以下问题:Python CrashStatsHomePage.search_for_crash方法的具体用法?Python CrashStatsHomePage.search_for_crash怎么用?Python CrashStatsHomePage.search_for_crash使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在crash_stats_page.CrashStatsHomePage的用法示例。


在下文中一共展示了CrashStatsHomePage.search_for_crash方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_that_search_for_valid_signature

# 需要导入模块: from crash_stats_page import CrashStatsHomePage [as 别名]
# 或者: from crash_stats_page.CrashStatsHomePage import search_for_crash [as 别名]
 def test_that_search_for_valid_signature(self, seleniumsetup):
     '''
         This is a test for 
             https://bugzilla.mozilla.org/show_bug.cgi?id=609070
     '''
     self.selenium = seleniumsetup.selenium
     csp = CrashStatsHomePage(self.selenium)
     result = csp.search_for_crash(csp.second_signature)
     Assert.false(result.can_find_text('No results were found.'))
开发者ID:AutomatedTester,项目名称:Socorro-Tests,代码行数:11,代码来源:test_search.py

示例2: test_that_search_for_valid_signature

# 需要导入模块: from crash_stats_page import CrashStatsHomePage [as 别名]
# 或者: from crash_stats_page.CrashStatsHomePage import search_for_crash [as 别名]
 def test_that_search_for_valid_signature(self, testsetup):
     '''
         This is a test for 
             https://bugzilla.mozilla.org/show_bug.cgi?id=609070
     '''
     self.selenium = testsetup.selenium
     csp = CrashStatsHomePage(testsetup)
     reportlist = csp.click_first_product_top_crashers_link()
     signature = reportlist.first_valid_signature
     result = csp.search_for_crash(signature)
     Assert.false(result.can_find_text('No results were found.'))
开发者ID:tobbi,项目名称:Socorro-Tests,代码行数:13,代码来源:test_search.py

示例3: test_that_when_item_not_available

# 需要导入模块: from crash_stats_page import CrashStatsHomePage [as 别名]
# 或者: from crash_stats_page.CrashStatsHomePage import search_for_crash [as 别名]
 def test_that_when_item_not_available(self, seleniumsetup):
     self.selenium = seleniumsetup.selenium
     csp = CrashStatsHomePage(self.selenium)
     results = csp.search_for_crash("this won't exist")
     Assert.true(results.can_find_text('No results were found.'))
开发者ID:AutomatedTester,项目名称:Socorro-Tests,代码行数:7,代码来源:test_search.py


注:本文中的crash_stats_page.CrashStatsHomePage.search_for_crash方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。