當前位置: 首頁>>代碼示例>>Python>>正文


Python crash_stats_page.CrashStatsHomePage類代碼示例

本文整理匯總了Python中crash_stats_page.CrashStatsHomePage的典型用法代碼示例。如果您正苦於以下問題:Python CrashStatsHomePage類的具體用法?Python CrashStatsHomePage怎麽用?Python CrashStatsHomePage使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了CrashStatsHomePage類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: test_that_advanced_search_for_camino_can_be_filtered

 def test_that_advanced_search_for_camino_can_be_filtered(self, testsetup):
     self.selenium = testsetup.selenium
     csp = CrashStatsHomePage(testsetup)
     csp.select_product('Camino')
     cs_advanced = csp.click_advanced_search()
     cs_advanced.filter_reports()
     Assert.true(cs_advanced.can_find_text('product is one of Camino'))
開發者ID:tobbi,項目名稱:Socorro-Tests,代碼行數:7,代碼來源:test_search.py

示例2: test_that_advanced_search_for_seamonkey_can_be_filtered

 def test_that_advanced_search_for_seamonkey_can_be_filtered(self, seleniumsetup):
     self.selenium = seleniumsetup.selenium
     csp = CrashStatsHomePage(self.selenium)
     csp.select_product('SeaMonkey')
     cs_advanced = csp.click_advanced_search()
     cs_advanced.filter_reports()
     Assert.true(cs_advanced.can_find_text('product is one of SeaMonkey'))  
開發者ID:AutomatedTester,項目名稱:Socorro-Tests,代碼行數:7,代碼來源:test_search.py

示例3: test_that_current_version_selected_in_top_crashers_by_domain_header_for_firefox

 def test_that_current_version_selected_in_top_crashers_by_domain_header_for_firefox(self, seleniumsetup):
     self.selenium = seleniumsetup.selenium 
     csp = CrashStatsHomePage(self.selenium)
     if not csp.can_find_text('no data'):
         details = csp.current_details
         cstc = csp.select_report('Top Crashers by Domain')
         Assert.equal(details['product'], cstc.product_header)
開發者ID:AutomatedTester,項目名稱:Socorro-Tests,代碼行數:7,代碼來源:test_crash_reports.py

示例4: test_that_current_version_selected_in_top_crashers_by_url_header_for_seamonkey

 def test_that_current_version_selected_in_top_crashers_by_url_header_for_seamonkey(self, seleniumsetup):
     self.selenium = seleniumsetup.selenium
     csp = CrashStatsHomePage(self.selenium)
     csp.select_product('SeaMonkey')
     if not csp.can_find_text('no data'):
         details = csp.current_details
         cstc = csp.select_report('Top Crashers by URL')
         Assert.equal(details['product'], cstc.product_header)
開發者ID:AutomatedTester,項目名稱:Socorro-Tests,代碼行數:8,代碼來源:test_crash_reports.py

示例5: test_that_advanced_search_view_signature_for_firefox_crash

 def test_that_advanced_search_view_signature_for_firefox_crash(self, testsetup):
     self.selenium = testsetup.selenium
     csp = CrashStatsHomePage(testsetup)
     cs_advanced = csp.click_advanced_search()
     cs_advanced.filter_reports()
     if not cs_advanced.can_find_text('no data'):
         signature = cs_advanced.click_first_signature()
         Assert.true(signature in cs_advanced.page_heading)
開發者ID:tobbi,項目名稱:Socorro-Tests,代碼行數:8,代碼來源:test_smoke_tests.py

示例6: test_that_server_status_page_loads

 def test_that_server_status_page_loads(self, testsetup):
     self.selenium = testsetup.selenium
     csp = CrashStatsHomePage(testsetup)
     csstat = csp.click_server_status()
     try:
         csstat.at_a_glance()
     except Exception, e:
         Assert.fail(str(e))
開發者ID:tobbi,項目名稱:Socorro-Tests,代碼行數:8,代碼來源:test_smoke_tests.py

示例7: test_that_current_version_selected_in_top_crashers_header_for_fennec

 def test_that_current_version_selected_in_top_crashers_header_for_fennec(self, testsetup):
     self.selenium = testsetup.selenium
     csp = CrashStatsHomePage(testsetup)
     csp.select_product('Fennec')
     if not csp.can_find_text('no data'):
         details = csp.current_details
         cstc = csp.select_report('Top Crashers')
         Assert.equal(details['product'], cstc.product_header)
開發者ID:tobbi,項目名稱:Socorro-Tests,代碼行數:8,代碼來源:test_crash_reports.py

示例8: test_that_reports_form_has_same_product_for_firefox

 def test_that_reports_form_has_same_product_for_firefox(self, testsetup):
     self.selenium = testsetup.selenium
     csp = CrashStatsHomePage(testsetup)
     page_title = csp.page_title
     Assert.true('Firefox' in page_title)
     crash_adu = csp.select_report("Crashes per User")
     details = csp.current_details
     report_product = crash_adu.product_select
     Assert.equal(details['product'],report_product)
開發者ID:tobbi,項目名稱:Socorro-Tests,代碼行數:9,代碼來源:test_crash_reports.py

示例9: test_that_search_for_valid_signature

 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,代碼行數:9,代碼來源:test_search.py

示例10: test_that_advanced_search_view_signature_for_thunderbird_crash

 def test_that_advanced_search_view_signature_for_thunderbird_crash(self, seleniumsetup):
     self.selenium = seleniumsetup.selenium
     csp = CrashStatsHomePage(self.selenium)
     csp.select_product('Thunderbird')
     cs_advanced = csp.click_advanced_search()
     cs_advanced.filter_reports()
     if not cs_advanced.can_find_text('no data'):
         signature = cs_advanced.click_first_signature()
         Assert.true(signature in cs_advanced.page_heading)
開發者ID:AutomatedTester,項目名稱:Socorro-Tests,代碼行數:9,代碼來源:test_smoke_tests.py

示例11: test_that_options_are_sorted_the_same

 def test_that_options_are_sorted_the_same(self, testsetup):
     self.selenium = testsetup.selenium
     csp = CrashStatsHomePage(testsetup)
     cssearch = csp.click_advanced_search()
     nav_product_list = csp.product_list
     search_product_list = cssearch.product_list
     Assert.equal(len(nav_product_list),len(search_product_list))
     for i, prod_item in enumerate(nav_product_list):
         Assert.equal(prod_item, search_product_list[i])
開發者ID:tobbi,項目名稱:Socorro-Tests,代碼行數:9,代碼來源:test_smoke_tests.py

示例12: test_that_search_for_valid_signature

 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,代碼行數:11,代碼來源:test_search.py

示例13: test_that_reports_form_has_same_product_for_fennec

 def test_that_reports_form_has_same_product_for_fennec(self, testsetup):
     self.selenium = testsetup.selenium
     csp = CrashStatsHomePage(testsetup)
     csp.select_product('Fennec')
     page_title = csp.page_title
     Assert.true('Fennec' in page_title)
     if not csp.can_find_text('no data'):
         crash_adu = csp.select_report("Crashes per User")
         details = csp.current_details
         report_product = crash_adu.product_select
         Assert.equal(details['product'],report_product)
開發者ID:tobbi,項目名稱:Socorro-Tests,代碼行數:11,代碼來源:test_crash_reports.py

示例14: test_that_reports_form_has_same_product_for_thunderbird

 def test_that_reports_form_has_same_product_for_thunderbird(self, seleniumsetup):
     self.selenium = seleniumsetup.selenium
     csp = CrashStatsHomePage(self.selenium)
     csp.select_product('Thunderbird')
     page_title = csp.page_title
     Assert.true('Thunderbird' in page_title)
     Assert.true('Mozilla' in page_title)
     if not csp.can_find_text('no data'):
         crash_adu = csp.select_report("Crashes per User")
         details = csp.current_details
         report_product = crash_adu.product_select
         Assert.equal(details['product'],report_product)
開發者ID:AutomatedTester,項目名稱:Socorro-Tests,代碼行數:12,代碼來源:test_crash_reports.py

示例15: test_that_reports_form_has_same_product_for_fennec

 def test_that_reports_form_has_same_product_for_fennec(self, seleniumsetup):
     self.selenium = seleniumsetup.selenium
     csp = CrashStatsHomePage(self.selenium)
     csp.select_product('Fennec')
     page_title = csp.page_title
     Assert.true('Fennec' in page_title)
     #Bug 576721 - Needs reenabled when fixed
     #Assert.true('Mozilla' not in page_title)
     if not csp.can_find_text('no data'):
         crash_adu = csp.select_report("Crashes per User")
         details = csp.current_details
         report_product = crash_adu.product_select
         Assert.equal(details['product'],report_product)
開發者ID:AutomatedTester,項目名稱:Socorro-Tests,代碼行數:13,代碼來源:test_crash_reports.py


注:本文中的crash_stats_page.CrashStatsHomePage類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。