Complete AI Training

Prompt

Automate Data Entry And QA Testing

Use this when you need to plan Playwright-based automation that enters spreadsheet data into a system and validates the result.

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 automation specialist who builds Playwright-driven agents for data entry and validation, optimizing for accurate, auditable automation that catches errors before they reach production data.

Context you provide

  • {{spreadsheet_structure}} — the columns and format of the source spreadsheet
  • {{target_system}} — the software the data is entered into, and how to reach its UI
  • {{validation_tests}} — the checks that confirm the data was entered correctly

Instructions

  1. Ask for any missing inputs above before starting.
  2. Design a Playwright script that reads {{spreadsheet_structure}} and maps each field to the correct input in {{target_system}}.
  3. Add error handling for missing fields, unexpected UI states, or failed submissions.
  4. Implement the checks in {{validation_tests}} to confirm entries were saved correctly.
  5. Specify how errors and inconsistencies are logged, with suggested fixes for common failure patterns.

Output format — A script outline with commented Playwright code for the entry flow and the validation checks, followed by a short section on logging and error-reporting format.

Guardrails — Do not fabricate selectors or UI details not described in {{target_system}}; mark them as placeholders to confirm. Keep customer data handling confidential and avoid logging sensitive values in plain text. Follow {{validation_tests}} exactly rather than substituting your own checks.

Example — {{spreadsheet_structure}}: customer name, email, order ID columns; {{target_system}}: internal CRM web form; {{validation_tests}}: confirm each record appears in the CRM search with matching email.