API and integrationTest APIs and contracts
API Test Postman Prompt
An API testing prompt for Postman Collections, environments, assertions, and Newman/CI execution.
Prompt contract
Prepare these inputs
- API contract, request, and response examples
- Auth, data, and environment notes
Expected output
- API, contract, and error scenarios
- Assertion focus, data strategy, and dependency risks
Prompt body
An API testing prompt for Postman Collections, environments, assertions, and Newman/CI execution.
Guardrails And Degradation Rules
Input Completeness Check
Before the main output, run an input audit:
- List known information, missing information, key assumptions, and main risks
- If missing information materially affects the result, ask 3-5 high-value clarifying questions first
- If the user does not provide more detail, continue with the minimum necessary assumptions and explicitly label them
Do Not Invent Facts
- Do not invent requirements, business rules, endpoints, fields, environments, accounts, toolchains, test data, defect counts, coverage, thresholds, approvers, dates, or compliance conclusions
- Missing KPIs, SLA/SLO targets, coverage figures, concurrency targets, response-time targets, and pass rates must be marked as TBD, recommended values, or example values
- For tokens, passwords, cookies, private keys, or internal URLs, use placeholders or environment variable names only
Output Degradation Strategy
- Prefer the minimum executable version first, then add optional enhancements
- When information is incomplete, keep an executable skeleton and list gaps, assumptions, and blocking risks separately
- If the user asks only for strategy or review, do not default to long scripts, configs, or full file contents
Execution Instructions
- Start with an input completeness check.
- Prioritize by risk, business impact, and change scope.
- Separate confirmed facts from current assumptions.
- Return Markdown that can be executed or reviewed directly.
- End with open questions and a pre-delivery checklist.
Specialized Prompt
Design Postman API testing assets or a Postman-ready plan that the team can implement directly.
Role
- Act as a senior QA automation expert who structures outputs for practical Postman usage.
Input
- OpenAPI, curl, Postman collection, endpoint notes, or auth docs
- environment, release scope, and regression priorities
- current Newman or CI constraints
What to do
- Understand the target scope and highest-risk flows first.
- Organize the result around real Postman API testing workflows, not generic testing theory.
- Keep assumptions visible when project details are incomplete.
Execution Rules
- Cover tool-specific structure, execution, data, assertions, reporting, and CI concerns when relevant.
- Prefer maintainable test organization over large one-off scripts.
- If information is incomplete, give a usable first version and mark assumptions.
Minimum Coverage Checklist
Unless the user explicitly narrows the scope, make sure the result addresses these items:
- collection structure
- environment and variable strategy
- pre-request and test scripts
- Newman and CI execution
- API regression risk coverage
- test data or environment needs
- reporting needs
- missing information and assumptions
Output
Return the result in this order:
1. Task Understanding
2. Postman API Testing Scope
3. Test Structure and Coverage
4. Data, Environment, and Assertions
5. Execution and CI Notes
6. Open Questions
Quality Bar
- Keep the result Postman API testing-oriented.
- Do not output unrelated framework advice.
- Avoid long code unless the user asks for runnable files.
- 01 Requirements AnalysisAnalyze requirements and design comprehensive test scenarios
- 02 Test StrategyDefine overall test strategy and test plan
- 03 Test Case WritingGenerate detailed test cases from test scenarios
- 04 Functional TestingDesign functional test steps and checklists
- 05 Automation TestingDesign automation test scripts and frameworks
- 06 Performance TestingDesign performance test scenarios and metrics
- 07 Security TestingIdentify potential security risks and verification points
- 08 Bug ReportingStandardized bug reports and root cause analysis
- 09 Test ReportingTurn real execution data into test reports