API Load Testing Generator

中级testing最低上下文:32K

Generates comprehensive load testing scripts and configurations for APIs. Supports k6, Locust, Artillery, and JMeter formats. Creates realistic traffic patterns, ramp-up scenarios, and threshold definitions. Includes analysis templates for identifying bottlenecks and capacity planning.

使用场景

  • Generating k6 scripts for REST API load testing
  • Creating Locust scenarios with realistic user behavior patterns
  • Designing ramp-up and stress test profiles for capacity planning
  • Building CI-integrated performance regression tests
  • Analyzing API response time distribution and error rates

示例提示词

Generate a k6 load testing script for our e-commerce API.

Endpoints to test:
- GET /api/products (list products with pagination)
- GET /api/products/:id (product detail)
- POST /api/cart/items (add to cart, requires auth)
- POST /api/orders (create order, requires auth)

Scenarios:
1. Smoke test: 5 VUs for 1 minute
2. Load test: ramp up to 100 VUs over 5 min, sustain 10 min, ramp down
3. Stress test: ramp to 500 VUs to find breaking point

Include:
- Realistic think times between requests
- Auth token handling
- Custom thresholds (p95 < 500ms, error rate < 1%)
- Custom metrics for business transactions
- HTML report generation

推荐模型

兼容工具

claude-codecursorkiroany

模态

输入: text, code
输出: code, text

相关 Skills

作者

OpenModels Community

@openmodelsrun