本文整理匯總了Python中crash_stats_page.CrashStatsHomePage.select_report方法的典型用法代碼示例。如果您正苦於以下問題:Python CrashStatsHomePage.select_report方法的具體用法?Python CrashStatsHomePage.select_report怎麽用?Python CrashStatsHomePage.select_report使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類crash_stats_page.CrashStatsHomePage
的用法示例。
在下文中一共展示了CrashStatsHomePage.select_report方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_that_current_version_selected_in_top_crashers_by_domain_header_for_firefox
# 需要導入模塊: from crash_stats_page import CrashStatsHomePage [as 別名]
# 或者: from crash_stats_page.CrashStatsHomePage import select_report [as 別名]
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)
示例2: test_that_current_version_selected_in_top_crashers_by_url_header_for_seamonkey
# 需要導入模塊: from crash_stats_page import CrashStatsHomePage [as 別名]
# 或者: from crash_stats_page.CrashStatsHomePage import select_report [as 別名]
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)
示例3: test_that_current_version_selected_in_top_crashers_header_for_fennec
# 需要導入模塊: from crash_stats_page import CrashStatsHomePage [as 別名]
# 或者: from crash_stats_page.CrashStatsHomePage import select_report [as 別名]
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)
示例4: test_that_reports_form_has_same_product_for_firefox
# 需要導入模塊: from crash_stats_page import CrashStatsHomePage [as 別名]
# 或者: from crash_stats_page.CrashStatsHomePage import select_report [as 別名]
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)
示例5: test_that_reports_form_has_same_product_for_fennec
# 需要導入模塊: from crash_stats_page import CrashStatsHomePage [as 別名]
# 或者: from crash_stats_page.CrashStatsHomePage import select_report [as 別名]
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)
示例6: test_that_reports_form_has_same_product_for_thunderbird
# 需要導入模塊: from crash_stats_page import CrashStatsHomePage [as 別名]
# 或者: from crash_stats_page.CrashStatsHomePage import select_report [as 別名]
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)
示例7: test_that_reports_form_has_same_product_for_fennec
# 需要導入模塊: from crash_stats_page import CrashStatsHomePage [as 別名]
# 或者: from crash_stats_page.CrashStatsHomePage import select_report [as 別名]
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)
示例8: test_that_current_version_selected_in_top_crashers_by_url_header_for_firefox
# 需要導入模塊: from crash_stats_page import CrashStatsHomePage [as 別名]
# 或者: from crash_stats_page.CrashStatsHomePage import select_report [as 別名]
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)