1 Star 2 Fork 0

奋斗小青年/playwright-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
runner.py 525 Bytes
一键复制 编辑 原始数据 按行查看 历史
奋斗小青年 提交于 2023-06-11 12:33 . playwright
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')
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/y982626/playwright-demo.git
git@gitee.com:y982626/playwright-demo.git
y982626
playwright-demo
playwright-demo
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385