本文整理汇总了Python中pages.treeherder.TreeherderPage.open_next_unclassified_failure方法的典型用法代码示例。如果您正苦于以下问题:Python TreeherderPage.open_next_unclassified_failure方法的具体用法?Python TreeherderPage.open_next_unclassified_failure怎么用?Python TreeherderPage.open_next_unclassified_failure使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pages.treeherder.TreeherderPage
的用法示例。
在下文中一共展示了TreeherderPage.open_next_unclassified_failure方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_unclassified_failure
# 需要导入模块: from pages.treeherder import TreeherderPage [as 别名]
# 或者: from pages.treeherder.TreeherderPage import open_next_unclassified_failure [as 别名]
def test_unclassified_failure(base_url, selenium):
"""Open resultset page and search for next unclassified failure"""
page = TreeherderPage(selenium, base_url).open()
assert page.unclassified_failure_count > 0
page.open_next_unclassified_failure()
teststatus = page.info_panel.job_details.job_result_status
assert teststatus in ['busted', 'testfailed', 'exception']
示例2: test_open_unclassified_failure_log
# 需要导入模块: from pages.treeherder import TreeherderPage [as 别名]
# 或者: from pages.treeherder.TreeherderPage import open_next_unclassified_failure [as 别名]
def test_open_unclassified_failure_log(base_url, selenium):
"""Open the job log and verify there is content"""
treeherder_page = TreeherderPage(selenium, base_url).open()
assert treeherder_page.unclassified_failure_count > 0
treeherder_page.open_next_unclassified_failure()
logviewer_page = treeherder_page.info_panel.job_details.open_logviewer()
assert logviewer_page.is_job_status_visible
示例3: test_open_unclassified_failure_log
# 需要导入模块: from pages.treeherder import TreeherderPage [as 别名]
# 或者: from pages.treeherder.TreeherderPage import open_next_unclassified_failure [as 别名]
def test_open_unclassified_failure_log(self, base_url, selenium):
# Open the job log and verify there is content
treeherder_page = TreeherderPage(base_url, selenium).open()
assert treeherder_page.unclassified_failure_count > 0
treeherder_page.open_next_unclassified_failure()
logviewer_page = treeherder_page.open_logviewer()
assert logviewer_page.is_job_status_visible
示例4: test_pin_a_bug
# 需要导入模块: from pages.treeherder import TreeherderPage [as 别名]
# 或者: from pages.treeherder.TreeherderPage import open_next_unclassified_failure [as 别名]
def test_pin_a_bug(base_url, selenium, new_user):
"""Open treeherder, log in, select unclassified job, pin job, add a bug, save and verify"""
page = TreeherderPage(selenium, base_url).open()
page.header.login(new_user['email'], new_user['password'])
assert page.header.is_user_logged_in
page.open_next_unclassified_failure()
assert not page.job_details.is_job_bug_visible
page.pin_using_spacebar()
bug_id = 1164485
page.pinboard.add_bug_to_pinned_job(bug_id)
page.pinboard.save_bug_to_pinboard()
message = page.notification_text
# Removed assert that Job Details displays bug number as it often requires a page refresh to display
assert "Bug association" in message
示例5: test_filter_by_test_status
# 需要导入模块: from pages.treeherder import TreeherderPage [as 别名]
# 或者: from pages.treeherder.TreeherderPage import open_next_unclassified_failure [as 别名]
def test_filter_by_test_status(base_url, selenium):
"""Open Treeherder page, open Filters Panel, select one filter,
verify results"""
page = TreeherderPage(selenium, base_url).open()
page.filter_unclassified_jobs()
page.click_on_filters_panel()
# Test 'testfailed' unclassified failures
page.deselect_busted_failures()
page.deselect_exception_failures()
if len(page.all_jobs) > 0:
page.open_next_unclassified_failure()
assert 'testfailed' == page.info_panel.job_details.job_result_status
# Test 'busted' unclassified failures
page.select_busted_failures()
page.deselect_testfailed_failures()
if len(page.all_jobs) > 0:
page.close_the_job_panel()
page.open_next_unclassified_failure()
assert 'busted' == page.info_panel.job_details.job_result_status
# Test 'exception' unclassified failures
page.select_exception_failures()
page.deselect_busted_failures()
if len(page.all_jobs) > 0:
page.close_the_job_panel()
page.open_next_unclassified_failure()
assert 'exception' == page.info_panel.job_details.job_result_status