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

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自动化项目

  • 首先,请安装测试浏览器(至少一款)。

    $ playwright install chromium[可选]
    $ playwright install firefox[可选]
    $ playwright install webkit[可选]
    
  • 创建web自动化测试项目。

    $ lounger --project-web myweb
    
  • 运行项目

    $ cd myweb
    $ pytest
    

API自动化项目

  • 创建api自动化测试项目。

    $ lounger --project-api myapi
    

    注:项目包含通过YAML管理API测试用例,编写规范参考下面的文档。

  • 运行测试

    $ cd myapi
    $ pytest
    

测试报告

  • lounger集成pytest-xhtml,直接生成测试报告。

项目&文档&示例

  1. 如何进行Web自动化测试?👉 阅读文档
  2. 如何进行API自动化测试?👉 阅读文档
  3. 框架集成了哪些功能? 测试示例

对比

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

Uploaded Source

Built Distribution

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

lounger-1.0.0-py3-none-any.whl (71.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for lounger-1.0.0.tar.gz
Algorithm Hash digest
SHA256 21bf8838b1a8d39faf9e579587ab0f5b99469898e8c4b5f34d7e9e3f7f7db1e0
MD5 c980f87fba3d499cd55abeedacb7c4ac
BLAKE2b-256 40140809897d42c889573c99664efb20b96aa6f7e2e34c73026418827830036a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for lounger-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b78eda6a9b3ba3d01b866d56bfa619ed28fb11439edf3572065c1e13a1ff545
MD5 dd4c9b050d889973d1919aa165ebf1e9
BLAKE2b-256 389ce11d9e745b7807cf0bdae893d99658f2fbd942ea426f8e0ca634b96609a8

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