Xray Integration

Functionize integrates with Xray to provide Xray users and teams more visibility into automated test results. You can integrate Functionize with Xray, no matter how Xray is deployed with Jira: Cloud, Server, and Data Center.

Why integrate with a test management tool? Automation coverage and test results are more valuable when shared with a wide audience, especially in large organizations. Seeing Functionize test results in Xray allows you to report both manual and automated test results from a single place.

Why add Functionize to Xray? Functionize allows you to easily automate your manual Xray tests without code using Architect. Using the integration, you can easily see linked information from both tools and click on hyperlinks to easily jump back and forth between them.

Here is the high-level integration flow after setup:

  1. Xray manual test is created and ready to be automated.
  2. Create the test in Functionize using Architect.
  3. Link the automated Functionize test with the Xray manual test.
  4. Create an orchestration in Functionize using the linked test.
  5. Submit the results into Xray. (This can be done automatically depending on the integration settings.)
  6. See the orchestration results in Xray.

Initial Set up

  1. Open the Team Page, then the Integrations Tab.
    Screen_Shot_2021-07-06_at_3.50.03_PM.png
  2. On the left, select Xray from the Test Case Management section
  3. In the main panel, provide credentials for the connection. Select Cloud or Server/Data Center
  4. Enter the URL for your Jira project, your Jira username, and your Jira API token (not your password). For Jira API token assistance, read here: Manage API tokens for your Atlassian account
  5. Enter your Xray Client ID and Client Secret.
  6. Click Test Sign In and the status next to the button should update to Connection established with a green check mark when ready.
    Screen_Shot_2021-07-06_at_3.50.51_PM.png
  7. Scroll down to the Project Mappings section. Here you will select the Functionize and Xray projects you wish to link together and select the appropriate testing environment to be used. Map the Functionize test statuses to the Xray test statuses as you would like them reported.
    Screen_Shot_2021-07-06_at_3.50.36_PM.png
  8. Multiple projects may be added, however each must be mapped individually.
  9. Click Submit to save your connection details.

 

Linking Test Cases

  1. Open the Functionize project you have linked with Xray. On the left panel, confirm you have selected the testing environment previously mapped with your Xray project.
  2. The list of tests in the main panel will display the Xray logo + Link Test.Screen_Shot_2021-07-06_at_3.52.10_PM.png
  3. Click Link Test to open the Xray Linking window.Screen_Shot_2021-07-06_at_3.52.59_PM.png
  4. Select the corresponding Xray test entry > Click Link Test.
  5. Once a test is mapped, the Xray test name will be listed in the place of Link Test along with a pencil icon to edit the connection at any time.Screen_Shot_2021-07-06_at_4.38.18_PM.png

Sending Results to Xray

  1. Open the Orchestrations page, then click Create New Orchestration.Screen_Shot_2021-07-07_at_3.32.21_PM.png
  2. Enter the relevant information on the Details Tab.
    Screen_Shot_2021-07-06_at_4.00.26_PM.png
  3. Open the Advanced Tab to select how you'd like results of each Orchestration run sent to Xray.
    Screen_Shot_2021-07-08_at_8.55.48_AM.png
  4. Click Add New.
  5. Confirm the test cases to include and click Submit.Screen_Shot_2021-07-07_at_3.36.06_PM.png
  6. Click the Play button in the Execute column to start the Orchestration, then click Run Orchestration in the confirmation modal.
  7. Open the Actions menu and select Orchestration Results.Screen_Shot_2021-07-06_at_3.54.43_PM.png
  8. When the Orchestration has completed, if you selected On Demand when setting up your Orchestration, click Submit to Xray and a modal will open to show the name of the Xray Execution and a link to the execution will be visible under the Submit to Xray button.Screen_Shot_2021-07-06_at_4.44.06_PM.png

Xray Execution 

We've implemented two-way linking between Functionize and Xray which enables you to see execution result details in Xray and Functionize Orchestrations as well as links to each connected test in both Xray and Functionize. All test results from a single Orchestration will be added to a single Test Execution issue in Xray including cross browser and multiple dataset testing. If any configuration of a test case fails (any browser, any dataset), the linked test case will be marked as a failure within that Test Execution.

Please note that if a test in Functionize is included in the orchestration but is not linked to a corresponding test in Xray, the results table will provide information, but it will not be included in the Overall Execution Status section.