Overview
Discover Test Companion, an AI-powered testing assistant that integrates into your IDE to help you generate test cases, write automation scripts, debug failures, and fix accessibility issues without leaving your editor.
Test Companion is an AI-powered testing assistant that operates within your IDE. It generates test cases, writes automation scripts, debugs failures, and fixes accessibility issues for both web and mobile applications, all without requiring you to leave your editor.
You interact with Test Companion through a chat interface in the IDE sidebar. Describe your needs in plain language, and Test Companion handles the details. It reads your requirements, explores your application, writes test code, and diagnoses failing builds. Everything stays within your editor and connects directly to the BrowserStack ecosystem.
What you can do
Test Companion assists you throughout the entire testing lifecycle. Describe what you need, and Test Companion determines the best approach based on your prompt and the context you provide.
| Capability | What it does |
|---|---|
| Generate test cases | Creates detailed scenarios with steps, expected results, and priority levels from PRDs, specifications, user stories, or by exploring a live URL or mobile app. For mobile apps, upload an APK, AAB, XAPK, or IPA file and let the AI explore your app on BrowserStack’s real device cloud. |
| Write automation scripts | Produces code for any testing framework in your project, including Playwright, Cypress, WebdriverIO, Selenium, Appium, Robot, Cucumber, and others. Convert existing manual test cases into code, or describe a new test from scratch. Works for both web and mobile applications. |
| Debug and fix failing tests | Connects to BrowserStack Test Reporting & Analytics or accepts pasted error logs. Test Companion identifies the root cause and suggests code-level fixes. You can also start this workflow from the Failure Analysis panel in the Automate dashboard. |
| Find and fix accessibility violations | Scans your web application against WCAG standards to identify accessibility issues. Test Companion can apply automated code remediation directly to your source files. |
| Test mobile apps on real devices | Uploads an APK, AAB, or IPA file and explores your app on BrowserStack’s device cloud. It generates test cases and automation scripts based on its findings. |
| Validate code changes (dev testing) | A shift-left workflow that understands your local codebase and generates tests specific to what you are currently building, before the code reaches QA. |
Choose your path
Test Companion serves different roles at various stages of the testing process. Start with the section that matches your current needs.
-
I am setting up for the first time: Install the extension, sign in with your BrowserStack account, and configure Test Companion to align with your project standards.
→ Get started -
I am testing a web application: Follow the complete QA workflow: generate test cases, manage them, automate scripts, fix failures, and remediate accessibility issues. You can also use dev testing to validate your code changes before they reach QA.
→ Web testing -
I am testing a mobile application: Connect your iOS or Android app, generate test cases by exploring it on real devices or from requirement docs, and create automation scripts, all from your IDE.
→ Mobile testing
How it works
When you type a prompt in the chat, Test Companion reads your message, evaluates the context you provide, and determines how to handle your request. You do not need to select a mode or choose an approach. Describe what you need, provide context (a file, a URL, a prompt, or workspace references with @), and Test Companion gets to work.
For independent subtasks you run repeatedly, you can create agents that operate as reusable playbooks with your project-specific context, credentials, and file paths. For more information, refer to the Agents documentation.
BrowserStack platform integration
Test Companion integrates with the broader BrowserStack ecosystem, keeping your work in the IDE synchronized with your team’s tools.
-
Test Management: Sync test cases you generate or edit in your IDE directly to BrowserStack Test Management. Your tests are versioned, organized, and accessible to your entire team. You can also fetch existing test cases from Zephyr Scale and Xray to automate them within your IDE.
-
Test Reporting & Analytics: Pull build results and failure data into your IDE. Test Companion reads failures from TRA, diagnoses the root cause, and suggests fixes without requiring you to leave the editor.
-
App Automate: When testing mobile apps, Test Companion starts real device sessions on BrowserStack’s cloud infrastructure. The AI interacts with your app on actual iOS and Android devices, capturing UI hierarchy and screenshots to generate accurate test code.
-
Automate: Run your generated web automation scripts on BrowserStack’s browser cloud for large-scale cross-browser validation.
Next steps
- Get started if you have not installed the extension yet.
- Web testing to begin testing a web application.
- Mobile testing to start testing a mobile app.
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
Thank you for your valuable feedback!