当前位置: 首页>>代码示例>>Python>>正文


Python TreeherderPage.filter_job_successes方法代码示例

本文整理汇总了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))
开发者ID:MikeLing,项目名称:treeherder,代码行数:10,代码来源:test_status_results.py

示例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))
开发者ID:tojon,项目名称:treeherder,代码行数:11,代码来源:test_status_results.py

示例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)
开发者ID:tojon,项目名称:treeherder,代码行数:14,代码来源:test_status_results.py

示例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)
开发者ID:tojon,项目名称:treeherder,代码行数:14,代码来源:test_status_results.py


注:本文中的pages.treeherder.TreeherderPage.filter_job_successes方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。