Пример #1
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.'))
Пример #2
0
    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])