Skip to main content

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
Learn more about AI Chat → Test Planner Agent Describe your testing goals, and the AI agent will analyze your application and suggest a comprehensive test plan. Learn more about Test Planner Agent →

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:
FeatureCredits per Use
AI Action1 credit
AI Extract1 credit
Visual Assertion1 credit
Auto-Healing1 credit
AI Chat (Global)2 credits
AI Chat (Test Case)2 credits
Generate AI Logs1 credit
Enhance Test Steps1 credit
Import Test Generation1 credit
Manage your AI Credits →

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:
Step 1: Navigate (traditional - URL is known)
  URL: {{ env.BASE_URL }}/login

Step 2: Fill (traditional - stable selector)
  Locator: input[name='email']
  Text: {{ env.TEST_USER }}

Step 3: AI Action (AI - complex flow)
  Prompt: Complete the multi-factor authentication process

Step 4: Verify Visibility (traditional - checking specific element)
  Locator: .dashboard-welcome

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