Example #1
0
 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'))
 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'))  
 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)
 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)
Example #5
0
 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)
Example #6
0
 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))
 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)
 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)
 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.'))
 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)
Example #11
0
 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])
Example #12
0
 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.'))
Example #13
0
 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)
 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)
 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)
    def test_that_selecting_exact_version_doesnt_show_other_versions(self, seleniumsetup):
        self.selenium = seleniumsetup.selenium
        csp = CrashStatsHomePage(self.selenium)

        details = csp.current_details
        if len(details['versions']) > 0:
            csp.select_version(details['versions'][1])
        
        Assert.equal(details['product'] + ' ' + details['versions'][1],csp.right_column_heading)

        try:
            centre_name = csp.centre_column_heading
            Assert.fail(centre_name + ' was shown when it shouldnt be there')
        except Exception, e:
            pass
    def test_that_selecting_exact_version_doesnt_show_other_versions(self, testsetup):
        self.selenium = testsetup.selenium
        csp = CrashStatsHomePage(testsetup)

        details = csp.current_details
        if len(details['versions']) > 0:
            csp.select_version(details['versions'][1])

        report_list = csp.click_first_product_top_crashers_link()
        report = report_list.click_first_valid_signature()

        count = 0
        while count < report.row_count:
             count += 1
             report = report_list.get_report(count)
             product = report.product
             version = report.version
             Assert.equal(product, details['product'])
             Assert.contains(version, details['versions'][1])
Example #18
0
 def test_that_advanced_search_has_camino_highlighted_in_multiselect(self, testsetup):
     self.selenium = testsetup.selenium
     csp = CrashStatsHomePage(testsetup)
     csp.select_product('Camino')
     cs_advanced = csp.click_advanced_search()
     Assert.equal('Camino', cs_advanced.currently_selected_product)
 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.'))
 def test_that_current_version_selected_in_top_crashers_by_url_header_for_firefox(self, seleniumsetup):
     self.selenium = seleniumsetup.selenium
     csp = CrashStatsHomePage(self.selenium)
     details = csp.current_details
     cstc = csp.select_report('Top Crashers by URL')
     Assert.equal(details['product'], cstc.product_header)
 def test_that_advanced_search_has_fennec_highlighted_in_multiselect(self, seleniumsetup):
     self.selenium = seleniumsetup.selenium
     csp = CrashStatsHomePage(self.selenium)
     csp.select_product('Fennec')
     cs_advanced = csp.click_advanced_search()
     Assert.equal('Fennec', cs_advanced.currently_selected_product)