Install
openclaw skills install api-test-automationAPI接口测试自动化工具,支持REST/GraphQL,包含接口测试、性能测试、契约测试、Mock服务等功能 | API Test Automation for REST/GraphQL with performance, contract testing and Mock services
openclaw skills install api-test-automationAPI接口测试自动化工具,支持REST/GraphQL,包含接口测试、性能测试、契约测试、Mock服务等功能。
本Skill提供完整的API测试解决方案,支持:
api-test-automation/
├── SKILL.md # 本文件
├── README.md # 使用文档
├── requirements.txt # 依赖声明
├── examples/
│ └── run_tests.py # 使用示例
├── tests/
│ └── test_api_suite.py # 单元测试
└── src/
├── __init__.py
├── rest_client.py # REST API 客户端
├── graphql_client.py # GraphQL 客户端
├── performance.py # 性能测试工具
├── contract_tester.py # 契约测试
├── mock_server.py # Mock 服务
└── reporter.py # 报告生成
from api_test_automation import RestClient, GraphQLClient, PerformanceTester
# REST API 测试
client = RestClient(base_url="https://api.example.com")
response = client.get("/users")
assert response.status_code == 200
# GraphQL 测试
graphql = GraphQLClient(endpoint="https://api.example.com/graphql")
result = graphql.query("{ users { id name } }")
MIT
A comprehensive API testing automation tool supporting REST/GraphQL with functional testing, performance testing, contract testing, and Mock services.
This Skill provides a complete API testing solution:
api-test-automation/
├── SKILL.md # This file
├── README.md # Usage documentation
├── requirements.txt # Dependencies
├── examples/
│ └── run_tests.py # Usage examples
├── tests/
│ └── test_api_suite.py # Unit tests
└── src/
├── __init__.py
├── rest_client.py # REST API client
├── graphql_client.py # GraphQL client
├── performance.py # Performance testing tools
├── contract_tester.py # Contract testing
├── mock_server.py # Mock server
└── reporter.py # Report generation
from api_test_automation import RestClient, GraphQLClient, PerformanceTester
# REST API Testing
client = RestClient(base_url="https://api.example.com")
response = client.get("/users")
assert response.status_code == 200
# GraphQL Testing
graphql = GraphQLClient(endpoint="https://api.example.com/graphql")
result = graphql.query("{ users { id name } }")
MIT