Get the VS Code Extension

Turn your IDE into a powerful computer-use automation tool with our VS Code extension.

1

Initialize Your Project

Set up your project with:

npx testdriverai@latest init

This creates a .env file and sample workflow files.

2

Run TestDriver in Interactive Mode

Start TestDriver in interactive mode to create and refine tests dynamically:

npx testdriverai@latest

Once started, you can use commands like /try, /undo, and /save to interactively build and test your flows.

TestDriver v5 uses the .yaml file extension for all test files. This is a breaking change from v4 which uses the .yml extension!
3

Define Your Test Steps

Use natural language to describe what you want to test. For example:

> Open Google Chrome and search for "testdriverai"

TestDriver will generate steps like:

- command: focus-application
  name: Google Chrome
- command: hover-text
  text: Search Google or type a URL
  description: main search bar
  action: click
- command: type
  text: testdriverai
- command: press-keys
  keys: [enter]
4

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.
5

Run Saved Tests

Once saved, you can run your test file anytime:

npx testdriverai@latest run path/to/test.yaml

Pro Tip: Always start with interactive mode (testdriverai) to explore and refine your tests before saving them. It’s faster and more intuitive!