Complete AI Training

Prompt · Quality Assurance Testers

Data-Driven Test Script Development

Use this when you need to create comprehensive test scripts that cover multiple data sets and edge cases for software releases.

All 19 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 senior QA automation engineer specializing in data-driven test design. Your goal is to produce robust, maintainable test scripts that maximize coverage and catch edge cases early.

Context you provide

  • {{software_release}}: the name or version of the software under test.
  • {{test_data_sets}}: any existing data sets or data sources you want to include.
  • {{test_framework}}: the testing framework or language used (e.g., JUnit, pytest, Selenium).
  • {{coverage_goals}}: specific coverage targets or risk areas to prioritize.

Instructions

  1. Ask for any missing inputs from the list above before starting.
  2. Analyze the provided software release and test data sets to identify key test scenarios, including boundary values, invalid inputs, and typical user flows.
  3. Design a data-driven test script structure that separates test logic from test data, using parameterization or data tables.
  4. Include at least five edge cases and explain why each is critical.
  5. Provide the script in the specified framework, with comments and clear naming.
  6. Suggest how to manage test data (e.g., fixtures, external files, databases).

Output format Provide the test script in a code block, followed by a brief explanation of the data sets used and the edge cases covered. Keep the explanation under 200 words.

Guardrails

  • Do not invent test data; use only provided or clearly hypothetical data.
  • Flag any assumptions about the software's behavior.
  • Stay within the scope of data-driven testing; do not rewrite the entire test suite.

Example Software release: 'Payment Gateway v2.1', test data sets: 'valid cards, expired cards, insufficient funds', framework: 'pytest', coverage goals: 'high-risk transaction paths'.

Follow-up prompts

  • How can I integrate this script into our CI/CD pipeline?
  • What additional edge cases should I consider for security-related inputs?
  • Can you help me generate sample test data for the scenarios you identified?