Name | lounger JSON |
Version |
0.3.1
JSON |
| download |
home_page | None |
Summary | Next generation automated testing framework. |
upload_time | 2025-09-04 16:06:04 |
maintainer | None |
docs_url | None |
author | bugmaster |
requires_python | >=3.9 |
license | None |
keywords |
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# lounger
Next generation automated testing framework.
## feature
🌟 支持`web`/`api`测试。
🌟 提供脚手架生成自动化项目。
🌟 更好用的数据驱动。
🌟 支持数据库操作。
🌟 已经配置好的测试报告(包含截图、日志)。
🌟 天然支持`API objects`、`Page objects`设计模式。
## framework
lounger不是一个从零开始的自动化测试框架,建立在`pytest`生态的基础上,提供更加简单的使用体验。

## Install
* pip安装。
```shell
$ pip install lounger
```
* 体验最新的项目代码。
```shell
$ pip install -U git+https://github.com/SeldomQA/lounger.git@main
```
此外,如果做Web自动化测试,请单独安装测试浏览器。
```shell
$ playwright install chromium[可选]
$ playwright install firefox[可选]
$ playwright install webkit[可选]
...
```
## scaffold
lounger提供了脚手架,直接创建项目和使用。
```shell
$ 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自动化测试项目。
```shell
$ 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自动化测试项目。
```shell
$ 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
```
* 直接运行测试
```shell
$ cd myweb # or myapi
$ pytest
```
* 测试报告

## 示例
[tests](./tests/) 提供了大量的示例学习。你会看到不少 seldom 类似的用法。
## 对比
* seldom VS lounger
👉[详细对比](./seldom_vs_lounger.md)
Raw data
{
"_id": null,
"home_page": null,
"name": "lounger",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": null,
"author": "bugmaster",
"author_email": "defnngj@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/d0/e1/fd1b0269adb667c795f931c286c0922502bb91389c2e5e0420e6debd634a/lounger-0.3.1.tar.gz",
"platform": null,
"description": "# lounger\n\nNext generation automated testing framework.\n\n## feature\n\n\ud83c\udf1f \u652f\u6301`web`/`api`\u6d4b\u8bd5\u3002\n\n\ud83c\udf1f \u63d0\u4f9b\u811a\u624b\u67b6\u751f\u6210\u81ea\u52a8\u5316\u9879\u76ee\u3002\n\n\ud83c\udf1f \u66f4\u597d\u7528\u7684\u6570\u636e\u9a71\u52a8\u3002\n\n\ud83c\udf1f \u652f\u6301\u6570\u636e\u5e93\u64cd\u4f5c\u3002\n\n\ud83c\udf1f \u5df2\u7ecf\u914d\u7f6e\u597d\u7684\u6d4b\u8bd5\u62a5\u544a\uff08\u5305\u542b\u622a\u56fe\u3001\u65e5\u5fd7\uff09\u3002\n\n\ud83c\udf1f \u5929\u7136\u652f\u6301`API objects`\u3001`Page objects`\u8bbe\u8ba1\u6a21\u5f0f\u3002\n\n## framework\n\nlounger\u4e0d\u662f\u4e00\u4e2a\u4ece\u96f6\u5f00\u59cb\u7684\u81ea\u52a8\u5316\u6d4b\u8bd5\u6846\u67b6\uff0c\u5efa\u7acb\u5728`pytest`\u751f\u6001\u7684\u57fa\u7840\u4e0a\uff0c\u63d0\u4f9b\u66f4\u52a0\u7b80\u5355\u7684\u4f7f\u7528\u4f53\u9a8c\u3002\n\n\n\n## Install\n\n* pip\u5b89\u88c5\u3002\n\n```shell\n$ pip install lounger\n```\n\n* \u4f53\u9a8c\u6700\u65b0\u7684\u9879\u76ee\u4ee3\u7801\u3002\n\n```shell\n$ pip install -U git+https://github.com/SeldomQA/lounger.git@main\n```\n\n\u6b64\u5916\uff0c\u5982\u679c\u505aWeb\u81ea\u52a8\u5316\u6d4b\u8bd5\uff0c\u8bf7\u5355\u72ec\u5b89\u88c5\u6d4b\u8bd5\u6d4f\u89c8\u5668\u3002\n\n```shell\n$ playwright install chromium[\u53ef\u9009]\n$ playwright install firefox[\u53ef\u9009]\n$ playwright install webkit[\u53ef\u9009]\n...\n```\n\n## scaffold\n\nlounger\u63d0\u4f9b\u4e86\u811a\u624b\u67b6\uff0c\u76f4\u63a5\u521b\u5efa\u9879\u76ee\u548c\u4f7f\u7528\u3002\n\n```shell\n$ lounger --help\n\nUsage: lounger [OPTIONS]\n\n lounger CLI.\n\nOptions:\n --version Show version.\n -pw, --project-web TEXT Create an web automation test project.\n -pa, --project-api TEXT Create an api automation test project.\n --help Show this message and exit.\n```\n\n* \u521b\u5efaweb\u81ea\u52a8\u5316\u6d4b\u8bd5\u9879\u76ee\u3002\n\n```shell\n$ lounger -pw myweb\n\n2024-08-17 22:05:04 | INFO | cli.py | Start to create new test project: myweb\n2024-08-17 22:05:04 | INFO | cli.py | CWD: D:\\github\\seldomQA\\lounger\n2024-08-17 22:05:04 | INFO | cli.py | created folder: myweb\n2024-08-17 22:05:04 | INFO | cli.py | created folder: myweb\\reports\n2024-08-17 22:05:04 | INFO | cli.py | created file: myweb\\test_web.py\n2024-08-17 22:05:04 | INFO | cli.py | created file: myweb\\pytest.ini\n```\n\n* \u521b\u5efaapi\u81ea\u52a8\u5316\u6d4b\u8bd5\u9879\u76ee\u3002\n\n```shell\n$ lounger -pa myapi\n\n2024-08-17 22:05:31 | INFO | cli.py | Start to create new test project: myapi\n2024-08-17 22:05:31 | INFO | cli.py | CWD: D:\\github\\seldomQA\\lounger\n\n2024-08-17 22:05:31 | INFO | cli.py | created folder: myapi\n2024-08-17 22:05:31 | INFO | cli.py | created folder: myapi\\reports\n2024-08-17 22:05:31 | INFO | cli.py | created file: myapi\\test_api.py\n2024-08-17 22:05:31 | INFO | cli.py | created file: myapi\\pytest.ini\n```\n\n* \u76f4\u63a5\u8fd0\u884c\u6d4b\u8bd5\n\n```shell\n$ cd myweb # or myapi\n$ pytest\n```\n\n* \u6d4b\u8bd5\u62a5\u544a\n\n\n\n## \u793a\u4f8b\n\n[tests](./tests/) \u63d0\u4f9b\u4e86\u5927\u91cf\u7684\u793a\u4f8b\u5b66\u4e60\u3002\u4f60\u4f1a\u770b\u5230\u4e0d\u5c11 seldom \u7c7b\u4f3c\u7684\u7528\u6cd5\u3002\n\n## \u5bf9\u6bd4\n\n* seldom VS lounger\n\n\ud83d\udc49[\u8be6\u7ec6\u5bf9\u6bd4](./seldom_vs_lounger.md)\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Next generation automated testing framework.",
"version": "0.3.1",
"project_urls": {
"Homepage": "https://github.com/SeldomQA/lounger",
"Repository": "https://github.com/SeldomQA/lounger"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "5999215fb221362ae1fbd5f8044cdaa9a493b8fad48baf7e041aac9169c1c3f8",
"md5": "da9c9e8e6295b7e20bd514fa1ab2e021",
"sha256": "8982448bc2281a413ce6aee7f2d308272858ac59602d27a3ab4518696fea41f6"
},
"downloads": -1,
"filename": "lounger-0.3.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "da9c9e8e6295b7e20bd514fa1ab2e021",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 41821,
"upload_time": "2025-09-04T16:06:03",
"upload_time_iso_8601": "2025-09-04T16:06:03.283458Z",
"url": "https://files.pythonhosted.org/packages/59/99/215fb221362ae1fbd5f8044cdaa9a493b8fad48baf7e041aac9169c1c3f8/lounger-0.3.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "d0e1fd1b0269adb667c795f931c286c0922502bb91389c2e5e0420e6debd634a",
"md5": "4871a7a50133c55fef134d6cb99de2c1",
"sha256": "fb5d0cc681ae380f070dcbb0e805607f9efdc63b8389fe1723ebe28e16781220"
},
"downloads": -1,
"filename": "lounger-0.3.1.tar.gz",
"has_sig": false,
"md5_digest": "4871a7a50133c55fef134d6cb99de2c1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 32867,
"upload_time": "2025-09-04T16:06:04",
"upload_time_iso_8601": "2025-09-04T16:06:04.278595Z",
"url": "https://files.pythonhosted.org/packages/d0/e1/fd1b0269adb667c795f931c286c0922502bb91389c2e5e0420e6debd634a/lounger-0.3.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-04 16:06:04",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "SeldomQA",
"github_project": "lounger",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "lounger"
}