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

Connect Azure Test Plans to Test Companion

Connect Azure Test Plans to Test Companion to browse your test repository in your IDE and turn test cases into automation scripts.

Azure Test Plans stores your manual test cases, suites, and configurations in Azure DevOps. When you connect Azure Test Plans to Test Companion, you browse that repository from your IDE instead of switching to Azure DevOps.

You select a test case, and Test Companion reads its steps, expected results, and configurations. It then generates an automation script in the chat window. Test Companion reads this data but does not create, change, or delete anything in Azure DevOps.

Test Companion can only fetch work items that your Azure DevOps account can access. Your Azure DevOps permissions still apply when Test Companion reads work item context.

Prerequisites

Before you start, confirm these:

  • Install Test Companion in your IDE and sign in.
  • Connect your Azure DevOps account to BrowserStack, as described in Connect Azure DevOps.
  • Your test cases belong to a test suite in Azure Test Plans. Test cases that are not part of a suite cannot be accessed through this integration.

Connect Azure DevOps

You connect Azure DevOps once for your organization. After you connect, Test Companion can read work items from any project in your Azure DevOps organization.

  1. Go to the BrowserStack Integrations page.
  2. In the Test Management Tools section, find Azure Test Plans and click Connect.

    BrowserStack Integrations page listing TestRail, Xray, Azure Test Plans, and Zephyr Scale, each with a Connect button

  3. Authorize BrowserStack to access your Azure DevOps organization.

Automate from Azure Test Plans

After you connect, browse your test plans and suites, then generate automation without leaving the IDE.

Select a project and suite

  1. Open Test Companion.
  2. Under Panels, click Test Cases to open the Test Management pane.

    Test Cases button under the Panels heading in Test Companion

  3. In the Test Management Service dropdown, select Azure.

    Test Management Service dropdown open, showing BrowserStack, Zephyr Scale, Xray, Azure, and TestRail

  4. In the Project dropdown, select the Azure DevOps project that holds your test plans. The dropdown loads available projects and supports search.

    Project dropdown populated with Azure DevOps projects

View test cases

  1. Your test plans and suites appear in a folder view on the left. Click a suite to load its test cases in the grid.

    Folder tree of test plans and suites on the left, with test cases loaded in the grid on the right

    Static sub-suites appear as nested folders. All suite types work, including static, requirement-based, and query-based.

Generate automation

To automate a test case:

  1. Select the test case you want to automate in the grid.
  2. Click Automate to send the test case to Test Companion.

    Test Companion adds the test case details to the chat input.

  3. Write a prompt if you need one, then click Send message (➤).

Test Companion reads the steps, expected results, and configurations from Azure Test Plans. It generates an automation script in the chat window, matched to your selected framework.

When a test case has a linked work item, such as a User Story or Requirement, Test Companion fills the Requirement field in Test Management with that link. You get traceability from requirement to test case without any extra steps.

If the task is interrupted because Azure DevOps was not connected yet, complete the integration flow and then repeat the same prompt.

What Test Companion reads from Azure Test Plans

When you automate a test case or paste a link in chat, Test Companion fetches these fields to build context:

Field What it provides
Test Suite Name The name of the suite to which the test case belongs
Test ID A unique identifier for the test case
Test Name The title or name of the test case
Steps and Expected Results The manual steps that the script should follow, along with the expected outcomes
Shared Steps Reusable sequences of steps that can be referenced across multiple test cases
Linked Work Item The associated requirement or backlog item, if applicable
Configurations Parameters including browser, operating system, and environment (in JSON format)
Automation Status Indicates whether the test case has been marked as automated

Next steps

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