utils.pagestats module

Functions and PageStat object for performance testing of the UI.

class utils.pagestats.PageStat(request='', status='', seleniumtime=0, completedintime=0, viewstime=0, activerecordtime=0, selectcount=0, cachedcount=0, uncachedcount=0)[source]

Bases: object

Object that represents page statistics and a list of any associated slow queries.

class utils.pagestats.PageStatLists[source]

Bases: object

utils.pagestats.analyze_page_stat(pages, soft_assert)[source]
utils.pagestats.any_in(items, thing)[source]
utils.pagestats.generate_tree_paths(tree_contents, path, paths)[source]
utils.pagestats.navigate_accordions(accordions, page_name, ui_bench_pg_limit, ui_worker_pid, prod_tail, soft_assert)[source]
utils.pagestats.navigate_quadicons(q_names, q_type, page_name, nav_limit, ui_worker_pid, prod_tail, soft_assert, acc_topbars=[])[source]
utils.pagestats.navigate_split_table(table, page_name, nav_limit, ui_worker_pid, prod_tail, soft_assert)[source]
utils.pagestats.pages_to_csv(pages, file_name)[source]
utils.pagestats.pages_to_statistics_csv(pages, filters, report_file_name)[source]
utils.pagestats.perf_bench_read_tree(tree)[source]
utils.pagestats.perf_click(uiworker_pid, tailer, measure_sel_time, clickable, *args)[source]
utils.pagestats.standup_perf_ui(ui_worker_pid, soft_assert)[source]