Next generation automated testing framework.
Project description
lounger
Next generation automated testing framework.
feature
🌟 支持web
/api
测试。
🌟 提供脚手架生成自动化项目。
🌟 更好用的数据驱动。
🌟 支持数据库操作。
🌟 已经配置好的测试报告(包含截图、日志)。
framework
lounger不是一个从零开始的自动化测试框架,建立在pytest
生态的基础上,提供更加简单的使用体验。
Install
- pip安装。
$ pip install lounger
- 体验最新的项目代码。
$ pip install -U git+https://github.com/SeldomQA/lounger.git@main
此外,如果做Web自动化测试,请单独安装测试浏览器。
$ playwright install chromium[可选]
$ playwright install firefox[可选]
$ playwright install webkit[可选]
...
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自动化测试项目。
$ lounger -pw myweb
2024-08-17 22:05:04 | INFO | cli.py | Start to create new test project: myweb
2024-08-17 22:05:04 | INFO | cli.py | CWD: D:\github\seldomQA\lounger
2024-08-17 22:05:04 | INFO | cli.py | created folder: myweb
2024-08-17 22:05:04 | INFO | cli.py | created folder: myweb\reports
2024-08-17 22:05:04 | INFO | cli.py | created file: myweb\test_web.py
2024-08-17 22:05:04 | INFO | cli.py | created file: myweb\pytest.ini
- 创建api自动化测试项目。
$ lounger -pa myapi
2024-08-17 22:05:31 | INFO | cli.py | Start to create new test project: myapi
2024-08-17 22:05:31 | INFO | cli.py | CWD: D:\github\seldomQA\lounger
2024-08-17 22:05:31 | INFO | cli.py | created folder: myapi
2024-08-17 22:05:31 | INFO | cli.py | created folder: myapi\reports
2024-08-17 22:05:31 | INFO | cli.py | created file: myapi\test_api.py
2024-08-17 22:05:31 | INFO | cli.py | created file: myapi\pytest.ini
- 直接运行测试
$ cd myweb # or myapi
$ pytest
示例
tests 提供了大量的示例学习。你会看到不少 seldom 类似的用法。
对比
- 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
lounger-0.2.0.tar.gz
(33.9 kB
view details)
Built Distribution
lounger-0.2.0-py3-none-any.whl
(42.3 kB
view details)
File details
Details for the file lounger-0.2.0.tar.gz
.
File metadata
- Download URL: lounger-0.2.0.tar.gz
- Upload date:
- Size: 33.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e384c35586e63e2fd431522c05a4181d90cfe210ce63faddcc3cb0299e55a84c |
|
MD5 | 9eac3bdac4166e7a309af7c3ed123eb7 |
|
BLAKE2b-256 | 2c38553f5924628e721757836af476ab6a69cac298e3366a32efededc76889b1 |
File details
Details for the file lounger-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: lounger-0.2.0-py3-none-any.whl
- Upload date:
- Size: 42.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da66ad1a42ccdf2d0eb1a9b918a10ea9aafdb990c74d47ff278fbe08546016f4 |
|
MD5 | 4f072b49e6bcc69cc51777b20784baf7 |
|
BLAKE2b-256 | ced644d429d6d719ae1e5448280e8cc14fa86c903455e904d3105ed2bbcd0f9e |