You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

create_report.py 463 B

2 years ago
123456789101112131415161718
  1. # encoding: utf-8
  2. """
  3. @author: lileilei
  4. @file: create_report.py
  5. @time: 2017/8/3 12:27
  6. """
  7. from Public.log import LOG, logger
  8. @logger('保存测试结果')
  9. def save_result(testtime, toial, passnum, fail):
  10. try:
  11. f = open('result.txt', 'a')
  12. f.write("%s=%s=%s=%s \n" % (testtime, toial, passnum, fail))
  13. f.close()
  14. except:
  15. LOG.info('保存测试结果出错,原因:%s' % Exception)
  16. print('记录测试结果失败')

Introduction

生成接口测试报告

No topics

Contributors (2)