Test Runners
TestDriver's Test Runners spawn our Computer-Use agent on Ephemeral Windows VMs
Last updated
Was this helpful?
TestDriver's Test Runners spawn our Computer-Use agent on Ephemeral Windows VMs
Last updated
Was this helpful?
The TestDriver GitHub action will execute tests when you mention it in a comment, on a schedule, or anywhere else in your CI/CD workflow.
Try TestDriver in GitHub now by tagging @testdriverbot, or follow the steps below to add the TestDriver agent to GitHub.
Ask @testdriverbot to test your app within any issue or pull request! TestDriver is an agentic user tester, it has access to the entire OS and uses computer vision with mouse and keyboard control to simulate a real user.
Just tag @testdriverbot and include a markdown list of tasks. TestDriver will attempt your tasks and generate a regression test.
TestDriver Cloud Testing is performed via our GitHub action. You can learn more by visiting the marketplace page.
You'll need a paid account to use the TestDriver GitHub action
In order to execute your TestDriver actions on our VMs you'll need to add your API key as a GitHub secret. If you don't see an API key, you'll need ot upgrade your account.
Log in the team page in and copy your API key from there.
Paste the API key as a new GitHub secret named TESTDRIVER_API_KEY
Now it's time to create your first TestDriver workflow.
In .github/workflows/testdriver.yml
add the following code.
If you used testdriverai init
to create your TestDriver project, these files will already be in your repository.
Notice that on line 21-22
we're invoking the Computer-Use Agent. In this case we're using the /run
command to execute our file from our local directory.
You can also use commands like /explore
, use variables, or supply your prompts dynamically from earlier steps. A common workflow is wait for staging to deploy before executing the test.
See Action Output for output definitions and code samples.
The GitHub action is triggered via the conditions supplied via on
The key
value is used to authenticate you
An ephemeral virtual machine is spawn on our infrastructure
The code from the current branch will be cloned on to the VM
Dashcam begins recording
If supplied, the prerun
shell script runs
prompt
is parsed as a markdown list.
Each list item from promp
is fed into TestDriver one by one
TestDriver summarizes the test and sets it's exit code depending on it's pass or failed state
Dashcam ends recording
The VM is destroyed and all data is wiped
Save the file, make a new branch, push to your repository, and create a new pull request.
This will trigger a new TestDriver execution.