Skip to main content
Learn how to write better prompts, get more accurate results, and use the AI Assistant effectively.

Writing Better Prompts

Be Specific

❌ “Create a test”✅ “Create a test for login with OAuth via Google on mobile”

Provide Context

❌ “Generate tests”✅ “Generate smoke tests for the checkout flow in our e-commerce app”

Include Requirements

❌ “Test the API”✅ “Test the POST /users API endpoint with valid and invalid email formats”

Specify Format

❌ “Create tests for signup”✅ “Create 3 separate tests for signup: happy path, invalid email, and weak password”

Iteration Techniques

1

Start Broad

Begin with a general request:
2

Review and Refine

Ask the AI to adjust:
3

Expand or Split

Modify scope as needed:
4

Save Template

Once you’re happy with the format, use it as a reference:

Do’s and Don’ts

Provide examples of what you want
Mention your product type or industry
Specify test priorities and tags
Ask for explanations if unclear
Request test data to be included
Mention platform (web, mobile, API)
Reference user stories or requirements
Ask the AI to review existing tests

Advanced Techniques

Upload or paste requirements directly:
Upload API documentation:
Use existing tests as templates:
Get suggestions:
Work with multiple tests:

Common Patterns

Pattern 1: Feature-Complete Testing

Pattern 2: From User Stories

Pattern 3: API Testing

Pattern 4: Regression Suite

Quality Checklist

Before saving AI-generated tests, verify:
Title clearly describes what is being tested
Steps are specific and actionable
Expected results are measurable
Preconditions are listed
Test data is appropriate
Tags and priority are correct
Test is atomic (tests one thing)
No assumptions about system state

Troubleshooting

Try:
  • Rephrase your question
  • Provide more context
  • Give an example of what you want
  • Break complex requests into smaller parts
Try:
  • Include specific test data
  • Mention your product/industry
  • Reference existing tests as templates
  • Provide acceptance criteria or requirements
Try:
  • Show an example of your preferred format
  • Specify which fields to include
  • Ask for specific sections to be expanded
  • Request step-by-step refinements
Try:

Pro Tips

Save Good Prompts: When you craft a prompt that works well, save it for future use
Use Templates: Once you have a test format you like, ask the AI to create more tests using the same structure
Iterate in Conversation: Don’t try to get perfect results in one prompt—refine through conversation
Combine with OQL: Use the AI to help build complex OQL queries for advanced searches

What’s Next?

Generate Tests

Put these practices to use

Learn OQL

Master advanced searches