TestDriver.aiAutomate and scale QA with computer-use agents. Docs | Website | GitHub Action | Join our Discord ---https://github.com/user-attachments/assets/4719e834-652a-43ba-8b8c-24ea6f357ae3# Install via NPM
Run Init
Follow the instructions on our docs for more.. AboutTestDriver isn't like any test framework you've used before. TestDriver is an OS Agent for QA. TestDriver uses AI vision along with mouse and keyboard emulation to control the entire desktop. It's more like a QA employee than a test framework. This kind of black-box testing has some major advantages:
Demo (Playing Balatro Desktop)https://github.com/user-attachments/assets/7cb9ee5a-0d05-4ff0-a4fa-084bcee12e98 Examples
Check out the docs. Workflow
QuickstartInstall TestDriver via NPMInstall testdriverai via NPM. This will make testdriverai available as a global command.
Teach TestDriver a testLet's show TestDriver what we want to test. Run the following command:
Reset the test stateTestDriver best practice is to start instructing TestDriver with your app in it's initial state. For browsers, this means creating a new tab with the website you want to test. If you have multiple monitors, make sure you do this on your primary display. Instruct TestDriverNow, just tell TestDriver what you want it to do. For now, stick with single commands like "click sign up" and "scroll down." Later, try to perform higher level objectives like "complete the onboarding."
TestDriver executes the test scriptTestDriver will execute the commands found in the yml codeblocks of the response. See the yml TestDriver generated? That's our own schema. You can learn more about it in the reference.
Keep going!Feel free to ask TestDriver to perform some more tasks. Every time you prompt TestDriver it will look at your screen and generate more test step to complete your goal.
If something didn't work, you can use Test the test locallyNow it's time to make sure the test plan works before we deploy it. Use testdriver run to run the test file you just created with /save .
Make sure to reset the test state! DeployNow it's time to deploy your test using our GitHub action! testdriver init already did the work for you and will start triggering tests once you commit the new files to your repository.
Your test will run on every commit and the results will be posted as a Dashcam.io video within your GitHub summary! Learn more about deploying on CI here. |