1 Star 0 Fork 16

刘清华/playwrightDemo

forked from tang/playwrightDemo 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
runner.py 525 Bytes
一键复制 编辑 原始数据 按行查看 历史
import os
import pytest
from Config.Config import Config
if __name__ == '__main__':
AllureReport = Config.test_report_dir
AllureResult = Config.test_result_dir
Screenshot = Config.test_screenshot_dir
os.system(f"del {os.path.join(Screenshot,'*.png')}")
# pytest.main(["-v", "-s", f'--alluredir={AllureResult}', "--clean-alluredir"])
pytest.main(["-v", "-s", '--reruns=3', f'--alluredir={AllureResult}', "--clean-alluredir"])
os.system(f'allure generate {AllureResult} -o {AllureReport} --clean')
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/liuqinghuahua/playwright-demo.git
git@gitee.com:liuqinghuahua/playwright-demo.git
liuqinghuahua
playwright-demo
playwrightDemo
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385