Next generation automated testing framework.
Project description
lounger
Next generation automated testing framework.
feature
🌟 支持web/api测试。
🌟 提供脚手架生成自动化项目。
🌟 更好用的数据驱动。
🌟 支持数据库操作。
🌟 已经配置好的测试报告(包含截图、日志)。
🌟 天然支持API objects、Page objects设计模式。
framework
lounger不是一个从零开始的自动化测试框架,建立在pytest生态的基础上,提供更加简单、方便的使用体验。
Install
- pip安装。
$ pip install lounger
- 体验最新的项目代码。
$ pip install -U git+https://github.com/SeldomQA/lounger.git@main
scaffold
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.
Web自动化项目
-
首先,请安装测试浏览器(至少一款)。
$ playwright install chromium[可选] $ playwright install firefox[可选] $ playwright install webkit[可选]
-
创建web自动化测试项目。
$ lounger --project-web myweb 2025-11-18 00:05:00 | INFO | cli.py | Start to create new test project: myweb 2025-11-18 00:05:00 | INFO | cli.py | CWD: D:\github\seldomQA\lounger 2025-11-18 00:05:00 | INFO | cli.py | 📁 created folder: reports 2025-11-18 00:05:00 | INFO | cli.py | 📄 created file: conftest.py 2025-11-18 00:05:00 | INFO | cli.py | 📄 created file: pytest.ini 2025-11-18 00:05:00 | INFO | cli.py | 📄 created file: test_dir/__init__.py 2025-11-18 00:05:00 | INFO | cli.py | 📄 created file: test_dir/test_sample.py 2025-11-18 00:05:00 | INFO | cli.py | 🎉 Project 'myweb' created successfully. 2025-11-18 00:05:00 | INFO | cli.py | 👉 Go to the project folder and run 'pytest' to start testing.
-
运行项目
$ cd myweb $ pytest
-
查看报告
API自动化项目
-
创建api自动化测试项目。
$ lounger --project-api myapi 2025-10-22 23:36:31 | INFO | cli.py | Start to create new test project: myapi 2025-10-22 23:36:31 | INFO | cli.py | CWD: D:\github\seldomQA\lounger 2025-10-22 23:36:31 | INFO | cli.py | 📁 created folder: reports 2025-10-22 23:36:31 | INFO | cli.py | 📄 created file: conftest.py 2025-10-22 23:36:31 | INFO | cli.py | 📄 created file: test_api.py 2025-10-22 23:36:31 | INFO | cli.py | 📄 created file: pytest.ini 2025-10-22 23:36:31 | INFO | cli.py | 📄 created file: config/config.yaml 2025-10-22 23:36:31 | INFO | cli.py | 📄 created file: datas/sample/test_sample.yaml 2025-10-22 23:36:31 | INFO | cli.py | 📄 created file: test_dir/__init__.py 2025-10-22 23:36:31 | INFO | cli.py | 📄 created file: test_dir/test_sample.py 2025-10-22 23:36:31 | INFO | cli.py | 🎉 Project 'myapi' created successfully. 2025-10-22 23:36:31 | INFO | cli.py | 👉 Go to the project folder and run 'pytest' to start testing.
注:项目包含通过YAML管理API测试用例,编写规范参考下面的文档。
-
运行测试
$ cd myapi $ pytest
-
测试报告
项目&文档&示例
对比
- seldom VS lounger 👉详细对比
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lounger-0.7.2.tar.gz.
File metadata
- Download URL: lounger-0.7.2.tar.gz
- Upload date:
- Size: 50.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01554940b0ea26562552d381dcd330ab0e3f7b72452943e8b50264c7d0f06ca9
|
|
| MD5 |
7a57018ee99d2c6d5d981f9e4d595849
|
|
| BLAKE2b-256 |
8203bdacb6253467f57c46280108adbc7095ae6c54a294936cce33ba392612a6
|
File details
Details for the file lounger-0.7.2-py3-none-any.whl.
File metadata
- Download URL: lounger-0.7.2-py3-none-any.whl
- Upload date:
- Size: 68.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f612aa2857d62668067f040a54caa2602f905c8a01566d1221eb487ff73d7ed
|
|
| MD5 |
d1ef7a46fd1b0ce64e94a58e8f24fa3e
|
|
| BLAKE2b-256 |
081913e38dd466d0e8d9842326f3e241e850103ecd250902ee36f7447dcf5c06
|