Connect to Xray
Connect Xray to Test Companion to access your test repository within your IDE. Fetch test steps directly into your workspace to generate automation scripts instantly.
Xray manages your testing specifications and execution coverage. Integrating Xray with Test Companion allows you to access your test repository directly from your development environment.
Instead of manually transferring context, you can browse your folders and fetch test details, including steps and pre-conditions, directly into your workspace to generate automation code efficiently.
Prerequisites
Before you start, confirm these:
- Install Test Companion in your IDE and sign in.
- You must have a valid Xray subscription.
- Complete the Xray integration flow to connect your Xray account.
Automate from Xray
After you connect, browse your test repository directly within the IDE.
Currently, you can only automate individual test cases from Xray from the UI.
Select Project and Folder
-
Open Test Companion and navigate to the Test Management pane by clicking the Test Cases icon (book icon) in the activity bar.

-
In the Test Management Service dropdown, ensure Xray is selected.

-
Use the dropdown menus in the Test Cases pane to navigate your repository:
- Project: Select the Jira project where your test cases reside.
- Folder: Browse the folder structure (tree view) to find specific test suites.
View test cases
- Click a folder to display a list of all test cases contained within it. The list includes key details such as:
- Test ID (e.g., T-45)
- Name
- Description
- Test Steps
- Priority
In the test cases panel, Preconditions are not shown in the table, but they will be retrieved when you click the Automate button for that specific test case.
Generate automation
To automate a specific test case:
- Locate the test case in the list.
-
Click the Automate button (or the generate action icon) next to the test case.
The test case details get populated in the Test Companion chat input.
- Click Send message (➤).
Test Companion will read the test steps, expected results, and preconditions from Xray and generate an automation script in the chat window tailored to your selected framework.
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!