LogoLogo
  • Overview
    • Quickstart
    • FAQ
    • Overview
    • Pricing
    • Comparison
    • Discord
  • Pro Setup
    • Book a Demo
    • 30x30 Promotion
  • Guides
    • Generate a Test Suite
    • Local Agent Setup
    • Prompting
    • Getting an API Key
    • GitHub Actions
      • GitHub Action Setup
      • Prerun Scripts
      • Environment Config
      • Parallel Testing
      • Storing Secrets
      • Optimizing Performance
      • Action Output
      • Examples
        • Test Generation
        • Parallel Testing
        • Importing Tests
        • Desktop Apps
        • Secure Log In
    • Debugging Test Runs
    • Monitoring Performance
  • Reference
    • Test Steps
      • assert
      • exec
      • focus-application
      • hover-image
      • match-image
      • hover-text
      • if
      • press-keys
      • remember
      • run
      • scroll
      • scroll-until-image
      • scroll-until-text
      • type
      • wait
      • wait-for-image
      • wait-for-text
    • Interactive Commands
      • /assert
      • /undo
      • /save
      • /run
      • /generate
    • CLI
      • testdriverai init
      • testdriverai [file]
      • testdriverai run [file]
  • Security & Privacy
    • Agent
    • Action
    • Dashboard
  • FAQ
    • Screen Recording Permissions (Mac Only)
    • Status Page
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Reference
  2. Interactive Commands

/generate

Previous/runNextCLI

Last updated 1 month ago

Was this helpful?

Generate is a experimental feature that instructs testdriverai to come up with it's own ! The /generatecommand is used in our Generate a Test Suite demo.

/generatewill look at the display and generate lists of exploratory prompts that can be used to generate tests. Each exploratory test looks like a simple markdown file with a list inside.

Check out this test-search-function.mdfor example:

1. Click on the search icon.
2. Type "real-time chat" into the search bar.
3. Assert that search results are relevant and displayed.

TestDriver will generate 10 of these files every time the /generatecommand is called. The files will be stored in ./testdriver/generate/*.md.

The best way to use the /generatecommand is to generate regression tests using .

Every test will be run in , and can be merged into a regression test!

prompts
our GitHub action
parallel
the resulting YML