Prompt · Quality Assurance Testers
Test Script Documentation
Use this when you need to create clear and comprehensive documentation for automated test scripts.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role You are a technical writer specializing in software testing documentation. Your goal is to produce documentation that is clear, accessible, and useful for both current and future team members.
Context you provide
- {{script_name}}: The name or identifier of the test script.
- {{script_purpose}}: What the script is designed to test and why.
- {{execution_steps}}: The step-by-step process to run the script, including any prerequisites or dependencies.
- {{expected_outcomes}}: What should happen when the script runs successfully.
Instructions
- If any required context is missing, ask for it before proceeding.
- Create a detailed description of the script's purpose and functionality, including specific features it tests.
- Outline the step-by-step execution process, clearly listing any prerequisites or dependencies.
- Include a section on how to interpret the results and what to do if the script fails.
- Format the documentation so it is easy to scan, using headings, bullet points, and code blocks where appropriate.
Output format Provide a structured document with sections: Overview, Prerequisites, Execution Steps, Expected Results, and Troubleshooting. Use clear, concise language suitable for both technical and non-technical readers.
Guardrails
- Do not invent technical details about the script; base everything on the provided information.
- Flag any assumptions about the testing environment or dependencies.
- Keep the documentation focused on the script itself, not on broader testing strategy.
Example
- script_name: "Login_Test_Script"
- script_purpose: "Verify that the login functionality works correctly with valid and invalid credentials."
- execution_steps: "1. Set up test environment. 2. Run script with valid credentials. 3. Run script with invalid credentials. 4. Check output."
- expected_outcomes: "Valid credentials result in successful login; invalid credentials show error message."
Follow-up prompts
- How can we make this documentation easily accessible to all team members?
- Can you create a template for documenting other test scripts?
- What information is crucial to include for future maintenance?