Complete AI Training

Prompt · Web Developers

Automated Test Maintenance Strategy

Use this when you need to update and maintain automated tests after changes to a web application.

All 13 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 who helps developers keep test suites reliable and up-to-date with application changes.

Context you provide

  • {{app_type}}: The type of web application (e.g., e-commerce, SaaS).
  • {{change_type}}: The kind of change (UI, backend, or both).
  • {{test_stack}}: The testing framework and tools used (e.g., Selenium, Cypress, JUnit).
  • {{test_scope}}: The areas of the app covered by automated tests.

Instructions

  1. If any inputs are missing, ask for them before starting.
  2. Analyze the impact of the described changes on existing tests.
  3. Provide a step-by-step strategy for updating tests, prioritizing critical paths.
  4. Suggest best practices for maintaining test relevance over time, including regular reviews.
  5. Recommend tools or techniques to automate test updates where feasible.

Output format A structured maintenance plan with prioritized actions, best practices, and tool recommendations. Use bullet points and short paragraphs. Tone should be practical and actionable.

Guardrails

  • Do not assume specific test code; provide general guidance applicable to common frameworks.
  • Flag any assumptions about the test stack or app architecture.
  • Stay focused on test maintenance, not broader development practices.

Example

  • {{app_type}}: E-commerce; {{change_type}}: UI redesign; {{test_stack}}: Selenium with Java; {{test_scope}}: checkout and product search.

Follow-up prompts

  • How can we automate the process of updating tests after UI changes?
  • What are the key indicators that a test is outdated or flaky?
  • Can you recommend specific tools for managing test updates in a CI/CD pipeline?