🐛 Modifying the HTML report is ineffective.
Next generation automated testing framework.
🌟 支持web/api测试。
web
api
🌟 提供脚手架生成自动化项目。
🌟 更好用的数据驱动。
🌟 支持数据库操作。
🌟 已经配置好的测试报告(包含截图、日志)。
🌟 天然支持API objects、Page objects设计模式。
API objects
Page objects
lounger不是一个从零开始的自动化测试框架,建立在pytest生态的基础上,提供更加简单、方便的使用体验。
pytest
$ pip install lounger
$ pip install -U git+https://github.com/SeldomQA/lounger.git@main
lounger提供了脚手架,直接创建项目和使用。
$ lounger --help Usage: lounger [OPTIONS] lounger CLI. Options: --version Show version. -pw, --project-web TEXT Create an Web automation test project. -pa, --project-api TEXT Create an API automation test project. --help Show this message and exit.
首先,请安装测试浏览器(至少一款)。
$ playwright install chromium[可选] $ playwright install firefox[可选] $ playwright install webkit[可选]
创建web自动化测试项目。
$ lounger --project-web myweb
运行项目
$ cd myweb $ pytest
创建api自动化测试项目。
$ lounger --project-api myapi
注:项目包含通过YAML管理API测试用例,编写规范参考下面的文档。
运行测试
$ cd myapi $ pytest
pytest-xhtml
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
lounger
Next generation automated testing framework.
feature
🌟 支持
web/api测试。🌟 提供脚手架生成自动化项目。
🌟 更好用的数据驱动。
🌟 支持数据库操作。
🌟 已经配置好的测试报告(包含截图、日志)。
🌟 天然支持
API objects、Page objects设计模式。framework
lounger不是一个从零开始的自动化测试框架,建立在
pytest生态的基础上,提供更加简单、方便的使用体验。Install
scaffold
lounger提供了脚手架,直接创建项目和使用。
Web自动化项目
首先,请安装测试浏览器(至少一款)。
创建web自动化测试项目。
运行项目
API自动化项目
创建api自动化测试项目。
运行测试
测试报告
pytest-xhtml,直接生成测试报告。项目&文档&示例
对比