优化
This commit is contained in:
Binary file not shown.
BIN
Public/__pycache__/emmail.cpython-38.pyc
Normal file
BIN
Public/__pycache__/emmail.cpython-38.pyc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Public/__pycache__/pyreport_excel.cpython-38.pyc
Normal file
BIN
Public/__pycache__/pyreport_excel.cpython-38.pyc
Normal file
Binary file not shown.
Binary file not shown.
@@ -4,7 +4,7 @@
|
||||
@file: create_report.py
|
||||
@time: 2017/8/3 12:27
|
||||
"""
|
||||
from Public.log import LOG, logger
|
||||
from public.log import LOG, logger
|
||||
|
||||
|
||||
@logger('保存测试结果')
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# @Author : lileilei
|
||||
# @File : get_excel.py
|
||||
import xlrd, os
|
||||
from Public.log import LOG, logger
|
||||
from public.log import LOG, logger
|
||||
|
||||
|
||||
@logger('解析测试用例文件')
|
||||
@@ -42,8 +42,8 @@ def makedata():
|
||||
make_data = []
|
||||
for i in range(len(listid)):
|
||||
make_data.append({'url': listurl[i], 'key': listkey[i],
|
||||
'coneent': listconeent[i], 'fangshi': listmethod[i],
|
||||
'qiwang': listassert[i],
|
||||
'coneent': listconeent[i], 'method': listmethod[i],
|
||||
'assertconnect': listassert[i],
|
||||
'id': listid[i]},
|
||||
)
|
||||
i += 1
|
||||
|
||||
@@ -15,13 +15,13 @@ if not os.path.exists(LOG_DIR):
|
||||
file_stream = True
|
||||
|
||||
|
||||
def get_logger(name='jiekou', file_log=file_stream, level=''):
|
||||
def get_logger(name='interface_case_run', file_log=file_stream, level=''):
|
||||
""" get logger Factory function """
|
||||
logbook.set_datetime_format('local')
|
||||
ColorizedStderrHandler(bubble=False, level=level).push_thread()
|
||||
logbook.TimedRotatingFileHandler(
|
||||
os.path.join(LOG_DIR, '%s.log' % name),
|
||||
date_format='%Y-%m-%d-%H', bubble=True, encoding='utf-8').push_thread()
|
||||
date_format='%Y_%m_%d_%H', bubble=True, encoding='utf-8').push_thread()
|
||||
return logbook.Logger(name)
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# @Date : 2017-08-02 21:54:08
|
||||
# @Author : lileilei
|
||||
from Public.fengzhuang_dict import res
|
||||
from public.fengzhuang_dict import res
|
||||
from .log import LOG, logger
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user