本文整理汇总了Python中cfme.services.dashboard.Dashboard类的典型用法代码示例。如果您正苦于以下问题:Python Dashboard类的具体用法?Python Dashboard怎么用?Python Dashboard使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Dashboard类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_pending_requests
def test_pending_requests(appliance, context):
"""Tests pending requests displayed on dashboard."""
with appliance.context.use(context):
appliance.server.login()
dashboard = Dashboard(appliance)
dashboard.pending_requests()
示例2: test_denied_requests
def test_denied_requests(appliance, context):
"""Tests denied requests displayed on dashboard."""
with appliance.context.use(context):
appliance.server.login()
dashboard = Dashboard(appliance)
dashboard.denied_requests()
示例3: test_retired_service
def test_retired_service(appliance, context):
"""Tests count of retired services(int) displayed on dashboard."""
with appliance.context.use(context):
appliance.server.login()
dashboard = Dashboard(appliance)
assert dashboard.retired_services() == dashboard.results()
示例4: test_total_requests
def test_total_requests(appliance, context):
"""Tests total requests displayed."""
with appliance.context.use(context):
appliance.server.login()
dashboard = Dashboard(appliance)
dashboard.total_requests()
示例5: test_current_service
def test_current_service(appliance, context):
"""Tests current services count displayed on dashboard."""
with appliance.context.use(context):
appliance.server.login()
dashboard = Dashboard(appliance)
assert dashboard.current_services() == dashboard.results()
示例6: test_retiring_soon
def test_retiring_soon(appliance, context):
"""Tests retiring soon(int displayed) service count on dashboard."""
with appliance.context.use(context):
appliance.server.login()
dashboard = Dashboard(appliance)
assert dashboard.retiring_soon() == dashboard.results()
示例7: test_total_services
def test_total_services(appliance, setup_provider, context, order_catalog_item_in_ops_ui):
"""Tests total services count displayed on dashboard."""
with appliance.context.use(context):
appliance.server.login()
dashboard = Dashboard(appliance)
assert dashboard.total_services() == dashboard.results()
示例8: test_monthly_charges
def test_monthly_charges(appliance, setup_provider, context, order_service,
run_service_chargeback_report):
"""Tests chargeback data"""
with appliance.context.use(context):
dashboard = Dashboard(appliance)
monthly_charges = dashboard.monthly_charges()
logger.info('Monthly charges is {}'.format(monthly_charges))
assert monthly_charges != '$0'
示例9: test_total_services
def test_total_services(appliance, setup_provider, context, order_service):
"""Tests total services count displayed on dashboard.
Polarion:
assignee: sshveta
initialEstimate: 1/4h
"""
with appliance.context.use(context):
dashboard = Dashboard(appliance)
assert dashboard.total_services() == dashboard.results()
示例10: test_denied_requests
def test_denied_requests(appliance, context):
"""Tests denied requests displayed on dashboard.
Polarion:
assignee: nansari
casecomponent: SelfServiceUI
initialEstimate: 1/4h
"""
with appliance.context.use(context):
dashboard = Dashboard(appliance)
dashboard.denied_requests()
示例11: test_retired_service
def test_retired_service(appliance, context):
"""Tests count of retired services(int) displayed on dashboard.
Polarion:
assignee: nansari
casecomponent: SelfServiceUI
initialEstimate: 1/4h
"""
with appliance.context.use(context):
dashboard = Dashboard(appliance)
assert dashboard.retired_services() == dashboard.results()
示例12: test_retiring_soon
def test_retiring_soon(appliance, context):
"""Tests retiring soon(int displayed) service count on dashboard.
Polarion:
assignee: nansari
casecomponent: SelfServiceUI
initialEstimate: 1/4h
"""
with appliance.context.use(context):
dashboard = Dashboard(appliance)
assert dashboard.retiring_soon() == dashboard.results()
示例13: test_current_service
def test_current_service(appliance, context):
"""Tests current services count displayed on dashboard.
Polarion:
assignee: nansari
casecomponent: SelfServiceUI
initialEstimate: 1/4h
tags: ssui
"""
with appliance.context.use(context):
dashboard = Dashboard(appliance)
assert dashboard.current_services() == dashboard.results()
示例14: test_monthly_charges
def test_monthly_charges(appliance, has_no_providers_modscope, setup_provider, context,
order_service, run_service_chargeback_report):
"""Tests chargeback data
Polarion:
assignee: nachandr
initialEstimate: 1/4h
"""
with appliance.context.use(context):
dashboard = Dashboard(appliance)
monthly_charges = dashboard.monthly_charges()
logger.info('Monthly charges is {}'.format(monthly_charges))
assert monthly_charges != '$0'
示例15: test_pending_requests
def test_pending_requests(appliance, context):
"""Tests pending requests displayed on dashboard.
Polarion:
assignee: nansari
casecomponent: SelfServiceUI
initialEstimate: 1/4h
tags: ssui
"""
with appliance.context.use(context):
dashboard = Dashboard(appliance)
dashboard.pending_requests()