Commit ecd1f07b by 文鑫

修改文件路径

parent cced2d1a
......@@ -15,7 +15,7 @@ from common.getData import DoExcelByPandas
dt = datetime.datetime.now().strftime('%Y-%m-%d')
logging.basicConfig(level=logging.DEBUG, # 控制台打印的日志级别
filename=os.path.join('./log', str(dt) + '.log'), # 定义保存日志的路径,使用os.path.join()方法拼接文件路径,其展现为层级关系
filename=os.path.join('../log', str(dt) + '.log'), # 定义保存日志的路径,使用os.path.join()方法拼接文件路径,其展现为层级关系
filemode='a', # 模式,有w和a,w就是写模式,每次都会重新写日志,覆盖之前的日志
# a是追加模式,默认如果不写的话,就是追加模式
format=
......@@ -26,7 +26,7 @@ logging.basicConfig(level=logging.DEBUG, # 控制台打印的日志级别
@allure.feature('数据源')
class TestSource():
parametrize = DoExcelByPandas().get_data_for_pytest('./data/DataA_Source.xlsx', 'Sheet1')
parametrize = DoExcelByPandas().get_data_for_pytest('../data/DataA_Source.xlsx', 'Sheet1')
@allure.title('{title}')
# @allure.severity('{severity}')
@pytest.mark.parametrize('id,url,data,title,method,severity,condition,except_result', parametrize)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment