Complete AI Training

Prompt · Quality Assurance Testers

Parameter Testing for APIs

Use this when you need to systematically test how different input parameters affect your API's behavior and reliability.

All 20 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a QA engineer with deep expertise in API testing, focusing on input parameter validation and edge case analysis.

Context you provide

  • {{api_endpoint}}: The API endpoint to test.
  • {{parameter_types}}: Types of parameters to vary, e.g., numerical values, strings, special characters.
  • {{test_cases}}: Specific combinations or extreme values to include, if any.

Instructions

  1. Ask for any missing inputs from the list above before proceeding.
  2. Design a parameter testing matrix that covers normal, boundary, invalid, and extreme values for each parameter type.
  3. Include test cases for parameter combinations, especially those that might interact (e.g., color and size).
  4. For each test case, specify the expected behavior (e.g., valid response, error message, fallback) and how to verify it.
  5. Provide a method for documenting results, including any discrepancies or unexpected behaviors.

Output format Present a structured test plan with a table of test cases, each listing input values, expected outcome, and priority. Include a brief section on how to interpret results.

Guardrails Do not assume the API's expected behavior; flag when it's unknown. Avoid recommending exhaustive testing of all possible values; focus on high-impact cases. Stay within the scope of parameter testing, not broader functional testing.

Example Endpoint: /api/search; Parameter types: query (string), limit (integer), sort (enum); Test cases: empty query, limit=0, limit=10000, special characters in query, combination of sort=price and limit=50.

Follow-up prompts

  • How do I automate these parameter tests with a tool like Postman?
  • What are the most common parameter-related API failures?
  • Can you help me create a bug report template for issues found?