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


Python treeherder.TreeherderPage类代码示例

本文整理汇总了Python中pages.treeherder.TreeherderPage的典型用法代码示例。如果您正苦于以下问题:Python TreeherderPage类的具体用法?Python TreeherderPage怎么用?Python TreeherderPage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了TreeherderPage类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_open_unclassified_failure_log

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
开发者ID:MikeLing,项目名称:treeherder,代码行数:7,代码来源:test_unclassified_job.py

示例2: test_open_unclassified_failure_log

 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
开发者ID:bebef1987,项目名称:treeherder-tests,代码行数:7,代码来源:test_unclassified_job.py

示例3: test_unclassified_failure

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']
开发者ID:MikeLing,项目名称:treeherder,代码行数:7,代码来源:test_unclassified_job.py

示例4: test_set_as_top_of_range

def test_set_as_top_of_range(base_url, selenium):
    page = TreeherderPage(selenium, base_url).open()
    current_top_of_range = page.result_sets[0].datestamp
    page.result_sets[1].set_as_top_of_range()
    page.wait_for_page_to_load()
    new_top_of_range = page.result_sets[0].datestamp
    assert not new_top_of_range == current_top_of_range
开发者ID:kmoir,项目名称:treeherder,代码行数:7,代码来源:test_range.py

示例5: test_clear_pinboard

def test_clear_pinboard(base_url, selenium):
    """Open treeherder page, pin a job and then clear the pinboard"""
    page = TreeherderPage(selenium, base_url).open()
    random.choice(page.all_jobs).click()
    page.pin_using_spacebar()
    assert 1 == len(page.pinboard.jobs)
    page.pinboard.clear_pinboard()
    assert page.pinboard.is_pinboard_open
    assert 0 == len(page.pinboard.jobs)
开发者ID:rwood-moz,项目名称:treeherder,代码行数:9,代码来源:test_pin_job.py

示例6: test_pin_job

def test_pin_job(base_url, selenium):
    """Open treeherder page, select first job and pin it"""
    page = TreeherderPage(selenium, base_url).open()
    job = random.choice(page.all_jobs)
    job.click()
    assert 0 == len(page.pinboard.jobs)
    page.pin_using_spacebar()
    assert 1 == len(page.pinboard.jobs)
    assert job.symbol == page.pinboard.selected_job.symbol
开发者ID:rwood-moz,项目名称:treeherder,代码行数:9,代码来源:test_pin_job.py

示例7: test_filter_jobs

def test_filter_jobs(base_url, selenium):
    """Open resultset page and filter for platform"""
    page = TreeherderPage(selenium, base_url).open()
    assert any(r.contains_platform('linux') for r in page.pushes)
    assert any(r.contains_platform('windows') for r in page.pushes)

    page.filter_by('linux')
    assert any(r.contains_platform('linux') for r in page.pushes)
    assert not any(r.contains_platform('windows') for r in page.pushes)
开发者ID:rwood-moz,项目名称:treeherder,代码行数:9,代码来源:test_filter_jobs.py

示例8: test_close_open_panels

def test_close_open_panels(base_url, selenium):
    """Open Treeherder, verify shortcut: 'Esc' closes job panel.
    Open Treeherder page, select random job, close all panels using 'esc'
    button, verify if all panels are closed.
    """
    page = TreeherderPage(selenium, base_url).open()
    page.select_random_job()
    assert page.info_panel.is_open
    page.close_all_panels()
    assert not page.info_panel.is_open
开发者ID:MikeLing,项目名称:treeherder,代码行数:10,代码来源:test_keyboard_shortcuts.py

示例9: test_filter_by_email

def test_filter_by_email(base_url, selenium):
    """Open Treeherder page, select and filter by random email,
    verify if filtered emails have the same email address"""
    page = TreeherderPage(selenium, base_url).open()
    page.select_random_email()

    filtered_emails_name = page.result_sets[0].email_name
    random_email_name = page.random_email_name

    assert filtered_emails_name == random_email_name
开发者ID:MikeLing,项目名称:treeherder,代码行数:10,代码来源:test_filter_job_by_email.py

示例10: test_remove_email_address_filter

def test_remove_email_address_filter(base_url, selenium):
    """Open Treeherder page, select and filter by random email,
    remove email address filter, verify that job list display all authors"""
    page = TreeherderPage(selenium, base_url).open()
    page.select_random_email()

    page.click_on_active_watched_repo()
    all_emails = [email.get_name for email in page.all_emails]

    assert len(set(all_emails)) > 1
开发者ID:MikeLing,项目名称:treeherder,代码行数:10,代码来源:test_filter_job_by_email.py

示例11: test_treeherder_dropdown

def test_treeherder_dropdown(base_url, selenium):
    """Switch between Treeherder and Perfherder using header dropdown"""
    treeherder_page = TreeherderPage(selenium, base_url).open()

    # Switch to Perfherder page
    perfherder_page = treeherder_page.open_perfherder_page()
    assert perfherder_page.is_graph_chooser_displayed

    # Return to Treeherder page
    treeherder_page = perfherder_page.open_treeherder_page()
开发者ID:MikeLing,项目名称:treeherder,代码行数:10,代码来源:test_treeherder_menu.py

示例12: test_filter_by_job_keyword

def test_filter_by_job_keyword(base_url, selenium):
    """Open Treeherder page, select random job, click on the job keyword,
    verify if filtered jobs have the same platform name"""
    page = TreeherderPage(selenium, base_url).open()
    page.select_random_job()

    page.info_panel.job_details.filter_by_job_keyword()
    keyword = page.info_panel.job_details.job_keyword_name

    page.select_random_job()
    assert keyword in page.info_panel.job_details.job_keyword_name
开发者ID:MikeLing,项目名称:treeherder,代码行数:11,代码来源:test_filter_job_by_keywords.py

示例13: test_enter_quick_filter_shortcut

def test_enter_quick_filter_shortcut(base_url, selenium):
    """Open Treeherder, verify shortcut: 'f' moves cursor to filter search box.
    Open Treeherder page, verify if search box is empty, enter search box
    filter using 'f' shortcut, type 'debug', verify if filter box contains
    word 'debug'.
    """
    page = TreeherderPage(selenium, base_url).open()
    assert page.search_term == ''

    page.filter_by('debug', method='keyboard')
    assert page.search_term == 'debug'
开发者ID:kmoir,项目名称:treeherder,代码行数:11,代码来源:test_keyboard_shortcuts.py

示例14: test_view_unclassified_jobs

def test_view_unclassified_jobs(base_url, selenium):
    page = TreeherderPage(selenium, base_url).open()
    all_jobs = page.all_jobs

    page.filter_unclassified_jobs()
    filtered_jobs = page.all_jobs
    assert not all_jobs == filtered_jobs

    job = random.choice(filtered_jobs)
    unclassified = ['testfailed', 'busted', 'exception']
    assert any(status in job.title for status in unclassified)
开发者ID:MikeLing,项目名称:treeherder,代码行数:11,代码来源:test_unclassified_job.py

示例15: test_status_results_in_progress

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,代码行数:8,代码来源:test_status_results.py


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