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')
Exemple #2
0
def test_perf_ui_infra_providers(ui_worker_pid, soft_assert):
    pages, prod_tail = standup_perf_ui(ui_worker_pid, soft_assert)

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

    pages.extend(navigate_quadicons(get_all_providers(), 'infra_prov', 'infrastructure_providers',
        nav_limit, ui_worker_pid, prod_tail, soft_assert))

    pages_to_csv(pages, 'perf_ui_infra_providers.csv')
    pages_to_statistics_csv(pages, infra_provider_filters, 'ui-statistics.csv')
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')
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')
Exemple #5
0
def test_perf_ui_infra_datastores(ui_worker_pid, soft_assert):
    pages, prod_tail = standup_perf_ui(ui_worker_pid, soft_assert)

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

    acc_bars = ['Properties', 'Relationships', 'Content']

    pages.extend(navigate_quadicons(get_all_datastores(), 'datastore', 'infrastructure_datastores',
        nav_limit, ui_worker_pid, prod_tail, soft_assert, acc_bars))

    pages_to_csv(pages, 'perf_ui_infra_datastores.csv')
    pages_to_statistics_csv(pages, storage_filters, 'ui-statistics.csv')
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')
Exemple #7
0
def test_perf_ui_cloud_tenants(ui_worker_pid, soft_assert):
    pages, prod_tail = standup_perf_ui(ui_worker_pid, soft_assert)

    nav_limit = 0
    if 'tenants' in perf_tests['ui']['page_check']['cloud']:
        nav_limit = perf_tests['ui']['page_check']['cloud']['tenants']

    from cfme.cloud.tenant import list_page as lst_pg

    pages.extend(
        navigate_split_table(lst_pg.tenant_table, 'clouds_tenants', nav_limit,
                             ui_worker_pid, prod_tail, soft_assert))

    pages_to_csv(pages, 'perf_ui_cloud_tenants.csv')
    pages_to_statistics_csv(pages, tenants_filters, 'ui-statistics.csv')
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')
Exemple #9
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')
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')
Exemple #11
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')
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')
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')
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')
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')
Exemple #16
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')
Exemple #17
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')
Exemple #18
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')
Exemple #19
0
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')
Exemple #20
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')
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')