Install the TestDriver VS Code Extension
Comprehensive guide to installing and setting up TestDriver for VS Code
Get the VS Code Extension
Turn your IDE into a powerful computer-use automation tool with our VS Code extension.
Initialize Your Project
Set up your project with:
This creates a .env
file and sample workflow files.
Run TestDriver in Interactive Mode
Start TestDriver in interactive mode to create and refine tests dynamically:
Once started, you can use commands like /try
, /undo
, and /save
to interactively build and test your flows.
.yaml
file extension for all test files. This is a breaking change from v4 which uses the .yml
extension!Define Your Test Steps
Use natural language to describe what you want to test. For example:
TestDriver will generate steps like:
Refine and Save Your Test
- Use
/undo
to remove the last step if needed. - Save your test with
/save
to generate a reusable YAML file.
Run Saved Tests
Once saved, you can run your test file anytime:
Pro Tip: Always start with interactive mode (testdriverai
) to explore and refine your tests before saving them. It’s faster and more intuitive!