代码拉取完成,页面将自动刷新
# -*- coding: UTF-8 -*-
"""
@Time : 2021/1/14
@Author : Ricky
@Contact : 382688672@qq.com
@File : main.py
@Desc : None
"""
import os
import sys
from SeleniumTestRunner import SeleniumTestRunner
args: list[str] = sys.argv
idx: str = 1
dirpath: str = None
skipPyTest: bool = False
genAllureReport: bool = False
while idx < len(args):
arg: str = args[idx]
idx += 1
if arg.lower() == '-g':
genAllureReport = True
elif arg.lower() == '-s':
skipPyTest = True
elif not arg.startswith('-'):
tmppath = os.path.abspath(os.path.join(os.path.dirname(__file__), arg))
if not dirpath and os.path.isdir(tmppath):
dirpath = tmppath
if not dirpath:
exit('异常退出:缺乏启动参数 <目录路径>')
else:
SeleniumTestRunner.loadAll(os.path.join(os.path.dirname(__file__), dirpath), skipPyTest, genAllureReport)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。