Loading...
Loading...
Design API testing plans and test cases covering REST/GraphQL/gRPC interfaces. Default output is Markdown, and Excel/CSV/JSON output can be requested. Use for API testing or api-testing.
npx skill4agent add naodeng/awesome-qa-skills api-testingapi-testing-enprompts/api-testing.mdprompts/api-testing.mdexamples/postman-rest-api/cd examples/postman-rest-api
npm install -g newman
./newman-run.sh| Tool | Applicable Scenario | Advantages |
|---|---|---|
| Postman/Newman | REST API testing | Easy to use, visual, CI/CD integration |
| REST Assured | Java projects | Strongly typed, BDD style |
| Pytest + Requests | Python projects | Flexible, rich ecosystem |
| SuperTest | Node.js projects | Good integration with Express |
| GraphQL Playground | GraphQL API | Designed specifically for GraphQL |
newman: command not found# Install Newman globally
npm install -g newman
# Or use npx (no global installation required)
npx newman run collection.json{{variable}}-enewman run collection.json -e environment.jsonSSL certificate problem# Temporarily disable SSL verification in development environments (not recommended for production)
newman run collection.json --insecure
# Or specify CA certificate
newman run collection.json --ssl-client-cert-list cert-list.jsonError: ETIMEDOUTError: ESOCKETTIMEDOUT# Increase timeout (in milliseconds)
newman run collection.json --timeout-request 30000
# Add request delay
newman run collection.json --delay-request 500pm.response.json()// Add debugging information in Tests
console.log(pm.response.json());// Save data in Tests of the first request
pm.environment.set("userId", pm.response.json().id);
// Use it in subsequent requests
// URL: {{baseUrl}}/users/{{userId}}--delay-request 200--bail