airtest.report.report module

nl2br(eval_ctx, value)[源代码]
timefmt(timestamp)[源代码]

Formatting of timestamp in Jinja2 templates :param timestamp: timestamp of steps :return: “%Y-%m-%d %H:%M:%S”

class LogToHtml(script_root, log_root='', static_root='', export_dir=None, script_name='', logfile='log.txt', lang='en', plugins=None)[源代码]

基类:object

Convert log to html display

scale = 0.5
static init_plugin_modules(plugins)[源代码]
static div_rect(r)[源代码]

count rect for js use

is_pos(v)[源代码]
copy_tree(src, dst, ignore=None)[源代码]
report(template_name, output_file=None, record_list=None)[源代码]
simple_report(filepath, logpath=True, logfile='log.txt', output='log.html')[源代码]
get_parger(ap)[源代码]
main(args)[源代码]