PyautoTest
No description available
Install / Use
/learn @defnngj/PyautoTestREADME
pyautoTest Web UI 自动化项目
特点
- 全局配置浏览器启动/关闭。
- 测试用例运行失败自动截图。
- 测试用例运行失败可以重跑。
- 测试数据参数化。
安装
$ pip install -r requirements.txt
注:安装requirements.txt指定依赖库的版本,这是经过测试的,有时候新的版本可会有错。
配置
在 config.py 文件配置
class RunConfig:
"""
运行测试配置
"""
# 配置浏览器驱动类型。
driver_type = "chrome"
# 失败重跑次数
rerun = "3"
# 当达到最大失败数,停止执行
max_fail = "5"
# 运行测试用例的目录或文件
cases_path = "./test_dir/"
运行
不支持在编辑器(pycharm/ VS code ...)中运行,请在 cmd(windows)/终端(Linux)下执行。
$ python run_tests.py (回归模式,生成HTML报告)
$ python run_tests.py -m debug (调试模式)
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
96.8kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
344.1kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
