lounger


Namelounger JSON
Version 0.2.0 PyPI version JSON
download
home_pageNone
SummaryNext generation automated testing framework.
upload_time2024-09-27 02:35:00
maintainerNone
docs_urlNone
authorbugmaster
requires_python>=3.8
licenseNone
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`测试。

🌟 提供脚手架生成自动化项目。

🌟 更好用的数据驱动。

🌟 支持数据库操作。

🌟 已经配置好的测试报告(包含截图、日志)。

## framework

lounger不是一个从零开始的自动化测试框架,建立在`pytest`生态的基础上,提供更加简单的使用体验。

![](./images/framework.png)

## 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.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "bugmaster",
    "author_email": "defnngj@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/2c/38/553f5924628e721757836af476ab6a69cac298e3366a32efededc76889b1/lounger-0.2.0.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## 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![](./images/framework.png)\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## \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.2.0",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ced644d429d6d719ae1e5448280e8cc14fa86c903455e904d3105ed2bbcd0f9e",
                "md5": "4f072b49e6bcc69cc51777b20784baf7",
                "sha256": "da66ad1a42ccdf2d0eb1a9b918a10ea9aafdb990c74d47ff278fbe08546016f4"
            },
            "downloads": -1,
            "filename": "lounger-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4f072b49e6bcc69cc51777b20784baf7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 42256,
            "upload_time": "2024-09-27T02:34:58",
            "upload_time_iso_8601": "2024-09-27T02:34:58.475946Z",
            "url": "https://files.pythonhosted.org/packages/ce/d6/44d429d6d719ae1e5448280e8cc14fa86c903455e904d3105ed2bbcd0f9e/lounger-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2c38553f5924628e721757836af476ab6a69cac298e3366a32efededc76889b1",
                "md5": "9eac3bdac4166e7a309af7c3ed123eb7",
                "sha256": "e384c35586e63e2fd431522c05a4181d90cfe210ce63faddcc3cb0299e55a84c"
            },
            "downloads": -1,
            "filename": "lounger-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "9eac3bdac4166e7a309af7c3ed123eb7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 33935,
            "upload_time": "2024-09-27T02:35:00",
            "upload_time_iso_8601": "2024-09-27T02:35:00.562631Z",
            "url": "https://files.pythonhosted.org/packages/2c/38/553f5924628e721757836af476ab6a69cac298e3366a32efededc76889b1/lounger-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-27 02:35:00",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "lounger"
}
        
Elapsed time: 0.33759s