Skip to main content

lounger

English | 简体中文

Next generation automated testing framework. Supports API, Web, and AI automated testing.

Lounger is an integrated automation testing framework built on pytest. It simplifies API and Web UI testing and combines AI integrations with project scaffolding to help developers and test engineers build reliable, extensible test suites.


✨ Key Features

  • 🛠️ Ready-to-use scaffolding: Create API or Web automation projects with the lounger CLI.
  • 🌐 Integrated ecosystem: Combine plugins such as pytest-playwright, pytest-req, and pytest-xhtml to cover multiple testing scenarios in one framework.
  • 🤖 AI-powered testing: Integrate AI agents for action-oriented automation and reduce maintenance as user interfaces change.
  • 📊 Enhanced reports: Generate customized HTML reports with execution logs, screenshots, and assertion details.
  • ⚡ Parallel execution: Run tests concurrently with pytest-xdist.
  • 💾 Data-driven testing and caching: Use YAML/JSON test data and share cached values across test cases.
  • 💻 Web Runner: Manage and run test cases through a browser-based workbench.

🏗️ Architecture

The framework has three layers, covering test authoring, execution, and results:

  1. Built-in capabilities: Data-driven testing, project scaffolding, database operations, notifications, caching, random data generation, environment configuration, and utilities.
  2. Ecosystem integrations: pytest-req for HTTP requests and assertions, pytest-xhtml for HTML reports, auto-wing for AI automation, and Web Runner for test cases, tasks, logs, and run history. pytest-playwright, pytest-rerunfailures, and pytest-xdist provide Web UI automation, retries, and parallel execution.
  3. Test execution foundation (pytest): Test discovery, fixtures, parametrization, plugin hooks, and execution lifecycle management.

Install database drivers and dependencies for AI, Web UI automation, and parallel execution as needed.

Lounger architecture: built-in capabilities, ecosystem integrations, and the pytest execution foundation

SVG diagram · Editable draw.io source


🚀 Quick Start

Installation

Install lounger:

pip install lounger

Install the latest code from the repository:

pip install -U git+https://github.com/SeldomQA/lounger.git@main

View the available lounger commands:

$ lounger --help
Usage: lounger [OPTIONS] COMMAND [ARGS]...

  lounger — next generation automated testing framework.

  Examples:
    lounger --project-web myproject
    lounger --project-api myproject
    lounger runner --port 5002 --project ./myapi

Options:
  --version                Show version.
  -pw, --project-web TEXT  Create a Web automation test project.
  -pa, --project-api TEXT  Create an API automation test project.
  --help                   Show this message and exit.

Commands:
  runner  Start the web test runner.

Create a Project

Generate a project with the scaffolding commands:

# Create a Web UI automation project
lounger --project-web myweb

# Create an API automation project
lounger --project-api myapi

🧪 Web Runner / Workbench

Use the browser-based runner to manage and execute your test cases.

# Enter your Web or API project directory
cd myapi
lounger runner

Open the URL printed by the runner in your browser. Press Ctrl+C to stop the service.

Lounger Web Runner workbench


Projects, Documentation, and Examples

  1. How do I write Web automation tests? 👉 Web project documentation
  2. How do I write API automation tests? 👉 API project documentation
  3. What features does the framework provide? Test examples

🤝 Contributions and Feedback

If you have suggestions or find a bug, please open an issue or submit a pull request.


Metadata

Release files for lounger 1.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lounger 1.8.0
File Size Uploaded Provenance Actions
lounger-1.8.0.tar.gz 174.5 kB Without provenance Details for lounger-1.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lounger 1.8.0
File Interpreter ABI Platform Actions
lounger-1.8.0-py3-none-any.whl Python 3 none any Details for lounger-1.8.0-py3-none-any.whl

Total release size: 387.6 kB

Release files / lounger-1.8.0.tar.gz

Download URL lounger-1.8.0.tar.gz
Size 174.5 kB
Tags Source
SHA-256 checksum
How to use checksums
de4ac09bc0a985dd3ba53e8939b216655dda05c9ce246014293f9fd49af913b1
BLAKE2b-256 checksum
How to use checksums
843ad162469ace801ae082cf83e367aa773aac282cba68c3f6fe6fec06fa4bfb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / lounger-1.8.0-py3-none-any.whl

Download URL lounger-1.8.0-py3-none-any.whl
Size 213.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
12c53041143c698238cf867e74515942c04ad8e5f4175125b54177891f3f78a0
BLAKE2b-256 checksum
How to use checksums
918d668c17fa372db6e5da18d1d5bb6c12e384f76ec6864d29097c3a7c83f8b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for lounger 1.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page