コード例 #1
0
def test_perf_ui_infra_resource_pools(ui_worker_pid, soft_assert):
    pages, prod_tail = standup_perf_ui(ui_worker_pid, soft_assert)

    nav_limit = 0
    if 'resource_pools' in perf_tests['ui']['page_check']['infrastructure']:
        nav_limit = perf_tests['ui']['page_check']['infrastructure'][
            'resource_pools']

    pages.extend(
        analyze_page_stat(
            perf_click(ui_worker_pid, prod_tail, True, sel.force_navigate,
                       'infrastructure_resource_pools'), soft_assert))

    resource_pools = set([])
    for page in paginator.pages():
        for title in sel.elements(
                "//div[@id='quadicon']/../../../tr/td/a[contains(@href,"
                "'resource_pool/show')]"):
            resource_pools.add(sel.get_attribute(title, "title"))

    acc_bars = ['Properties', 'Relationships']

    pages.extend(
        navigate_quadicons(resource_pools, 'resource_pool',
                           'infrastructure_resource_pools', nav_limit,
                           ui_worker_pid, prod_tail, soft_assert, acc_bars))

    pages_to_csv(pages, 'perf_ui_infra_resource_pools.csv')
    pages_to_statistics_csv(pages, resource_pool_filters, 'ui-statistics.csv')
コード例 #2
0
ファイル: test_ui_optimize.py プロジェクト: FilipB/cfme_tests
def test_perf_ui_optimize_bottlenecks(ui_worker_pid, soft_assert):
    pages, prod_tail = standup_perf_ui(ui_worker_pid, soft_assert)

    pages.extend(analyze_page_stat(perf_click(ui_worker_pid, prod_tail, True, sel.force_navigate,
        'bottlenecks'), soft_assert))

    services_acc = OrderedDict((('Bottlenecks', 'bottlenecks'), ))

    pages.extend(navigate_accordions(services_acc, 'bottlenecks', (perf_tests['ui']['page_check']
        ['optimize']['bottlenecks']), ui_worker_pid, prod_tail, soft_assert))

    pages_to_csv(pages, 'perf_ui_optimize_bottlenecks.csv')
    pages_to_statistics_csv(pages, bottlenecks_filters, 'ui-statistics.csv')
コード例 #3
0
def test_perf_ui_automate_explorer(ui_worker_pid, soft_assert):
    pages, prod_tail = standup_perf_ui(ui_worker_pid, soft_assert)

    pages.extend(analyze_page_stat(perf_click(ui_worker_pid, prod_tail, True, sel.force_navigate,
        'automate_explorer'), soft_assert))

    services_acc = OrderedDict((('Datastore', 'datastore'), ))

    pages.extend(navigate_accordions(services_acc, 'automate_explorer',
        perf_tests['ui']['page_check']['automate']['explorer'], ui_worker_pid, prod_tail,
        soft_assert))

    pages_to_csv(pages, 'perf_ui_automate_explorer.csv')
    pages_to_statistics_csv(pages, explorer_filters, 'ui-statistics.csv')
コード例 #4
0
def test_perf_ui_intelligence_chargeback(ui_worker_pid, soft_assert):
    pages, prod_tail = standup_perf_ui(ui_worker_pid, soft_assert)

    pages.extend(analyze_page_stat(perf_click(ui_worker_pid, prod_tail, True, sel.force_navigate,
        'chargeback'), soft_assert))

    charge_acc = OrderedDict((('Reports', 'reports'), ('Rates', 'rates'),
        ('Assignments', 'assignments')))

    pages.extend(navigate_accordions(charge_acc, 'chargeback', (perf_tests['ui']['page_check']
        ['intelligence']['chargeback']), ui_worker_pid, prod_tail, soft_assert))

    pages_to_csv(pages, 'perf_ui_intelligence_chargeback.csv')
    pages_to_statistics_csv(pages, chargeback_filters, 'ui-statistics.csv')
コード例 #5
0
def test_perf_ui_control_explorer(ui_worker_pid, soft_assert):
    pages, prod_tail = standup_perf_ui(ui_worker_pid, soft_assert)

    pages.extend(analyze_page_stat(perf_click(ui_worker_pid, prod_tail, True, sel.force_navigate,
        'control_explorer'), soft_assert))

    services_acc = OrderedDict((('Policy Profiles', 'policy_profiles'), ('Policies', 'policies'),
        ('Events', 'events'), ('Conditions', 'conditions'), ('Actions', 'actions'),
        ('Alert Profiles', 'alert_profiles'), ('Alerts', 'alerts')))

    pages.extend(navigate_accordions(services_acc, 'control_explorer', (perf_tests['ui']
        ['page_check']['control']['explorer']), ui_worker_pid, prod_tail, soft_assert))

    pages_to_csv(pages, 'perf_ui_control_explorer.csv')
    pages_to_statistics_csv(pages, explorer_filters, 'ui-statistics.csv')
コード例 #6
0
def test_perf_ui_services_catalogs(ui_worker_pid, soft_assert):
    pages, prod_tail = standup_perf_ui(ui_worker_pid, soft_assert)

    pages.extend(analyze_page_stat(perf_click(ui_worker_pid, prod_tail, True, sel.force_navigate,
        'services_catalogs'), soft_assert))

    catalogs_acc = OrderedDict((('Catalog Items', 'catalog_items'), ('Catalogs', 'catalogs'),
        ('Service Catalogs', 'service_catalogs')))

    pages.extend(navigate_accordions(catalogs_acc, 'services_catalogs',
        perf_tests['ui']['page_check']['services']['catalogs'], ui_worker_pid, prod_tail,
        soft_assert))

    pages_to_csv(pages, 'perf_ui_services_catalogs.csv')
    pages_to_statistics_csv(pages, my_services_filters, 'ui-statistics.csv')
コード例 #7
0
def test_perf_ui_infra_pxe(ui_worker_pid, soft_assert):
    pages, prod_tail = standup_perf_ui(ui_worker_pid, soft_assert)

    pages.extend(analyze_page_stat(perf_click(ui_worker_pid, prod_tail, True, sel.force_navigate,
        'infrastructure_pxe'), soft_assert))

    pxe_acc = OrderedDict((('PXE Servers', 'pxe_servers'),
        ('Customization Templates', 'customization_templates'),
        ('System Image Types', 'system_image_types'), ('ISO Datastores', 'iso_datastores')))

    pages.extend(navigate_accordions(pxe_acc, 'infrastructure_pxe', (perf_tests['ui']['page_check']
        ['infrastructure']['pxe']), ui_worker_pid, prod_tail, soft_assert))

    pages_to_csv(pages, 'perf_ui_infra_pxe.csv')
    pages_to_statistics_csv(pages, infra_pxe_filters, 'ui-statistics.csv')
コード例 #8
0
def test_perf_ui_configure_configuration(ui_worker_pid, soft_assert):
    pages, prod_tail = standup_perf_ui(ui_worker_pid, soft_assert)

    pages.extend(analyze_page_stat(perf_click(ui_worker_pid, prod_tail, True, sel.force_navigate,
        'configuration'), soft_assert))

    services_acc = OrderedDict((('Settings', 'settings'), ('Access Control', 'access_control'),
        ('Diagnostics', 'diagnostics')))
    #    ('Database', 'database'))) - Requires almost 17 minutes to read the database tree.

    pages.extend(navigate_accordions(services_acc, 'configuration', (perf_tests['ui']['page_check']
        ['configure']['configuration']), ui_worker_pid, prod_tail, soft_assert))

    pages_to_csv(pages, 'perf_ui_configure_configuration.csv')
    pages_to_statistics_csv(pages, configuration_filters, 'ui-statistics.csv')
コード例 #9
0
def test_perf_ui_infra_vm_explorer(ui_worker_pid, soft_assert):
    pages, prod_tail = standup_perf_ui(ui_worker_pid, soft_assert)

    pages.extend(analyze_page_stat(perf_click(ui_worker_pid, prod_tail, True, sel.force_navigate,
        'infrastructure_virtual_machines'), soft_assert))

    infra_acc = OrderedDict((('VMs & Templates', 'vms_and_templates'), ('VMs', 'vms'),
        ('Templates', 'templates')))

    pages.extend(navigate_accordions(infra_acc, 'infrastructure_virtual_machines',
        perf_tests['ui']['page_check']['infrastructure']['vm_explorer'], ui_worker_pid, prod_tail,
        soft_assert))

    pages_to_csv(pages, 'perf_ui_infra_vm_explorer.csv')
    pages_to_statistics_csv(pages, vm_infra_filters, 'ui-statistics.csv')
コード例 #10
0
def test_perf_ui_services_workloads(ui_worker_pid, soft_assert):
    pages, prod_tail = standup_perf_ui(ui_worker_pid, soft_assert)

    pages.extend(analyze_page_stat(perf_click(ui_worker_pid, prod_tail, True, sel.force_navigate,
        'services_workloads'), soft_assert))

    workloads_acc = OrderedDict((('VMs & Instances', 'vms_instances'),
        ('Templates & Images', 'templates_images')))

    pages.extend(navigate_accordions(workloads_acc, 'services_workloads',
        perf_tests['ui']['page_check']['services']['workloads'], ui_worker_pid, prod_tail,
        soft_assert))

    pages_to_csv(pages, 'perf_ui_services_workloads.csv')
    pages_to_statistics_csv(pages, my_services_filters, 'ui-statistics.csv')
コード例 #11
0
def test_perf_ui_automate_customization(ui_worker_pid, soft_assert):
    pages, prod_tail = standup_perf_ui(ui_worker_pid, soft_assert)

    pages.extend(analyze_page_stat(perf_click(ui_worker_pid, prod_tail, True, sel.force_navigate,
        'automate_customization'), soft_assert))

    services_acc = OrderedDict((('Provisioning Dialogs', 'provisioning_dialogs'),
        ('Service Dialogs', 'service_dialogs'), ('Buttons', 'buttons'),
        ('Import/Export', 'import_export')))

    pages.extend(navigate_accordions(services_acc, 'automate_customization',
        perf_tests['ui']['page_check']['automate']['customization'], ui_worker_pid, prod_tail,
        soft_assert))

    pages_to_csv(pages, 'perf_ui_automate_customization.csv')
    pages_to_statistics_csv(pages, customization_filters, 'ui-statistics.csv')
コード例 #12
0
def test_perf_ui_intelligence_reports(ui_worker_pid, soft_assert):
    pages, prod_tail = standup_perf_ui(ui_worker_pid, soft_assert)

    pages.extend(analyze_page_stat(perf_click(ui_worker_pid, prod_tail, True, sel.force_navigate,
        'reports'), soft_assert))

    reports_acc = OrderedDict((('Saved Reports', 'saved_reports'), ('Reports', 'reports'),
        ('Schedules', 'schedules'), ('Dashboards', 'dashboards'),
        ('Dashboard Widgets', 'dashboard_widgets'), ('Edit Report Menus', 'edit_report_menus'),
        ('Import/Export', 'import_export')))

    pages.extend(navigate_accordions(reports_acc, 'reports', (perf_tests['ui']['page_check']
        ['intelligence']['reports']), ui_worker_pid, prod_tail, soft_assert))

    pages_to_csv(pages, 'perf_ui_intelligence_reports.csv')
    pages_to_statistics_csv(pages, reports_filters, 'ui-statistics.csv')
コード例 #13
0
def test_perf_ui_optimize_bottlenecks(ui_worker_pid, soft_assert):
    pages, prod_tail = standup_perf_ui(ui_worker_pid, soft_assert)

    pages.extend(
        analyze_page_stat(
            perf_click(ui_worker_pid, prod_tail, True, sel.force_navigate,
                       'bottlenecks'), soft_assert))

    services_acc = OrderedDict((('Bottlenecks', 'bottlenecks'), ))

    pages.extend(
        navigate_accordions(
            services_acc, 'bottlenecks',
            (perf_tests['ui']['page_check']['optimize']['bottlenecks']),
            ui_worker_pid, prod_tail, soft_assert))

    pages_to_csv(pages, 'perf_ui_optimize_bottlenecks.csv')
    pages_to_statistics_csv(pages, bottlenecks_filters, 'ui-statistics.csv')
コード例 #14
0
def test_perf_ui_services_workloads(ui_worker_pid, soft_assert):
    pages, prod_tail = standup_perf_ui(ui_worker_pid, soft_assert)

    pages.extend(
        analyze_page_stat(
            perf_click(ui_worker_pid, prod_tail, True, sel.force_navigate,
                       'services_workloads'), soft_assert))

    workloads_acc = OrderedDict((('VMs & Instances', 'vms_instances'),
                                 ('Templates & Images', 'templates_images')))

    pages.extend(
        navigate_accordions(
            workloads_acc, 'services_workloads',
            perf_tests['ui']['page_check']['services']['workloads'],
            ui_worker_pid, prod_tail, soft_assert))

    pages_to_csv(pages, 'perf_ui_services_workloads.csv')
    pages_to_statistics_csv(pages, my_services_filters, 'ui-statistics.csv')
コード例 #15
0
ファイル: test_ui_cloud.py プロジェクト: vrutkovs/cfme_tests
def test_perf_ui_cloud_vm_explorer(ui_worker_pid, soft_assert):
    pages, prod_tail = standup_perf_ui(ui_worker_pid, soft_assert)

    pages.extend(
        analyze_page_stat(
            perf_click(ui_worker_pid, prod_tail, True, sel.force_navigate,
                       'clouds_instances'), soft_assert))

    cloud_acc = OrderedDict((('Instances by Provider', 'instances_by_prov'),
                             ('Images by Provider', 'images_by_prov'),
                             ('Instances', 'instances'), ('Images', 'images')))

    pages.extend(
        navigate_accordions(
            cloud_acc, 'clouds_instances',
            (perf_tests['ui']['page_check']['cloud']['vm_explorer']),
            ui_worker_pid, prod_tail, soft_assert))

    pages_to_csv(pages, 'perf_ui_cloud_vm_explorer.csv')
    pages_to_statistics_csv(pages, vm_cloud_filters, 'ui-statistics.csv')
コード例 #16
0
def test_perf_ui_services_catalogs(ui_worker_pid, soft_assert):
    pages, prod_tail = standup_perf_ui(ui_worker_pid, soft_assert)

    pages.extend(
        analyze_page_stat(
            perf_click(ui_worker_pid, prod_tail, True, sel.force_navigate,
                       'services_catalogs'), soft_assert))

    catalogs_acc = OrderedDict(
        (('Catalog Items', 'catalog_items'), ('Catalogs', 'catalogs'),
         ('Service Catalogs', 'service_catalogs')))

    pages.extend(
        navigate_accordions(
            catalogs_acc, 'services_catalogs',
            perf_tests['ui']['page_check']['services']['catalogs'],
            ui_worker_pid, prod_tail, soft_assert))

    pages_to_csv(pages, 'perf_ui_services_catalogs.csv')
    pages_to_statistics_csv(pages, my_services_filters, 'ui-statistics.csv')
コード例 #17
0
def test_perf_ui_configure_configuration(ui_worker_pid, soft_assert):
    pages, prod_tail = standup_perf_ui(ui_worker_pid, soft_assert)

    pages.extend(
        analyze_page_stat(
            perf_click(ui_worker_pid, prod_tail, True, sel.force_navigate,
                       'configuration'), soft_assert))

    services_acc = OrderedDict(
        (('Settings', 'settings'), ('Access Control', 'access_control'),
         ('Diagnostics', 'diagnostics')))
    #    ('Database', 'database'))) - Requires almost 17 minutes to read the database tree.

    pages.extend(
        navigate_accordions(
            services_acc, 'configuration',
            (perf_tests['ui']['page_check']['configure']['configuration']),
            ui_worker_pid, prod_tail, soft_assert))

    pages_to_csv(pages, 'perf_ui_configure_configuration.csv')
    pages_to_statistics_csv(pages, configuration_filters, 'ui-statistics.csv')
コード例 #18
0
def test_perf_ui_infra_clusters(ui_worker_pid, soft_assert):
    pages, prod_tail = standup_perf_ui(ui_worker_pid, soft_assert)

    nav_limit = 0
    if 'clusters' in perf_tests['ui']['page_check']['infrastructure']:
        nav_limit = perf_tests['ui']['page_check']['infrastructure']['clusters']

    pages.extend(analyze_page_stat(perf_click(ui_worker_pid, prod_tail, True, sel.force_navigate,
        'infrastructure_clusters'), soft_assert))

    clusters = set([])
    for page in paginator.pages():
        for title in sel.elements("//div[@id='quadicon']/../../../tr/td/a[contains(@href,"
                "'ems_cluster/show')]"):
            clusters.add(sel.get_attribute(title, "title"))

    acc_bars = ['Properties', 'Relationships']

    pages.extend(navigate_quadicons(clusters, 'cluster', 'infrastructure_clusters', nav_limit,
        ui_worker_pid, prod_tail, soft_assert, acc_bars))

    pages_to_csv(pages, 'perf_ui_infra_clusters.csv')
    pages_to_statistics_csv(pages, cluster_filters, 'ui-statistics.csv')