Development
API 契约压力测试器
根据 OpenAPI 3.x 规范批量生成边界值测试请求,并可选发送到真实后端以发现契约不一致。
json· JSON 结果打开工具
快速开始
用三种语言从你的代码中调用此工具。
cURL
curl -X POST 'https://api.elysiatools.com/zh/api/tools/api-contract-stress-tester' \
-H 'Content-Type: application/json' \
-d '{"openApiSpec":"openapi: 3.0.0\npaths:\n /users:\n post:\n requestBody:\n required: true\n content:\n application/json:\n schema:\n type: object\n required: [email, role]\n properties:\n email: { type: string, minLength: 5 }\n role: { type: string, enum: [admin, member] }\n age: { type: integer, minimum: 18 }\n responses:\n \"201\": { description: created }\n \"400\": { description: bad request }\n","baseUrl":"https://api.example.com","executeRequests":false,"authorizationHeader":"Bearer <token>","maxCasesPerField":3,"timeoutMs":8000}'