Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Test Repository is a project-level Test organization feature that allows users to organize Tests hierarchically via folders. Always keep in mind that each project has its own Test Repository and that a Test can only belong to one folder within the Test Repository. 

This page will help you understand the Test Repository screen and the available operations within it, such as the ability to easily create Test Executions or Test Plans from a given folder or from some selected Tests.


Info
titleLearn more

Please refer to theOverview of the Test Repository for a more detailed information of this feature, its pros and cons, and recommendations.

...

Info
titlePlease note

To edit the Test Repository of a given project, you must be able to, at least, access the project (i.e., browse permission) and have one of the project roles configured in Xray settings , for that project.

Overview of the Test Repository UI

...

The image below depicts the several key areas of the Test Repository screen, which includes the Test Repository itself, along with some auxiliary folders.



A: Folders section

    • A1: "All" and "Orphans" metafolders
    • A2: the Test Repository itself, composed of folders and sub-folders with Tests organized within them
    • A3: CRUD actions for the current selected folder (e.g., create, rename, delete)
    • A4: information about the number of Tests within the current folder and the total Tests, including sub-folders

B: Tests section

    • B1: path of the folder
    • B2: filter for Tests 
    • B3: additional information about the shown Tests versus the actual total number of Tests within the current folder 
    • B4: ranked list of Tests within the current folder (only direct children)

Folder Actions

A folder can be selected by clicking on it. Once selected, you can perform context actions or use the icons available at the bottom of the folders' section.

...

You can easily remove an existing folder, and its descendant folders.

Tests that were in one of the removed folders will not be erased;. Tests will be removed from the Test Repository, but will appear in the Orphans meta-folder, so they can be organized in the Test Repository again, if needed.

...

A folder, including its descendants, can be moved to another folder just by using dragdragging-and-drop dropping to the destination folder.

...

Dragging the folder directly on top of some existing folder will append it to the list of current child folders.

It is possible You can also to move directly to a given position/rank by choosing the interim space between two existing folders.

...

Step 2: Use the context action "Create Test here".

Image Removed

TO DOImage Added

Step 3: Fill out the Test fields and click "Create". Your brand-new Test and associated with the selected folder.

TO DOImage Added  Image Added

Add Tests

You can "add" Tests to an existing folder based on some filters or JQL.

This action corresponds to "moving" them from any folder they may already be in (including the Orphans) to the destination folder. Thus, if you "add" a Test that is currently in some folder within the Test Repository to some destination folder, then it will essentially be moved from the source folder to the destination folder.

...

Step 2: Use the context action "Add to Tests".

Step 3: Choose the Tests you want using the provided filters, a previously saved filter or by JQL.

...

Note: If you try to add non-Test issues (e.g., by using a saved filter), an error message will be showndisplayed.

Create Test Set

You can easily create a Test Set using all the Tests in a given folder and its descendant folders.

...

In order to create a Test Set with all the Tests of in a given folder, including its descendants:

...

Step 2: Use the context action "Create Test Set".

       

Step 3: Fill out the Test Set fields and click "Create". Your brand-new Test Set is created with all the Tests, in the proper order.

...

The ranking of the Tests within the Test Set will respect the ranking they already have in the Test Repository folder. If Tests already exist in the destination Test Set, then their ranking in the Test Set is not changed.

...

Step 3: Choose the Test Set(s) key(s) and select "add Add selected". The Test Set(s) will now be updated.

...

In order to create a Test Execution with all the Tests of in a given folder, including its descendants:

...

Step 2: Use the context action "Create Test Execution".


       

Step 3: Fill out the Test Execution fields and click "Create". Your brand-new Test Execution is created with all the Tests, in the proper order.

...

The ranking of the Tests within the Test Execution will respect the ranking they already have in the Test Repository folder. If Tests already exist in the destination Test Execution, then their ranking in the Test Execution is not changed.

...

Step 2: Use the context action "Add to Test Execution".


Step 3: Choose the Test Execution(s) key(s) and select "add selected". Test Execution(s) will now be updated.

...

In order to create a Test Plan with all the Tests of in a given folder, including its descendants:

...

Step 2: Use the context action "Create Test Plan".

Step 3: Choose Decide if you wish want to replicate or not the structure, including the ascendant folders, in the Board of the destination Test Plan       

...

Step 4: Fill out the Test Plan fields and click "Create". Your brand-new Test Plan is created with all the Tests, in the proper order.

...

Step 2: Use the context action "Add to Test Plan".

Step 3: Choose Decide if you wish want to replicate or not the structure, including the ascendant folders, in the Board of the destination Test Plan

...

Step 4: Choose the Test Plan(s) key(s) and select "add Add selected". Test Plan(s) will now be updated.

...

Tests can be selected by clicking on them. Multiple selection is possible by using the "Ctrl" key (on Windows) or the "Cmd" key (on OS X). The "shift" keys can be used to select a list of Tests from the currently selected test to the clicked one.If you want to select more than one Test and the Tests are listed consecutively, use the "Shift" key to quickly select an entire group. Click the first Test in the list you want to select, hold down the "Shift" key, scroll down to the last Test you want and click it. This selects the first item, the last item and all items in between.

You can filter the list of visible Tests to make it easier It is also possible to filter the list of visibile Tests, making it easier for you to pick the Tests you need.

...

Filtering visible Tests

The list of visibile visible Tests can be filtered, so you can easily see and obtain the relevant Tests you need. Note that the filter applies even if is applied when you change to another folder.

...

Tests can be moved to another folder just by using dragdragging-and-drop dropping to the destination folder.

...

Tests can be ranked within a folder by using drag-and-drop. 

Create Test Set

A Use the context action Create Test Set to create a new Test Set can be created containing the selected Tests. For this, the context action "Create Test Set" should be used. 

Add to Test Set(s)

Selected Tests can be added to an existing Test Set. For this, Use the context action " Add to Test Set to add selected Tests to an existing Test Set" should be used. 


Create Test Execution

A Use the context action Create Test Execution to create a new Test Execution can be created containing the selected Tests. For this, the context action "Create Test Execution" should be used. 


Add to Test Execution(s)

Selected Tests can be added to an existing Test Execution. For this, Use the context action " Add to Test Execution to add selected Tests to an existing Test Execution" should be used. 

Create Test Plan

A Use the context action Create Test Plan to create a new Test Plan can be created containing the selected Tests. For this, the context action "Create Test Plan" should be used. It's possible to choose whether to recreated You will be asked if you want to recreate the folder structure in the destination Test Plan.

Add to Test Plan(s) 

Selected Tests can be added Use the context action Add to Test Plan to add selected Tests to an existing Test Plan.   For this, the context action "Add to Test Plan" should be used. It's possible to choose whether to recreated You will be asked if you want to recreate the folder structure in the destination Test Plan.

...

Step 2: Use the context action "Move to Orphans".

Step 3: Confirm by clicking on "Move to Orphans".

How ranking works

...

when creating, or adding Tests to

...

, Test Sets, Test Executions

...

and Test Plans

Whenever When creating a Test Set, Test Execution or Test Plan, or adding Tests to an existing one, Xray will respect the order of the Tests, taking into account the ranking they have in the Test Repository.

The algorithm starts by adding the Tests of the folder, respecting their rank in the folder, and then iterates through the child folders. Each child folder is processed in the same way.

If a Test already exists in the destination entity (e.g., Test Set/Plan/Execution), then it is not added again and the current ranking is maintained.

...