TestPilot AI
FeaturesSidebar UITestPilot AI adds a dedicated panel in the VS Code Activity Bar with a React-based interface:
Chat Participant —
|
| Command | Description |
|---|---|
/testcases |
Generate a structured JSON list of test cases from your input |
/lazy-automate |
Generate full automation code (Actions, Feature & Step files) for approved test cases |
/selectors |
Generate Playwright CSS/XPath or WDIO accessibility-ID selectors |
/mockdata |
Generate API mock data fixtures for use in test mocking |
/codegen |
Generate automation code for a feature or component |
/heal |
Auto-detect and fix failing Playwright or WDIO tests from an error trace |
All commands that produce code run in agent mode so Copilot can write files directly to your workspace.
Multi-Stack Support
Choose your target framework at generation time:
- Default Web — Playwright + Cucumber (TypeScript)
- Default Mobile — WDIO + Cucumber (TypeScript)
Project Scaffolding
The Setup Playwright + Cucumber button (and Test Pilot: Setup Project command) detects your workspace and scaffolds a complete, production-ready framework including:
- Playwright & WDIO driver adapters
- Page Object base classes (
BaseActions,BaseSelectors,BaseIdentifiers) - Cucumber config,
tsconfig, andplaywright.config.ts - Allure reporting setup (web + mobile)
- Mobile mock server (
json-server+ step definitions) - All required
package.jsonscripts
JIRA Integration
Connect TestPilot AI to your Atlassian JIRA instance to fetch ticket details (summary, description, acceptance criteria) and use them as test generation input — no copy-pasting required.
Requirements
- VS Code 1.103.0 or higher
- GitHub Copilot Chat extension (required)
Getting Started
1. Open the Sidebar
Click the TestPilot AI icon in the VS Code Activity Bar (left sidebar).
2. Generate Test Cases
Via the sidebar:
- Select an input tab: URL, Source, Guidelines, or JIRA
- Enter your input (paste a URL, source code, acceptance criteria, or a JIRA ticket ID)
- Optionally add a related file path in step 2
- Click Test Cases — test cases appear in the output panel
Via Copilot Chat:
@test-pilot-qa /testcases <your feature spec, source code, or URL>
Attach files with the paperclip button for additional context.
3. Review & Approve Test Cases
Generated test cases appear in the Test Cases tab. Select the ones you want to proceed with.
4. Generate Automation Code
Via the sidebar: Click Test Files or Generate All
Via Copilot Chat:
@test-pilot-qa /lazy-automate
Select Default Web (Playwright + Cucumber) or Default Mobile (WDIO + Cucumber) when prompted. Copilot agent will create the Actions, Feature, and Step files in your workspace.
5. Generate Selectors
@test-pilot-qa /selectors <page URL or component description>
6. Generate Mock Data
@test-pilot-qa /mockdata
Runs against the currently approved test cases.
7. Self-Heal Failing Tests
Via the sidebar:
- Paste the test error output in the Self Heal section
- Click Heal
Via Copilot Chat:
@test-pilot-qa /heal <paste your error here>
8. Set Up a New Test Project
Click Setup Playwright + Cucumber in the sidebar, or open the Command Palette and run:
Test Pilot: Setup Project (Playwright + Cucumber)
Select a target folder — TestPilot AI will scaffold the full framework and run npm install automatically.
JIRA Configuration
Open VS Code Settings (Ctrl+, / Cmd+,) and search test-pilot:
| Setting | Description |
|---|---|
test-pilot.jiraBaseUrl |
Your Atlassian instance URL, e.g. https://yourcompany.atlassian.net |
test-pilot.jiraUsername |
Your JIRA email address |
test-pilot.jiraApiToken |
API token — generate at id.atlassian.com |
Commands
| Command | Description |
|---|---|
Open Test Pilot |
Open the TestPilot AI output panel |
Test Pilot: Setup Project (Playwright + Cucumber) |
Scaffold a complete test framework in a chosen folder |
Extension Settings
| Setting | Type | Default | Description |
|---|---|---|---|
test-pilot.jiraBaseUrl |
string |
"" |
JIRA instance base URL |
test-pilot.jiraUsername |
string |
"" |
JIRA username (email) |
test-pilot.jiraApiToken |
string |
"" |
JIRA API token |
Known Issues
None at this time. Please report issues on the GitHub repository.
Release Notes
0.0.1
Initial release:
- Sidebar UI with URL / Source / Guidelines / JIRA input tabs
- One-click generation of test cases, selectors, mock data, and test files
- Self-heal section for auto-fixing failing tests
- Output panel with test case review and JIRA detail tabs
@test-pilot-qachat participant with/testcases,/lazy-automate,/selectors,/mockdata,/codegen, and/healcommands- Multi-stack support: Playwright + Cucumber (Web) and WDIO + Cucumber (Mobile)
- Project scaffolding (
Test Pilot: Setup Project) with full framework structure - JIRA integration with configurable credentials
Enjoy testing with TestPilot AI! 🧪✈️