Skip to main content
No Result Found
Get your setup working faster. Join our Discord for optimisation tips from elite testers. Join our DiscordJoin our Discord

Install Test Companion in Visual Studio Code

Install Test Companion in Visual Studio Code, Cursor, or VSCodium to generate, automate, and fix test cases without leaving your editor.

You install Test Companion from the Extensions view, the same way you install any other Visual Studio Code extension. The same flow works in forks such as Cursor, VSCodium, and Kiro.

The setup process has three steps:

Prerequisites

Before you install the extension, make sure you have:

  • A BrowserStack account. If you do not have one, create a BrowserStack account.
  • Visual Studio Code 1.95.1 or later, or an equivalent version of Cursor, VSCodium, or Kiro.

To check your version, choose Code > About Visual Studio Code on macOS, or Help > About on Windows and Linux.

Install the extension

Your editor downloads the extension from the marketplace it already trusts, so you do not have to judge whether a .vsix file from another source is genuine. Use this path by default.

  1. Open the Extensions view in your editor.
    • Keyboard shortcut: Ctrl+Shift+X on Windows and Linux, or Cmd+Shift+X on macOS.
    • Activity Bar: Click the Extensions icon.

    Extensions view open in Visual Studio Code with the search box ready for a query

  2. In the search bar, type Test Companion.

    Extensions view search results with the Test Companion extension by BrowserStack in the list

  3. Locate the Test Companion extension in the results list, published by BrowserStack.
  4. Click Install.

Verify the installation

After the install completes, look for the Test Companion icon in the Activity Bar, the strip of icons along the edge of the editor window.

Click the icon to open the Test Companion panel.

Test Companion panel open in Visual Studio Code alongside the editor

If the icon does not appear, reload the editor window. Open the Command Palette with Ctrl+Shift+P on Windows and Linux, or Cmd+Shift+P on macOS, then run Developer: Reload Window.

To use Test Companion, enable BrowserStack AI in your account settings. For more about these settings, read Activate BrowserStack AI.

Sign in to BrowserStack

Connect the extension to your BrowserStack account.

  1. Click the Test Companion icon in the Activity Bar to open the Test Companion panel.

    Test Companion icon selected in the Activity Bar with the panel open

  2. In the panel, click Sign in with BrowserStack.
  3. Your default browser opens. It prompts you to authorize the extension.
  4. Follow the prompts to sign in. If you do not have an account, create a BrowserStack account.

After you sign in, the browser returns you to your editor. The Test Companion panel then shows your user information.

Test Companion is installed and configured.

Next steps

Start exploring what Test Companion can do:

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

Is this page helping you?

Yes
No

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!

Talk to an Expert
Download Copy Check Circle