Commit 34c9bd66 by taoke

增加电子证照

parent fac0eab7
......@@ -6,7 +6,7 @@ class BaseConfig():
# 请求头
headers = {'Content-Type': 'application/json'}
# 当前运行的产品名 #auto
current_name = "bmy"
current_name = "bmc"
test_case_dir = "test_case/"
secs=0.1 # 测试用例间隔运行时间
......
......@@ -38,10 +38,10 @@ class TestMonitor():
"""清除"""
if __name__ == '__main__':
for one in os.listdir('../../report/tmp'): # 列出对应文件夹的数据
if 'json' in one:
os.remove(f'../../report/tmp/{one}')
pytest.main(['test_riskMonitar.py', '-s', '--alluredir', '../../report/tmp'])
# # 启动默认浏览器打开报告
os.system('allure serve ../../report/tmp')
# if __name__ == '__main__':
# for one in os.listdir('../../report/tmp'): # 列出对应文件夹的数据
# if 'json' in one:
# os.remove(f'../../report/tmp/{one}')
# pytest.main(['test_riskMonitar.py', '-s', '--alluredir', '../../report/tmp'])
# # # 启动默认浏览器打开报告
# os.system('allure serve ../../report/tmp')
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