import pytest
import common as C
from os import system
from selenium import webdriver
# 启动
system('start chrome.exe http://10.86.9.155:8080/ms --remote-debugging-port=9222 --start-maximized --incognito')
C.login_qiyun(acc,pwd)
pytest.main(['--junitxml=report.xml',
'--html=report.html',
'test_ms_SettlementReport.py',
# 'test_ms_AccountMonitored.py',
# 'test_ms_HistoryTradingLog.py',
'test_ms_IntradayTrading.py'
])
C.logout_qiyun()
# --incognito 异常关闭,需隐身模式启动
system('taskkill -f -im chrome.exe')