コード例 #1
0
    def test_that_product_versions_are_ordered_correctly(self, mozwebqa):
        csp = CrashStatsHomePage(mozwebqa)

        Assert.is_sorted_descending(csp.header.current_versions,
                                    csp.get_url_current_page())
        Assert.is_sorted_descending(csp.header.other_versions,
                                    csp.get_url_current_page())
コード例 #2
0
 def test_that_options_are_sorted_the_same(self, mozwebqa):
     csp = CrashStatsHomePage(mozwebqa)
     cssearch = csp.header.click_advanced_search()
     nav_product_list = csp.header.product_list
     search_product_list = cssearch.product_list
     Assert.equal(len(nav_product_list), len(search_product_list), csp.get_url_current_page())
     for i, prod_item in enumerate(nav_product_list):
         Assert.equal(prod_item, search_product_list[i], csp.get_url_current_page())
コード例 #3
0
 def test_that_options_are_sorted_the_same(self, mozwebqa):
     csp = CrashStatsHomePage(mozwebqa)
     cssearch = csp.header.click_advanced_search()
     nav_product_list = csp.header.product_list
     search_product_list = cssearch.product_list
     Assert.equal(len(nav_product_list), len(search_product_list),
                  csp.get_url_current_page())
     for i, prod_item in enumerate(nav_product_list):
         Assert.equal(prod_item, search_product_list[i],
                      csp.get_url_current_page())
コード例 #4
0
    def test_that_products_are_sorted_correctly(self, mozwebqa):

        csp = CrashStatsHomePage(mozwebqa)

        product_list = ["Firefox", "Thunderbird", "Camino", "SeaMonkey", "Fennec", "FennecAndroid"]
        products = csp.header.product_list
        Assert.equal(product_list, products, csp.get_url_current_page())
コード例 #5
0
 def test_that_reports_form_has_same_product_for_firefox(self, mozwebqa):
     csp = CrashStatsHomePage(mozwebqa)
     page_title = csp.page_title
     Assert.true('Firefox' in page_title)
     crash_adu = csp.header.select_report("Crashes per User")
     details = csp.current_details
     report_product = crash_adu.product_select
     Assert.equal(details['product'], report_product, csp.get_url_current_page())
コード例 #6
0
 def test_that_current_version_selected_in_top_crashers_by_domain_header_for_firefox(
         self, mozwebqa):
     csp = CrashStatsHomePage(mozwebqa)
     product = csp.header.current_product
     cstc = csp.header.select_report('Top Crashers by Domain')
     if csp.results_found:
         Assert.equal(product, cstc.product_header,
                      csp.get_url_current_page())
コード例 #7
0
    def test_that_top_crasher_filter_all_return_results(self, mozwebqa):
        # https://bugzilla.mozilla.org/show_bug.cgi?id=678906
        csp = CrashStatsHomePage(mozwebqa)
        product = csp.header.current_product
        cstc = csp.header.select_report('Top Crashers')
        if csp.results_found:
            Assert.equal(product, cstc.product_header, csp.get_url_current_page())

        cstc.click_filter_all()
        Assert.greater(cstc.count_results, 0)
コード例 #8
0
    def test_that_products_are_sorted_correctly(self, mozwebqa):

        csp = CrashStatsHomePage(mozwebqa)

        product_list = [
            "Firefox", "Thunderbird", "Camino", "SeaMonkey", "Fennec",
            "FennecAndroid"
        ]
        products = csp.header.product_list
        Assert.equal(product_list, products, csp.get_url_current_page())
コード例 #9
0
    def test_that_top_crasher_filter_all_return_results(self, mozwebqa):
        # https://bugzilla.mozilla.org/show_bug.cgi?id=678906
        csp = CrashStatsHomePage(mozwebqa)
        details = csp.current_details
        cstc = csp.header.select_report('Top Crashers')
        if csp.results_found:
            Assert.equal(details['product'], cstc.product_header, csp.get_url_current_page())

        cstc.click_filter_all()
        results = cstc.count_results
        Assert.true(results > 0, "%s results found, expected >0" % results)
コード例 #10
0
    def test_that_top_crasher_filter_all_return_results(self, mozwebqa):
        # https://bugzilla.mozilla.org/show_bug.cgi?id=678906
        csp = CrashStatsHomePage(mozwebqa)
        product = csp.header.current_product
        cstc = csp.header.select_report('Top Crashers')
        if csp.results_found:
            Assert.equal(product, cstc.product_header,
                         csp.get_url_current_page())

        cstc.click_filter_all()
        Assert.greater(cstc.count_results, 0)
コード例 #11
0
 def test_that_current_version_selected_in_top_crashers_by_domain_header_for_firefox(self, mozwebqa):
     csp = CrashStatsHomePage(mozwebqa)
     product = csp.header.current_product
     cstc = csp.header.select_report('Top Crashers by Domain')
     if csp.results_found:
         Assert.equal(product, cstc.product_header, csp.get_url_current_page())
コード例 #12
0
 def test_that_reports_form_has_same_product_for_firefox(self, mozwebqa):
     csp = CrashStatsHomePage(mozwebqa)
     Assert.contains('Firefox', csp.page_title)
     crash_adu = csp.header.select_report("Crashes per User")
     Assert.equal(csp.header.current_product, crash_adu.product_select, csp.get_url_current_page())
コード例 #13
0
 def test_that_current_version_selected_in_top_crashers_by_url_header_for_firefox(self, mozwebqa):
     csp = CrashStatsHomePage(mozwebqa)
     details = csp.current_details
     cstc = csp.header.select_report('Top Crashers by URL')
     Assert.equal(details['product'], cstc.product_header, csp.get_url_current_page())
コード例 #14
0
    def test_that_product_versions_are_ordered_correctly(self, mozwebqa):
        csp = CrashStatsHomePage(mozwebqa)

        Assert.is_sorted_descending(csp.header.current_versions, csp.get_url_current_page())
        Assert.is_sorted_descending(csp.header.other_versions, csp.get_url_current_page())
コード例 #15
0
 def test_that_reports_form_has_same_product_for_firefox(self, mozwebqa):
     csp = CrashStatsHomePage(mozwebqa)
     Assert.contains('Firefox', csp.page_title)
     crash_adu = csp.header.select_report("Crashes per User")
     Assert.equal(csp.header.current_product, crash_adu.product_select,
                  csp.get_url_current_page())