test-case-generator

Generates executable Meeting Server API test cases with login, setup, and teardown fixtures.

2|Updated May 30, 2026
One-click install
npx skills add https://github.com/opensourceways/integration-tests --skill test-case-generator-opensourceways
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: test-case-generator
Source: https://github.com/opensourceways/integration-tests/tree/main/services/meeting-server/test-case-generator
Command: npx skills add https://github.com/opensourceways/integration-tests --skill test-case-generator-opensourceways

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, pytest, cryptography, and includes references (resource) components.

What problem does it solve? Writing integration test cases for a meeting scheduling system requires repetitive boilerplate: login flows with RSA-encrypted credentials, creating prerequisite meetings, and cleaning up test data. This Skill generates ready-to-run Meeting Server test cases in both Markdown (agent-exec YAML) and Python pytest formats, enforcing strict rules so no hardcoded credentials or leftover test data ever appear. ## Core Features & Use Cases - Dual-format test case generation: Produces human-readable Markdown tables with agent-executable YAML blocks, or Python pytest scripts with reusable fixtures. - Mandatory setup/teardown injection: Automatically weaves login (via TEST_ACCOUNT/TEST_PASSWORD environment variables), meeting creation, and guaranteed deletion cleanup into every case that needs an existing meeting. - Domain-specific coverage: Handles recurring (cycle) meetings, time-conflict avoidance, meeting state-machine transitions, and auth/permission cases, with IDs like TC-MEETING-DELETE-001. - Use Case: Given a Meeting Server API document for the delete-meeting endpoint, generate a full suite of P0/P1 cases where each case logs in, creates a meeting dated the first of next month, runs the delete, and force-cleans up even on failure. ## Quick Start Generate Meeting Server test cases for the delete meeting API using the test-case-generator skill, with login credentials read from TEST_ACCOUNT and TEST_PASSWORD environment variables.

Frequently Asked Questions about test-case-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate test cases for a meeting scheduling API?▼

Provide the Meeting Server interface documentation, PRD, or UI prototype as input, and the Skill outputs structured test cases with 8-field tables and agent-executable YAML blocks. Each case covering an existing meeting automatically includes login, meeting creation, and cleanup steps.

How do test cases handle login credentials securely?▼

All login steps read credentials exclusively from the TEST_ACCOUNT and TEST_PASSWORD environment variables, never hardcoded literals. Python mode uses os.environ lookups and skips the case if the variables are unset; Markdown mode declares the requirement in preconditions.

Why must setup meetings be scheduled for the first of next month?▼

Dating setup meetings on the next month's first day keeps them far in the future, preventing business rules like 'ongoing meetings cannot be deleted' from blocking teardown. Near-term relative dates like today+2 historically caused cleanup failures and leftover data.

Can generated test cases run as Python pytest scripts?▼

Yes, Python mode produces pytest files using login_creds and created_meeting fixtures with yield-based teardown that deletes meetings even when assertions fail. It uses requests, the cryptography library for RSA password encryption, and stdlib datetime for date calculation.

What happens if a delete-meeting test case fails mid-execution?▼

The teardown block always runs with always_run: true and attempts deletion with ignore_errors: true, accepting 200 or 404. This double safety net ensures no orphaned meetings remain even when the tested delete already succeeded or the case errored.

What are the limitations of this test case generator?▼

It only produces Meeting Server test cases and refuses unrelated requests. It requires known inputs like the API host, path prefix, and meeting field constraints; missing information halts generation rather than guessing, and concurrency cases require Python mode.