Commit 9bda81b0 authored by zhanhuasheng's avatar zhanhuasheng

修改路径

parent 49517971
import pytest import pytest
from Utils.webhook_handler import webhook from Utils.webhook_handler import webhook
from Utils.sql_handler import test_env_conn from Utils.sql_handler import test_env_conn
import os
if __name__ == '__main__': if __name__ == '__main__':
try: try:
# pytest.main(['-vs',r'C:\Users\rd71\PycharmProjects\willdesk_api_auto\TestCase\inbox\test_06_channel.py',f'--alluredir=./allureReports/json','--clean-alluredir']) # pytest.main(['-vs',r'C:\Users\rd71\PycharmProjects\willdesk_api_auto\TestCase\inbox\test_06_channel.py',f'--alluredir=./allureReports/json','--clean-alluredir'])
pytest.main(['-vs','./TestCase',f'--html=./report.html']) #allure报告一直生成不了,改用pytest自带报告 pytest.main(['-vs','./TestCase/setting/test_01_emailIntegration.py',f'--html=./report.html']) #allure报告一直生成不了,改用pytest自带报告
# pytest_run_command = 'pytest ./TestCase -vs -n=3 --reruns=1 --reruns-delay=3 --html=./report.html'
# os.system(pytest_run_command)
finally: finally:
test_env_conn.close_db() #关闭数据库链接 test_env_conn.close_db() #关闭数据库链接
......
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