IntegrationWithTestManagementTools

Integration with Test Management Tools

Overview

Integrations_Page

The Qyrus platform currently has integration services with the Xray Testrail and Jira management tools. The configurations for these services vary but they all update the user’s selected management tools.

Configuration Setup Xray

First build Xray integration by navigating to Xray integration page, from dashboard, to learn how to integrate Xray in integration page, follow steps below:

Go to Xray integration, by clicking on Xray card (1) as shown in image above.

Xray_Page

please fill all the fields, as explained below:

  • Primary details (1): Configuration Name: This will be the unique name of Xray configuration. Client ID: Enter Xray client ID client Secret: Enter Xray client secret Note: To learn, how to generate client secret in Xray, please refer to: https://docs.getxray.app/display/XRAYCLOUD/Global+Settings%3A+API+Keys

  • Jira configuration connection:

    1. If user want to create new Jira configuration to connect to Xray, click on create new jira confiration

    2. To learn about Jira connection with Xray, please refer to the Jira section below.

    3. If user already have Jira configuration, select Jira configuration from the drop-down menu (3)

This will load all of Jira projects, scroll and select all the projects as per requirement.

Now create configuration button (4) will be enabled, user can click and Xray configuration setup is ready, now the user can proceed to Mobility service to connect Mobility project test.

  1. To create new Xray configuration, select + (1) icon as shown in image below.

  2. To edit Xray configuration to update projects or update any other credential, click on edit button (2) shown in image below.

  3. To delete Xray configuration, click on delete button (3) shown in image below.

  4. To update Xray configuration, click on update configuration button (4) as shown in image below.

Integrations_Xray_Update_Config

Once user have connected Xray, the user can navigate to connected mobility project and click the Xray icon on their script. The integration menu is shown below.

Integrations_Xray_Update_Config

Follow following steps to integrate the test:

  1. choose Xray configuration : This dropdown will list all the Xray configuration connected with user current project, please select relevant Xray configuration and proceed.

  2. Qyrus Script : This dropdown is non-editable and will provide name of current project.

  3. Xray Issues : This Dropdown will list all the Xray issue connected in Xray configuration, please select relevant Xray issue and proceed.

  4. execute test : After Xray integration, navigate to test step window. All the steps should be added to the Xray integration in Jira. Select execution configuration according to your test requirement. Executed test can be checked in the Jira tool. An example of the execution on Jira is shown below.

  5. Check completed test run in test run tab as shown above.

  6. Check all the test in result page by clicking on square icon in test runs as shown above.

  7. Verify all the step results in results page.

Configuration Setup Jira

If the user has not created any Jira configuration, go to Jira integration, by clicking on Jira card (2) as shown in overview section, and follow below steps:

  1. To create new Jira configuration, select + (1) icon as shown in image below.

  2. To edit Jira configuration to update projects or update any other credential, click on edit button (2) shown in image below.

  3. To delete Jira configuration, click on delete button (3) shown in image below.

  4. To update Jira configuration, click on update configuration button (4) as shown in image below. To create Jira configuration, click on new configuration window:

    • please fill all the fields, as explained below: Integrating with Jira tools:

      1. configuration name: This will be the unique name of Xray configuration.

      2. Domain URL: This will be the name of organization application connected with Jira.

      3. user Email: This will be user mail which have authorization from Jira.

      4. API token: And this will be integration api token user can generate using Jira platform by navigating here.

    • To learn how to integrate Xray in Jira project, please https://docs.getxray.app/display/XRAYCLOUD/Quick+Setup

    • Integrating with mobile testing:

      1. Teams: Here user can select from list of all the teams they are part of.

      2. Project: Here user can select from list of all the project from selected team and services.

Integrations_Jira_Mobility_Config

Configuration Setup Testrail

Navigate to the Integrations page either by clicking on the integrations icon

Integrations_Icon

on the side navbar or by clicking on the icon from the dropdown of the person icon.

Integrations_Navbar

Click on the TestRail icon to view/create the configurations.

Integrations_Testrail_Icon

If there are no existing configurations, a form to create a new configuration will appear.

Integrations_Xray_New_Config

If there are existing configurations, there will be a list of configurations on the left panel and a detailed view of the configuration on the right.

Integrations_Xray_Exisiting_configs

To edit an existing configuration, click on the pencil once the configuration is selected from the left panel.

Click on the plus icon to create a new configuration.

Required fields in the form are marked the red asterisk:

  • Configuration Name

  • URL of the TestRail account

  • Username

  • Password

Click on “Get TestRail Projects” button to get a list of projects* associated with the account information in the form. Select one project from the list.

Below the TestRail projects, there is a section for selecting Qyrus projects which should display all the teams, services and projects that the current user is part of.

Integrations_Xray_Teams

In order to create a configuration, the user must select one TestRail project along with at least one Qyrus project.

***Keep in mind that a Qyrus project can either be linked to TestRail or Xray and not both ***

User can use the status toggle to make the configuration active/inactive. Inactive configurations cannot be used to link test cases from TestRail to Qyrus scripts.

A Configuration can be deleted by clicking on the trash icon and then the delete button in the confirmation dialog box. When a configuration is deleted, all the linked scripts of the configuration are also deleted.

Integrations_Delete_Config

Linking Qyrus Test Suite to TestRail Test Run

Navigate to the project a TestRail configuration is linked to. Hover over a Test Suite to view the TestRail icon over the script. Click on the icon to open a panel to the right.

TestRail_Suite_Link
TestRail_Suite_Link_Options

Choose a configuration and that will trigger a call to fetch the test plans within the TestRail project that is linked to the configuration. Once a toast appears that the test plans are found, select a test plan from dropdown if available.

TestRail_Test_Plan

Choosing a test plan from the dropdown menu will trigger a call to fetch the test runs available within the selected test plan. Selecting "None" as the value of the test plan field will show test runs not associated with a test plan. Test runs are considered "available" if they are not already linked to a Qyrus Test Suite.

TestRail_Test_Run

Once test run has been selected the user may link their Qyrus Test Suite to their TestRail test run using the "Link" button.

TestRail_Link_Toast

Linking Qyrus Global Variable Environments to TestRail Test Runs

After selecting the TestRail Configuration, TestRail Test Plan, and TestRail Test Run that you would like to Link to the Test Suite, as disscussed in the previous section, and additional Global Variable Environments exist in the Qyrus Project, the button underneath "Link Additional Environments" will be enabled.

***The TestRail Test Run that you link to the Test Suite will be used for the "Global" Global Variable Environment. The "Global" Global Variable Environment is the Default Global Variable Environment that gets created with each Qyrus Project. When executing a Linked Qyrus Test Suite or Test Script with the "Global" Global Variable Environment, the execution results will be sent to the corresponding Tests within the TestRail Test Run selected in the third drop-down.***

TestRail_Environment_Link_Setup

Pressing the button underneath "Link Additional Environments" will show fields for specifying the Qyrus Global Variable Environment and TestRail Test Run that you would like to link.

TestRail_Environment_Link_Selection

Once the Qyrus Global Variable Environment and TestRail Test Run have been specified in their respective fields, the user can choose to add another link to an additional Global Variable Environment.

***Please note that one Qyrus Global Variable Environment can only be linked to one TestRail Test Run. However, one TestRail Test Run has the ability to be linked to multiple Qyrus Global Variable Environments. Additionally, Qyrus Global Variable Environments can only be linked to TestRail Test Runs pertaining to the TestRail Test Plan that the Qyrus Test Suite is linked to (specified in second drop-down).***

TestRail_Environment_Link_Completion

When the user has specfied all the necessary information for linking their desired Qyrus Global Variable Environments to TestRail Test Runs, the "Link" button can be clicked to confirm this Link relationship between the Qyrus Test Suite and Qyrus Global Variable Environments to TestRail Test Runs.

TestRail_Environment_Link_SuccessToast

Linking Qyrus Test Scripts to TestRail Tests

Navigate to the project a TestRail configuration is linked to. Hover over a script to view the TestRail icon over the script. Click on the icon to open a panel to the right.

***Screenshots below are for the Mobile Testing service, but can find the same functionality in Web Testing if you navigate to the Test Lab section of the service***

Integrations_TestRail_Mobility1
Integrations_TestRail_Mobility1

Choose a configuration and that will trigger a call to fetch the test cases* within the TestRail project that is linked to the configuration. Once a toast appears that the test cases are found, select a test case to link with the Qyrus script.

Integrations_TestRail_Cases

As long as the test case is not already linked to another Qyrus script, the linking should be successful, and a success toast would be displayed. After a script is linked, it would always be marked by a TestRail icon and suite which the script is in will display the TestRail icon as well.

Integrations_TestRail_Script_Icon

Click on the TestRail icon on a linked script, to view the configuration that is used for linking as well as the option to unlink the script from the test case in TestRail.

Integrations_TestRail_Linked

Click on the Unlink button and confirm the unlinking in the dialog box that follows to remove the link between the Qyrus script and the test case in TestRail.

Relinking Qyrus Test Suite

The user is now able to relink their scripts to TestRail as shown below

TestRail_Relink_Button

Once the user clicks the relink button above they will have the option to select their Test Plan and Test Run again from TestRail.

TestRail_Relinking_No_Selection
TestRail_Relinking_With_Selections

The relinking functionality lets the user create a new link to their Test Plan and Test Run. Test Scripts linked to TestRail within this Test Suite will be linked to tests within the new Test Run that share the same TestRail Case ID. If no tests sharing the same TestRail Case ID are found then, Test Scripts within the Test Suite will be unlinked.

Once the user clicks the Relink button again the message below will display. Once the user clicks confirm the Test Scripts will be relinked.

TestRail_Relinking_Button_Clicked

Relinking Qyrus Global Variable Environments

The user is now able to relink their Global Variable Environments to TestRail as shown below

TestRail_Environment_Relink_Button

Once the user clicks the relink button above they will have the option to select the new TestRail Test Plan and TestRail Test Run that they would like to link the Qyrus Test Suite to.

***Changing the Test Plan that the Qyrus Test Suite is linked to will reset the Global Variable Environment Links currently in place.***

TestRail_Environment_Relink_No_Selection
TestRail_Relinking_With_New_Test_Plan
TestRail_Relinking_With_Selection

The relinking functionality for Qyrus Global Variable Environments lets the user delete or modify existing Global Variable Environment links for the Qyrus Test Suite, while also providing the ability to create new Global Variable Environment Links. Relinking of Test Scripts that are linked within the Test Suite will occur at the time of test execution when executing with a linked Global Variable Environment.

Once the user clicks the Relink button again the message below will display. Once the user clicks confirm the Global Variable Environments will be relinked.

TestRail_Relinking_Button_Clicked

Execution With Linked Qyrus Scripts, Suites, and Global Variable Environments

If a linked script or suite which has linked script(s) to TestRail is executed, the linked TestRail test run will be updated with the execution results of the Qyrus Test Script.

TestRail_Pass_Example

Each TestRail test linked to a Qyrus Test Script will be updated with details of the execution results and will include a Qyrus Report of test results. Each of the test cases would have a comment as well which has more details about the execution like the time the execution was triggered on and the device/ browser the execution ran on.

When executing a Linked Test Suite or Linked Test Script with a Linked Global Variable Environment, the execution results for the linked Test Scripts will be sent to the corresponding tests with the same TestRail Case ID within the TestRail Test Run that the selected Global Variable Environment is linked to. If no tests sharing the same TestRail Case ID are found then the execution result will not be sent to TestRail.

TestRail_Environment_Execution_Example1
TestRail_Environment_Execution_Example2
TestRail_Environment_Execution_Example3
TestRail_Environment_Execution_Example4

Notes

  • If a configuration is disabled, it would be unavailable to link scripts. Also, if a configuration has linked scripts already when it is disabled, the linked scripts will not have the TestRail icon over it if there are no other available configurations for the project. If there are other configurations, click on the TestRail icon for linked scripts that are part of the disabled configuration and unlink them in order to link them to other configurations.

  • If a linked script is part of an execution where the configuration is disabled, that execution will not create a new test run or update the results on TestRail.


  • Due to the TestRail APIs using pagination, only the first 250 projects will be displayed and only the first 250 test cases within each suite of a project will be available to link to a Qyrus script for the current iteration of the integration.

Last updated