Writing Effective Test Prompts
Learn how to write concise, effective prompts for the desplega.ai MCP Server to generate high-quality automated tests.
Best Practices for MCP Prompts
Be Specific & Concise
- • Include exact URLs and page names, to facilitate navigation.
- • Specify the exact feature to test
- • Define clear success criteria
- • Mention test dependencies, if any
- • Keep prompts under 50 words when possible
Use AAA Framework
- • Arrange: Set up test conditions
- • Act: Perform the action
- • Assert: Verify the outcome
- • Structure prompts with this pattern
Example Prompts
Good Prompt
use qa-use mcp
Test tagging functionality on our settings page
Verify a user can execute a CRUD action on a tag; make sure to remove all tags after the test.
Why it works: clear action, defined outcome
Poor Prompt
Checkout my last feature, it should work perfectly.
Why it fails: Too vague, no specific outcome
Pro Tips
Prompt Optimization
- • Start with "use qa-use mcp" every time
- • Include specific URLs and page names
- • Define clear success criteria
- • Use the AAA framework structure
- • Test one feature at a time
Workflow Best Practices
- • Always search existing tests first
- • Create tests incrementally
- • Monitor test results closely
- • Update tests when features change
- • Use descriptive test names
Next Steps
Now that you know how to write effective prompts, you're ready to start creating and running tests!
Related Guides
MCP Server Guide
Power your code generation setup with efficient QA testing. The Desplega.ai MCP Server integrates AI-powered browser automation and QA testing directly into your development environment.
Setup with Cursor
Step-by-step guide to integrate the MCP server with Cursor IDE for AI-powered QA testing directly in your code editor.
MCP Workflows
Design and implement efficient testing workflows using the MCP server. Learn how to create scalable and maintainable test automation pipelines.