airtest.report.report module

nl2br(eval_ctx, value)[source]
timefmt(timestamp)[source]

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)[source]

Bases: object

Convert log to html display

scale = 0.5
static init_plugin_modules(plugins)[source]
static div_rect(r)[source]

count rect for js use

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