Skip to main content

Next generation automated testing framework.

Project description

lounger

Next generation automated testing framework.

feature

🌟 支持web/api测试。

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

🌟 更好用的数据驱动。

🌟 支持数据库操作。

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

framework

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

Install

正在开发中,暂不提供pip安装。

git clone https://github.com/SeldomQA/lounger
cd lounger
pip install .

or

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 类似的用法。

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

Uploaded Source

Built Distribution

lounger-0.1.0-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lounger-0.1.0.tar.gz
  • Upload date:
  • Size: 29.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for lounger-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ee99f0095bc094bf8fbb3b4c34067025d05c9f47e21371a8c1f724b69a8cd428
MD5 b37a8c6ac3e9f557aa79879d2ae65fd3
BLAKE2b-256 af3335b4968c287af430934628157daa2cf158a957c33866b1c56c990533b24e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lounger-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 37.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for lounger-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d5149bb67700aac543adfda3c02aad69ebe3529e45afc5c373541ad4c8aee8ea
MD5 ed1fe1f39d3e20515f6fc50447a039f4
BLAKE2b-256 f454c5a01542b2c553b35ca34f1fcf75231fe773c80db4dc494cd414cbbfd7ce

See more details on using hashes here.

Supported by

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