Set up your environment
Copy your API key from the TestDriver dashboard, and set it as an environment variable.
- macOS / Linux
- Windows
Export an environment variable on macOS or Linux systems
Try an example test
Download the TestDriver GitHub repository and run the web example test.TestDriver tests are written in YAML, a human-readable data format. The Each step has a
example.yaml file contains a series of steps that the agent will execute.testdriver/test.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.Generate test steps 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
example.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.
