1
Create a TestDriver Account
You will need a TestDriver Pro account ($20/month) to get an API key.
Sign Up for TestDriver
2
Set up your environment
Copy your API key from the TestDriver dashboard, and set it as an environment variable.
Export an environment variable on macOS or Linux systems
Using VS Code, Cursor, or Windsurf? Try our VS Code Extension (beta).
3
Check out an example test
Download the TestDriver GitHub repository and run the example test.TestDriver tests are written in YAML, a human-readable data format. The Each step has a
prompt.yaml
file contains an example series of steps for the agent to execute.testdriver/acceptance/prompt.yaml
prompt
that describes what the agent should do. The agent will use the prompt to generate commands that make the tests faster and more reliable the next time you run the test.4
Generate regression test from prompts
Run the following command to run the test file. TestDriver will spawn a virtual machine, launch the sandbox test page, and execute the steps defined in the The
prompt.yaml
file.--write
flag tells TestDriver to save any generated commands to the test file, and the --heal
flag allows TestDriver to recover from unexpected issues during the test run.You can use an interactive CLI to generate test steps with the explore command
5
Run the generated regression test
After TestDriver has run the exploratory test, you’ll see that the The
prompt.yaml
file has been updated with commands generated by the agent to make the test faster and more reliable.--write
command tells the agent to save the generated commands to the test file, and the --heal
command gives the agent permission to recover if something goes wrong.6
Managing your test suite
There’s so much more you can do with TestDriver! Here are some popular features to explore:
Importing Tests
Generate tests from other formats like CSV, Gherkin, etc.
Self Healing
Automatically update tests when the application changes.
Variable Test Data
Use variables run the same test with different data sets.
Reusable Snippets
Embed reusable snippets to simplify your test scripts.
Running Custom Code
Use custom powershell or NodeJS code to extend the capabilities of your tests.
Setup & Teardown
Systemically prepare the sandbox before running tests and clean up afterward.