MCP/Writing Effective Test Prompts

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!