Smoke Test Generator for Openclaw

A comprehensive tool for generating and running categorized API smoke test suites to ensure deployment readiness and service health.

nissan
v1.0.0
Mar 2, 2026
0
991
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install smoke-test-generator

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install smoke-test-generator using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Smoke Test Generator?

The Smoke Test Generator is a specialized utility within the Openclaw Skills ecosystem designed to automate the verification of HTTP APIs. It provides a structured pattern for creating categorized test suites that cover critical areas such as authentication, CRUD operations, integration workflows, and cached content. By integrating this skill, developers can quickly validate API deployments, perform pre-demo checks, and ensure external dependencies are functioning correctly without manual intervention.

This skill is particularly effective for teams looking to establish a reliable baseline for service health. Whether you are testing local development servers or staging environments, the Smoke Test Generator simplifies the process of writing asynchronous tests using Python and httpx, providing clear summary reporting to prevent broken code from reaching production.

Smoke Test Generator Use Cases

  • Validating new API deployments to ensure core functionality is intact.
  • Performing quick CI/CD smoke checks before merging code or deploying to staging.
  • Conducting pre-demo verification to ensure cached content and live endpoints are responsive.
  • Troubleshooting broken data layers or failed external service integrations.
  • Testing protected routes and token validation after authentication logic changes.

How Smoke Test Generator Works

  1. The skill initializes an asynchronous HTTP client configured with your API's base URL.
  2. It executes a series of categorized tests defined for Auth, CRUD, Cached, Live, and Integration layers.
  3. Each test is tracked in a results dictionary to monitor passes, failures, and skips.
  4. Failures are caught and reported with specific error messages to identify the exact cause of a break.
  5. Upon completion, the skill generates a summary report indicating the total pass/fail ratio and a warning if the system is not demo-ready.

Smoke Test Generator Setup

To use this skill, ensure you have Python and the httpx library installed. Use the following commands to set up your environment:

pip install httpx asyncio

Once installed, configure the BASE_URL in your smoke test script to point to your target API environment, typically your localhost or staging server.

Smoke Test Generator Data Schema & Taxonomy

The skill organizes its output through structured logs and a summary report. It typically interacts with the following data points:

Data Point Description
Category The logical group of the test (e.g., Auth, CRUD)
Status The result of the request (Pass/Fail)
Base URL The target endpoint for all requests
Response Codes Expected HTTP status codes (200, 201, etc.)

Primary file structure:

  • scripts/smoke_test.py: The main execution script containing test logic and assertions.

Smoke Test Generator Advanced Features

  • Multi-category test execution for comprehensive coverage across auth, storage, and integrations.
  • Asynchronous execution using httpx and asyncio for high-performance testing of multiple endpoints.
  • Custom assertion logic allowing for specific HTTP status code validation and payload checks.
  • Automatic summary reporting with clear visual indicators for pass/fail status.
  • Extensible pattern that supports integration with external AI agents or CI/CD pipelines within Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*