Overview | BrowserStack Docs

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. Choose base rules for a fast scan on your machine, or Advanced + AI rules to scan in the BrowserStack cloud and get one report across several pages on your BrowserStack Accessibility dashboard.
Test from a specific location Runs web and app sessions from the IP address of a country or region you name, so you can check geo-blocking, local currency, and translated pages. Test Companion saves the location in the generated script.
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.

→ Get started

→ Web testing

→ App testing

→ Visual analysis

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 skills that operate as reusable playbooks with your project-specific context, credentials, and file paths. For more information, refer to the Skills documentation.

BrowserStack platform integration

Test Companion integrates with the broader BrowserStack ecosystem, keeping your work in the IDE synchronized with your team’s tools.

Next steps