标签:load case mic Suite nbsp img inf replace image
def nrun():
report = (‘report_‘ + (‘%s‘) % time.strftime("%Y-%m-%d-%H-%M-%S", time.localtime()) + ‘.html‘).replace(‘\\‘, ‘/‘)
suite = unittest.defaultTestLoader.discover(CASE_DIR, "*case.py")
result = BeautifulReport(suite)
result.report(description=‘测试报告‘,
filename=report,
log_path =REPORT_DIR)
标签:load case mic Suite nbsp img inf replace image
原文地址:https://www.cnblogs.com/jinbaobao/p/12028891.html