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
예제 #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])