How the TestDriver agent behaves on GitHub issues, pull requests, and @mentions
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Generate tests by exploring your app with the AI vision agent
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
설치 방법 보기설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.
Start with an exploration of your app. Tests begin here: you describe a flow in plain English. Then the TestDriver vision agent clicks, types, and reads the screen to understand it. Then it writes the test for you. There are no selectors, no DOM, and no weak locators. Only describe what you want to test. Let the agent find the other parts.
There are two methods for an exploration. You can chat with your AI assistant through the TestDriver MCP server. Or you can give a coding agent our instructions file and tell it to generate a test.
<Info> Both paths need an MCP-capable AI coding assistant. If you don't have one yet, start with **GitHub Copilot** — there's a [free tier](https://github.com/features/copilot/plans), no credit card required. See [Run → Setup](/copilot/running-tests#setup) for the full install and sign-in walkthrough. </Info>Start with our quickstart. Then give your coding agent our agent instructions file.
<Card title="TestDriver Agent Instructions" icon="link" arrow="true" horizontal href="https://github.com/testdriverai/testdriverai/blob/main/ai/agents/testdriver.md?plain=1"> Copy the current version of our agent instructions to provide your coding agent with up-to-date instructions on how to generate TestDriver tests. </Card>Then, you can prompt your coding agent to generate tests. Here is an example prompt:
Make me a TestDriver test that does the following steps:
Navigate to practicetestautomation.com
Type username student into Username field
Type password Password123 into Password field
Push Submit button
Verify new page contains expected text 'logged in'
<Info>Use explicit commands for production tests. They are at a lower cost, faster, and more reliable.</Info>
Use the TestDriver MCP server and your AI assistant (GitHub Copilot, Cursor, or Claude Desktop) to make tests. You chat with an AI agent. The agent starts a virtual machine, does actions, and writes the test code for you.
Open the chat of your AI assistant. If your project has no other agents, TestDriver uses the TestDriver agent by default. If not, select testdriver from the agent dropdown in the chat panel.
Describe what you want to test:
Create a test that logs into my app at https://myapp.com
The agent will:
.test.mjs fileWhen the agent starts a session, a live preview panel opens in your editor. This lets you:
The recommended workflow for exploring and creating tests:
<Steps> <Step title="Describe Your Test"> Tell the agent what you want to test:```
Test the checkout flow on https://shop.example.com
```
</Step>
<Step title="Watch and Guide">
The agent will start executing. Watch the preview panel and provide guidance if needed:
```
The login modal appeared. Use test@example.com and password123
```
</Step>
<Step title="Add Assertions">
Ask the agent to verify specific conditions:
```
Assert that the order confirmation page is shown with the order number
```
</Step>
<Step title="Review the Code">
The agent writes test code as it works. Review the generated `.test.mjs` file and make any adjustments.
</Step>
</Steps>
Here's a complete example of exploring and creating a login test:
You: Create a test for the login flow at https://console.testdriver.ai
Agent: I'll create a test for the login flow. Starting a session...
[Screenshot: Login page loaded]
I can see the login page. Let me find the email input.
[Screenshot: Email input highlighted]
Now I'll type the email and find the password field...
You: Use test@example.com for the email
Agent: Got it. Typing test@example.com...
[Screenshot: Email entered]
Now entering the password and clicking Sign In...
[Screenshot: Dashboard loaded]
✅ Login successful! I've written the test to tests/login.test.mjs
The agent generates standard Vitest test files:
import { describe, expect, it } from "vitest";
import { TestDriver } from "testdriverai/vitest/hooks";
describe("Login Flow", () => {
it("should log in successfully", async (context) => {
const testdriver = TestDriver(context);
await testdriver.provision.chrome({
url: "https://console.testdriver.ai"
});
const emailInput = await testdriver.find("email input field");
await emailInput.click();
await testdriver.type("test@example.com");
const passwordInput = await testdriver.find("password input field");
await passwordInput.click();
await testdriver.type("password123");
const signInButton = await testdriver.find("Sign In button");
await signInButton.click();
const result = await testdriver.assert("dashboard is visible");
expect(result).toBeTruthy();
});
});
아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.
로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.
아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.
How the TestDriver agent behaves on GitHub issues, pull requests, and @mentions
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Execute natural language tasks using AI
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Make AI-powered assertions about screen state
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Deploy TestDriver on your AWS infrastructure using CloudFormation
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Speed up tests with screenshot-based caching
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
How TestDriver learns your app and caches what it discovers for instant, deterministic replays
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.