QAbyAI logo
Features

Magic TestCases

Generate complete, working test cases from plain English descriptions using AI

Magic TestCases lets you create fully automated test cases from plain English test scenarios. Simply describe what you want to test, and QAbyAI's AI will generate working test cases that are guaranteed to execute.

How It Works

Magic TestCases uses an execute-first approach:

  1. Input Test Scenarios - Paste your test scenarios in plain English
  2. AI Parsing - AI parses your input into structured test scenarios
  3. Review & Edit - Review the parsed scenarios and make adjustments
  4. Auto-Generation - For each scenario, AI executes the goal on a real browser and converts the execution trace into reusable test steps

This approach ensures generated test cases actually work, since they're based on real browser execution.

Getting Started

  1. Navigate to TestCases > Magic TestCases
  2. Paste your test scenarios in the input area
  3. Click Generate Scenarios to parse your input
  4. Review and edit the parsed scenarios
  5. Select a folder to save your test cases
  6. Click Create Test Cases to generate

Input Format

For best results, your input should include:

  • Website URL - The URL of the site to test (e.g., https://example.com)
  • Test case headings - Clear titles for each test scenario
  • Step-by-step actions - Numbered steps describing what to do
  • Expected outcomes - What should happen after each action

Example Input

URL = https://myapp.com

### TestCase 1: User Login Flow

Steps:
1. Navigate to /login
2. Enter "[email protected]" in the email field
3. Enter "password123" in the password field
4. Click the "Sign In" button
5. Verify the dashboard page loads
6. Verify the user's name appears in the header

Using Code Agents

For more comprehensive test scenarios, you can use code agents like Claude Code, Cursor, or Codex to generate test scenarios directly from your codebase:

  1. Click Copy Prompt to copy the test scenario writer prompt
  2. Paste the prompt into your code agent
  3. Ask the agent to generate test scenarios for specific features
  4. Copy the generated scenarios back into Magic TestCases

This approach generates more thorough test cases because the AI has access to your actual codebase and understands your application's structure.

Advanced Options

Reference Testcases

Select existing test cases as references to help the AI understand your preferred style and level of detail. The AI will use these as examples when generating new test cases.

Environment Variables

Magic TestCases automatically has access to your environment variables. Use {{ VARIABLE_NAME }} syntax in your scenarios to reference them.

Modules

If you have modules set up, you can reference them in your scenarios. For example: "Execute Login module" to run a pre-defined login workflow.

Tips for Better Results

  • Be specific - Include exact button text, field labels, and URLs
  • Use relative dates - Say "tomorrow" or "next Monday" instead of specific dates
  • Include verifications - Describe what should happen after each action
  • One URL per batch - Group test cases by the application they test
  • Start simple - Begin with happy path scenarios before adding edge cases

What Gets Generated

Each Magic TestCase job creates:

  • Test case name - A concise, descriptive title
  • Description - Summary of what the test validates
  • Executable steps - UserIntent steps ready for execution

The generated steps use QAbyAI's standard step types like Navigate, Click, Type, and Assert, ensuring they integrate seamlessly with your existing test suite.