> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spurtest.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Test Generation

> Spur's AI Test Generation accelerates test creation by automatically generating step-by-step tests or data-driven scenario tables from multiple input sources while transforming hours of manual test authoring into minutes of guided AI assistance.

## Overview

AI Test Generation enables you to create comprehensive test coverage quickly by leveraging existing test suites, uploading documentation or describing tests in plain language.

The AI analyzes your inputs and generates structured, executable tests that match your application's patterns and testing needs.

## What You Can Generate

<Columns cols={2}>
  <Card title="Test">
    Create one or more step-by-step tests from various sources including video recordings, Loom links, files or existing suite patterns
  </Card>

  <Card title="Scenario Table">
    Generate data-driven scenario tables with variations based on your instructions, enabling parameterized testing across multiple data sets
  </Card>
</Columns>

## How to Use AI Test Generation

<Steps>
  <Step title="Navigate to AI Test Generator under Tests in Spur Dashboard">
    <Frame>
      <img src="https://mintcdn.com/spur/RaeB6Oz5SVRJ2dhu/images/aitg-2.gif?s=8aac733953ab90abf598e529866870ae" alt="Aitg 2" width="1976" height="1080" data-path="images/aitg-2.gif" />
    </Frame>
  </Step>

  <Step title="Choose Your Generation Type">
    When you open AI Test Generation, select what you want to create - [Tests](/getting-started/first-test) or [Scenario Table.](/authoring-tests/scenarios/scenario-tables)

    Provide context about your application to help Spur generate relevant, accurate results. Include information about your app's purpose, key features and user workflows.

    <Frame>
      <img src="https://mintcdn.com/spur/4nwpEE0-cgs18aCd/images/Screenshot2026-02-04at11.11.07AM.png?fit=max&auto=format&n=4nwpEE0-cgs18aCd&q=85&s=8ef3b5923969a35cf6767ae95ce770d3" alt="Screenshot 2026 02 04 At 11 11 07 AM" width="2560" height="1424" data-path="images/Screenshot2026-02-04at11.11.07AM.png" />
    </Frame>
  </Step>

  <Step title="Select Your Generation Method">
    Choose from three methods for generating tests, each suited to different workflows:

    <Frame>
      <img src="https://mintcdn.com/spur/4nwpEE0-cgs18aCd/images/Screenshot2026-02-04at11.26.50AM.png?fit=max&auto=format&n=4nwpEE0-cgs18aCd&q=85&s=40874d2d586d682400c430afd8720d55" alt="Screenshot 2026 02 04 At 11 26 50 AM" width="2560" height="1034" data-path="images/Screenshot2026-02-04at11.26.50AM.png" />
    </Frame>

    <Steps>
      <Step title="a) From Exisiting Suites ">
        Leverage your existing test suite as a foundation for new tests. The AI analyzes your saved suites to understand your testing patterns and generates new tests that follow the same structure and style.

        <Frame>
          <img src="https://mintcdn.com/spur/4nwpEE0-cgs18aCd/images/Screenshot2026-02-04at11.22.42AM.png?fit=max&auto=format&n=4nwpEE0-cgs18aCd&q=85&s=b03f0387386740b9a7d68e940e1c1218" alt="Screenshot2026 02 04at11 22 42AM" width="2560" height="1424" data-path="images/Screenshot2026-02-04at11.22.42AM.png" />
        </Frame>
      </Step>

      <Step title="b) PDF, CSV or Markdown">
        Upload test requirements, specifications, or documentation files to convert into structured test flows. The AI extracts test scenarios from your documentation and creates executable tests.

        <Frame>
          <img src="https://mintcdn.com/spur/4nwpEE0-cgs18aCd/images/Screenshot2026-02-04at11.27.14AM.png?fit=max&auto=format&n=4nwpEE0-cgs18aCd&q=85&s=799b3cce0033bcecdea6baff7aac1983" alt="Screenshot 2026 02 04 At 11 27 14 AM" width="2560" height="808" data-path="images/Screenshot2026-02-04at11.27.14AM.png" />
        </Frame>
      </Step>

      <Step title="c) From Text Prompt">
        Describe your test in plain English and let the AI generate structured test steps. This method offers maximum flexibility for creating tests from scratch.

        <Frame>
          <img src="https://mintcdn.com/spur/4nwpEE0-cgs18aCd/images/Screenshot2026-02-04at11.28.36AM.png?fit=max&auto=format&n=4nwpEE0-cgs18aCd&q=85&s=358d30751a63f5b7a4475db452e0202a" alt="Screenshot 2026 02 04 At 11 28 36 AM" width="2560" height="1426" data-path="images/Screenshot2026-02-04at11.28.36AM.png" />
        </Frame>
      </Step>
    </Steps>
  </Step>

  <Step title="Generate Scenario Tables (Optional)">
    If you selected **Scenario Table** in step 2, provide instructions for creating data-driven test variations.

    Scenario tables enable you to run the same test with multiple data sets, validating different user personas, product categories, or input combinations.

    <Frame>
      <img src="https://mintcdn.com/spur/4nwpEE0-cgs18aCd/images/Screenshot2026-02-04at11.31.22AM.png?fit=max&auto=format&n=4nwpEE0-cgs18aCd&q=85&s=e0a2c8623262621ffd527a4fe76f14f8" alt="Screenshot 2026 02 04 At 11 31 22 AM" width="2560" height="1424" data-path="images/Screenshot2026-02-04at11.31.22AM.png" />
    </Frame>
  </Step>

  <Step title="Click Generate Tests">
    The AI processes your inputs and generates structured test steps ready for execution.

    Review the generated tests, make any necessary adjustments, and click **Keep Tests** to add them to your test suite.

    <Frame>
      <img src="https://mintcdn.com/spur/RaeB6Oz5SVRJ2dhu/images/aitg-save(1).gif?s=26269bfbf36a656d5a3a39e641011dbf" alt="Aitg Save(1)" width="1976" height="1080" data-path="images/aitg-save(1).gif" />
    </Frame>
  </Step>

  <Step title="Choose Test Suite">
    After generation, select which Test Suite to save your test to.

    <Frame>
      <img src="https://mintcdn.com/spur/H3xqe3VyV7YeO-e5/images/Screenshot2026-02-04at11.46.59AM.png?fit=max&auto=format&n=H3xqe3VyV7YeO-e5&q=85&s=7d848ff24cac8abc213a55e70dffffcf" alt="Screenshot 2026 02 04 At 11 46 59 AM" width="1602" height="1056" data-path="images/Screenshot2026-02-04at11.46.59AM.png" />
    </Frame>

    Your test will now appear in the selected Test Suite, ready for execution.
  </Step>

  <Step title="Save Tests">
    Review the generated test, add or verify the **Test URL** and click **Save**.

    <Frame>
      <img src="https://mintcdn.com/spur/H3xqe3VyV7YeO-e5/images/Screenshot2026-02-04at11.48.39AM.png?fit=max&auto=format&n=H3xqe3VyV7YeO-e5&q=85&s=0793b40173d4f6683ffdec75b2906023" alt="Screenshot2026 02 04at11 48 39AM" width="1054" height="690" data-path="images/Screenshot2026-02-04at11.48.39AM.png" />
    </Frame>

    Your test will now appear in the selected Test Suite, ready for execution.
  </Step>
</Steps>

## Best Practices

* **Be Specific**: Provide detailed descriptions and context for more accurate test generation. Include information about expected behaviors, user flows, and validation points.
* **Reference Existing Suites**: When available, reference similar test suites to help the AI understand your testing patterns and preferred structure.
* **Iterate and Refine**: Review generated tests and provide feedback through additional instructions to improve results.
* **Start Simple**: Begin with straightforward test scenarios before generating complex multi-step flows.
* **Use Descriptive Names**: Clear test names improve organization and make results easier to understand.

## Limitations

* Maximum 10 tests per generation run
* Generated tests may require manual review and adjustment
* Complex authentication flows may need additional configuration
* File uploads support PDF, CSV, and Markdown formats only
