Commit 57cb8228 authored by zhanhuasheng's avatar zhanhuasheng

allure报告会把整个进程卡死,暂不生成

parent 3d7f72c3
import asyncio
from Utils.sql_handler import test_env_conn
import pytest
import requests
import time
......@@ -110,9 +109,7 @@ def call_fixture():
willdesk_login()
customer_login()
yield
test_env_conn.close_db()
loop = websocket_handler.loop
loop.run_until_complete(close_ws())
loop.stop()
loop.close()
import pytest
import asyncio
import os
from Utils.sql_handler import test_env_conn
from Utils import websocket_handler
......@@ -7,11 +6,13 @@ from Utils import websocket_handler
if __name__ == '__main__':
try:
pytest.main(['-vs','TestCase/inbox',f'--alluredir=./allureReports','--clean-alluredir'])
os.system(f'allure generate ./allureReports -c')
# os.system('allure open ./allureReports')
# result = subprocess.run(['allure', 'generate', './allureReports', '-o', './allure-report', '--clean'])
# os.system('allure generate ./allureReports -c -o ./allureOutput')
finally:
print('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