Overview
Supatest integrates AI throughout the platform to help you create, maintain, and debug tests more efficiently. From generating tests with natural language to automatically healing broken tests, AI capabilities reduce manual effort and improve test reliability.AI Capabilities
Test Creation
AI Chat & Test Generation Use natural language to describe what you want to test, and AI will generate the test steps for you. Available in both the global AI chat and within the test editor.- Generate complete test flows from descriptions
- Add steps to existing tests using prompts
- Get suggestions for improving test coverage
Test Execution
AI Action Step Let AI handle complex, multi-step browser interactions that would be difficult to script manually. Describe what you want in plain English. Learn more about AI Action → AI Extract Step Extract data from pages using natural language descriptions instead of CSS selectors. Ideal for dynamic content or complex layouts. Learn more about AI Extract → Visual Assertion Step Create intelligent visual assertions using natural language. Describe what you expect to see, and AI verifies it. Learn more about Visual Assertion →Test Maintenance
Auto-Healing When a test fails due to locator changes, Supatest automatically attempts to find the correct element and heal the test. No manual intervention required. Learn more about Auto-Healing → AI Step Enhancement Improve existing test steps with AI suggestions. Get recommendations for better locators, clearer descriptions, and more robust assertions.AI Credits
AI features consume credits from your monthly allocation. Different features have different credit costs:| Feature | Credits per Use |
|---|---|
| AI Action | 1 credit |
| AI Extract | 1 credit |
| Visual Assertion | 1 credit |
| Auto-Healing | 1 credit |
| AI Chat (Global) | 2 credits |
| AI Chat (Test Case) | 2 credits |
| Generate AI Logs | 1 credit |
| Enhance Test Steps | 1 credit |
| Import Test Generation | 1 credit |
When to Use AI Features
Use AI When…
- Creating new tests: Describe flows in natural language instead of building step-by-step
- Elements lack stable selectors: AI Extract and AI Action can handle dynamic content
- Tests break frequently: Auto-healing reduces maintenance burden
- Complex interactions: AI Action handles multi-step flows that are hard to script
- Visual verification: Visual Assertion validates what users actually see
Use Traditional Steps When…
- Elements have stable selectors: Standard steps are faster and don’t consume credits
- Simple interactions: Click, Fill, Navigate are efficient for straightforward actions
- Performance is critical: AI steps take longer to execute
- Predictable content: Extract Value is faster than AI Extract for known elements
Best Practices
Balance AI and Traditional Steps
Mix AI-powered and traditional steps based on the situation:Write Clear AI Prompts
The quality of AI output depends on your prompts:- Be specific: “Log in with email [email protected]” not “Log in”
- Include context: “After the modal closes, verify the success message”
- Mention constraints: “Use the first matching product” when multiple exist
Monitor Credit Usage
Keep an eye on your AI credit consumption:- Review usage in the AI Credits dashboard
- Set up alerts for high usage
- Optimize tests that consume many credits
Related
- AI Chat - Conversational test creation
- AI Test Generation - Generate tests from descriptions
- AI Credits - Monitor and manage AI usage
- Auto-Healing - Automatic test repair

