Creating Tests
Learn how to create effective test cases in Synthesized QA and write tests that the AI agent can execute reliably.
What Should Be a Test?
A good example of a test is something a user would like to do, or achieve. A user story or user journey should probably map 1:1 to a test case.
Test examples
- Log in with correct credentials
- Log in with incorrect credentials
- Create a new task
- Edit a task's due date
- Delete a completed task
- Filter tasks by status
Creating a test
You can create test cases through the UI with AI-generated suggestions, or conversationally through the AI Chat Assistant.
Create Tests via UI
The UI provides a structured way to create tests with step-by-step guidance from our AI assistant.
- Navigate to your project's Tests page
- Click the "Generate Tests" button
- Describe the user journey in plain English
- Review AI-generated test suggestions
- Accept or refine the test
Create Tests via Chat
For a more conversational approach, use the AI Chat Assistant. Simply describe what you want to test, and the assistant will help you create comprehensive test cases.
Example conversation:
You: "I want to test the login flow"
AI: "I'll help you create a login test. Should we test both successful
and failed login attempts?"
You: "Yes, both cases"
AI: "Great! I've created two test cases:
1. Login with valid credentials
2. Login with invalid credentials
Would you like me to add any additional scenarios?"Test Anatomy
Every test consists of:
- Description: A clear explanation of what the test does
- Preconditions: The state needed before the test runs
- Steps: The actions the AI agent will perform
- Expected Results: What success looks like
Best Practices
- Keep tests focused on a single user journey
- Write clear, descriptive test names
- Include both positive and negative test cases
- Consider edge cases and error conditions
- Make tests independent of each other
Was this helpful?