Commit 999c4848 by taoke

修改excle

parent 3b8783f7
...@@ -6,7 +6,7 @@ class BaseConfig(): ...@@ -6,7 +6,7 @@ class BaseConfig():
# 请求头 # 请求头
headers = {'Content-Type': 'application/json'} headers = {'Content-Type': 'application/json'}
# 当前运行的产品名 #auto # 当前运行的产品名 #auto
current_name = "bmc" current_name = "auto"
test_case_dir = "test_case/" test_case_dir = "test_case/"
secs=0.1 # 测试用例间隔运行时间 secs=0.1 # 测试用例间隔运行时间
......
...@@ -10,7 +10,7 @@ from common.tools import request_main ...@@ -10,7 +10,7 @@ from common.tools import request_main
from config import BmyConfig from config import BmyConfig
@allure.epic("营运车企业端") @allure.epic("登录模块")
@allure.feature("登录模块") @allure.feature("登录模块")
class TestLogin(): class TestLogin():
workBook = xlrd.open_workbook(f'{BmyConfig.root_path}/test_case_data/bmy/bmy_case.xlsx') workBook = xlrd.open_workbook(f'{BmyConfig.root_path}/test_case_data/bmy/bmy_case.xlsx')
......
...@@ -9,7 +9,7 @@ from service.login import BMY ...@@ -9,7 +9,7 @@ from service.login import BMY
from common.tools import request_main from common.tools import request_main
from config import BmyConfig from config import BmyConfig
from service.login import BMY from service.login import BMY
@allure.epic("营运车企业端") @allure.epic("信用权益")
@allure.feature("风控台") @allure.feature("风控台")
class TestMonitor(): class TestMonitor():
workBook = xlrd.open_workbook(f'{BmyConfig.root_path}/test_case_data/bmy/bmy_case.xlsx') workBook = xlrd.open_workbook(f'{BmyConfig.root_path}/test_case_data/bmy/bmy_case.xlsx')
...@@ -37,11 +37,10 @@ class TestMonitor(): ...@@ -37,11 +37,10 @@ class TestMonitor():
def teardown_class(self): def teardown_class(self):
"""清除""" """清除"""
if __name__ == '__main__':
# if __name__ == '__main__': for one in os.listdir('../../report/tmp'): # 列出对应文件夹的数据
# for one in os.listdir('../../report/tmp'): # 列出对应文件夹的数据 if 'json' in one:
# if 'json' in one: os.remove(f'../../report/tmp/{one}')
# os.remove(f'../../report/tmp/{one}') pytest.main(['test_riskMonitar.py', '-s', '--alluredir', '../../report/tmp'])
# pytest.main(['test_riskMonitar.py', '-s', '--alluredir', '../../report/tmp']) # # 启动默认浏览器打开报告
# # # 启动默认浏览器打开报告 os.system('allure serve ../../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