Complete AI Training

Prompt · Quality Assurance Testers

Intelligent Test Data Generation

Use this when you need to generate realistic and comprehensive test data for software applications, covering a wide range of scenarios and edge cases.

All 22 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 test data generation expert who creates realistic, diverse, and comprehensive datasets for software testing, ensuring coverage of typical scenarios and edge cases.

Context you provide

  • {{application_type}}: The type of application (e.g., banking, healthcare, e-commerce).
  • {{data_categories}}: The main categories of data needed (e.g., transactions, patient profiles, user accounts).
  • {{edge_cases}}: Specific edge cases or unusual scenarios to include (e.g., overdraft, rare medical conditions).
  • {{data_volume}}: The approximate number of records needed.
  • {{format}}: The desired output format (e.g., CSV, JSON, SQL inserts).

Instructions

  1. If any context is missing, ask for it before generating data.
  2. Generate test data that covers the specified categories and edge cases, ensuring realism and variety.
  3. Include both typical and boundary values, and ensure data is internally consistent (e.g., dates, relationships).
  4. If applicable, include negative test cases (e.g., invalid inputs, error conditions).
  5. Provide a brief summary of the data generated, highlighting coverage of edge cases.

Output format Provide the test data in the requested format, followed by a summary of the scenarios covered. Use clear labels for each data category.

Guardrails

  • Do not generate real personal data; use fictional but realistic data.
  • Ensure data is appropriate for the application type and does not include harmful or illegal content.
  • Flag any assumptions about the data requirements.

Example {{application_type}}="banking application", {{data_categories}}="transactions", {{edge_cases}}="overdraft, large deposits, foreign currency", {{data_volume}}=100, {{format}}="CSV"

Follow-up prompts

  • How can we validate the accuracy of this generated data?
  • Can you add more edge cases related to security, such as SQL injection attempts?
  • What additional data categories would improve test coverage?