Skip to main content

Next generation automated testing framework.

Project description

lounger

Next generation automated testing framework.

feature

🌟 支持web/api测试。

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

🌟 更好用的数据驱动。

🌟 支持数据库操作。

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

🌟 天然支持API objectsPage objects设计模式。

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项目

  • 创建web自动化测试项目。
$ lounger -pw myweb

2025-10-06 09:33:22 | INFO     | cli.py | Start to create new test project: myweb
2025-10-06 09:33:22 | INFO     | cli.py | CWD: D:\github\seldomQA\lounger

2025-10-06 09:33:22 | INFO     | cli.py | 📁 created folder: reports
2025-10-06 09:33:22 | INFO     | cli.py | 📄 created file: pytest.ini
2025-10-06 09:33:22 | INFO     | cli.py | 📄 created file: conftest.py
2025-10-06 09:33:22 | INFO     | cli.py | 📄 created file: test_web.py
2025-10-06 09:33:22 | INFO     | cli.py | 🎉 Project 'myweb' created successfully.
2025-10-06 09:33:22 | INFO     | cli.py | 👉 Go to the project folder and run 'pytest' to start testing.

API项目

  • 创建api自动化测试项目。
$ lounger -pa 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 myweb  # or myapi
$ pytest
  • 测试报告

示例

tests 提供了大量的示例学习。你会看到不少 seldom 类似的用法。

对比

  • seldom VS lounger

👉详细对比

Project details


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.7.0.tar.gz (48.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lounger-0.7.0-py3-none-any.whl (65.2 kB view details)

Uploaded Python 3

File details

Details for the file lounger-0.7.0.tar.gz.

File metadata

  • Download URL: lounger-0.7.0.tar.gz
  • Upload date:
  • Size: 48.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for lounger-0.7.0.tar.gz
Algorithm Hash digest
SHA256 5be61fe7f22bc448a357cb4cf1de374a70b214652f8ba3b8f044d64e3d606801
MD5 c3594806febe5a2f698e6a50abda51f9
BLAKE2b-256 3f5f4ccb4de745d1047df3252ff53942d96d6533412fddc6ded8afbe1afd5f45

See more details on using hashes here.

File details

Details for the file lounger-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: lounger-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 65.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for lounger-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 252f27327ab3ac0ab26d2fb1d746ece9c37027313ce54848ba5f6c210577a053
MD5 07a8fa4202917f3e789633ad6cfde10a
BLAKE2b-256 4cbb990666c5969952c1580727fba16b51fdc458fb6770f99ef073daa6f40728

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page