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


Python CrashStatsHomePage.select_version方法代碼示例

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


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

示例1: test_that_selecting_exact_version_doesnt_show_other_versions

# 需要導入模塊: from crash_stats_page import CrashStatsHomePage [as 別名]
# 或者: from crash_stats_page.CrashStatsHomePage import select_version [as 別名]
    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
開發者ID:AutomatedTester,項目名稱:Socorro-Tests,代碼行數:17,代碼來源:test_specific_versions.py

示例2: test_that_selecting_exact_version_doesnt_show_other_versions

# 需要導入模塊: from crash_stats_page import CrashStatsHomePage [as 別名]
# 或者: from crash_stats_page.CrashStatsHomePage import select_version [as 別名]
    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])
開發者ID:tobbi,項目名稱:Socorro-Tests,代碼行數:21,代碼來源:test_specific_versions.py


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