lounger --help
Usage: lounger [OPTIONS] COMMAND [ARGS]...
lounger — next generation automated testing framework.
Examples:
lounger --project-web myproject
lounger --project-api myproject
lounger runner --port 5002 --project ./myapi
Options:
--version Show version.
-pw, --project-web TEXT Create a Web automation test project.
-pa, --project-api TEXT Create an API automation test project.
--help Show this message and exit.
Commands:
runner Start the web test runner.
创建新项目
使用脚手架快速生成项目目录:
# 创建 Web UI 自动化项目
lounger --project-web myweb
# 创建 API 自动化项目
lounger --project-api myapi
运行测试
# 进入项目目录
cd myapi
# 运行所有用例并生成报告
pytest
🧪 web运行器
定制化测试运行器,更加方便的管理和运行测试用例。
lounger runner --port 5001
🚀 lounger web runner → http://127.0.0.0:5001
Project: D:\github\seldomQA\lounger\myapi
Press Ctrl+C to stop.
lounger
Next generation automated testing framework. Supports API, Web, and AI automated testing.
Lounger是一个基于pytest构建的高集成度自动化测试框架。它不仅简化了传统的 API 和 Web UI 自动化流程,还通过内置的 AI 能力与工程化脚手架,帮助开发者与测试工程师快速构建稳定、可扩展的测试套件。✨ 核心特性
lounger命令行工具快速初始化项目结构,支持 API 或 Web 模版。pytest-playwright、pytest-req、pytest-xhtml等插件,一套代码覆盖多种测试场景。pytest-xdist,轻松实现测试用例的并发执行。🏗️ 框架架构
项目采用分层架构设计,确保了底层驱动的稳定性与上层业务的灵活性:
pytest-req(API),pytest-xhtml(Report),auto-wing(Engine).pytest测试框架。🚀 快速开始
安装
lounger命令创建新项目
使用脚手架快速生成项目目录:
运行测试
🧪 web运行器
定制化测试运行器,更加方便的管理和运行测试用例。
浏览器访问:http://127.0.0.0:5001
项目&文档&示例
🤝 贡献与反馈
如果你在使用过程中有任何建议或发现了 Bug,欢迎提交 Issue 或 Pull Request。