本文整理汇总了Python中pages.treeherder.TreeherderPage.filter_job_successes方法的典型用法代码示例。如果您正苦于以下问题:Python TreeherderPage.filter_job_successes方法的具体用法?Python TreeherderPage.filter_job_successes怎么用?Python TreeherderPage.filter_job_successes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pages.treeherder.TreeherderPage
的用法示例。
在下文中一共展示了TreeherderPage.filter_job_successes方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_status_results_in_progress
# 需要导入模块: from pages.treeherder import TreeherderPage [as 别名]
# 或者: from pages.treeherder.TreeherderPage import filter_job_successes [as 别名]
def test_status_results_in_progress(base_url, selenium):
"""Open resultset page and verify job status in progress filter displays correctly."""
page = TreeherderPage(selenium, base_url).open()
page.filter_job_failures()
page.filter_job_successes()
page.filter_job_retries()
page.filter_job_usercancel()
page.wait.until(lambda _: 0 < len(page.all_jobs) == len(page.all_in_progress_jobs))
示例2: test_status_results_retry
# 需要导入模块: from pages.treeherder import TreeherderPage [as 别名]
# 或者: from pages.treeherder.TreeherderPage import filter_job_successes [as 别名]
def test_status_results_retry(base_url, selenium):
"""Open resultset page and verify job status retry filter displays correctly."""
page = TreeherderPage(selenium, base_url).open()
page.filter_job_failures()
page.filter_job_successes()
page.filter_job_usercancel()
page.filter_job_in_progress()
assert all(map(lambda job: 'retry' in job.title, page.all_jobs))
示例3: test_status_results_in_progress
# 需要导入模块: from pages.treeherder import TreeherderPage [as 别名]
# 或者: from pages.treeherder.TreeherderPage import filter_job_successes [as 别名]
def test_status_results_in_progress(base_url, selenium):
"""Open resultset page and verify job status in progress filter displays correctly."""
page = TreeherderPage(selenium, base_url).open()
page.filter_job_failures()
page.filter_job_successes()
page.filter_job_retries()
page.filter_job_usercancel()
all_jobs = page.all_jobs
job = random.choice(all_jobs)
runnable = ['running', 'pending']
assert any(status in job.title for status in runnable)
示例4: test_status_results_failures
# 需要导入模块: from pages.treeherder import TreeherderPage [as 别名]
# 或者: from pages.treeherder.TreeherderPage import filter_job_successes [as 别名]
def test_status_results_failures(base_url, selenium):
"""Open resultset page and verify job failure filter displays correctly."""
page = TreeherderPage(selenium, base_url).open()
page.filter_job_successes()
page.filter_job_retries()
page.filter_job_usercancel()
page.filter_job_in_progress()
all_jobs = page.all_jobs
job = random.choice(all_jobs)
unclassified = ['testfailed', 'exception', 'busted']
assert any(status in job.title for status in unclassified)