You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 37 Next »

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.


Learn more

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


Settings


Please note

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

Overview of the Test Repository UI

The Test Repository screen can be accessed from the project left sidebar by choosing the Test Repository icon.

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.

Note: Currently, it is not possible to select multiple folders.

Create

To create a new folder:

Step 1: Click on the parent folder.

Step 2: Click on the proper add icon at the bottom of folders section.


Step 3: Type the name for the folder.

Step 4: Press Enter or click outside of the selected folder.

Rename

To rename an existing folder:

Step 1: Double-click on the folder or click the proper edit icon at the bottom of the folders' section after selecting the folder.

Step 2: Type the new name for the folder.

Step 3: Press Enter or click outside of the selected folder.

Remove

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.

In order to remove a folder:

Step 1: Click on the parent folder.

Step 2: Click on the proper remove icon at the bottom of folders section.

Step 3: Confirm the removal of folder.


Expand/Collapse

Folders can be expanded or collapsed easily just by clicking the folder's icon.

       

Expand/Collapse All

Expand all and collapse all actions are available as contextual actions.

In order to expand all or collapse all the subfolders of a folder:

Step 1: Click on the parent folder.

Step 2: Use the context action Expand All or Collapse All.


         

Moving to another folder

A folder, including its descendants, can be moved to another folder just by using drag-and-drop 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 also to move directly to a given position/rank by choosing the interim space between two existing folders.

   

Ordering / Ranking

A folder can be ranked within its parent folder by using drag-and-drop.

Note: If you wish to rank it as the last one (i.e., move it to the last position) within some parent folder, you just need to drag it to the parent folder.

   

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 be moved from the source folder to the destination folder.


In order to add Tests to a folder,

Step 1: Click on the 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 will be shown.

Create Test Set

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

The ranking of the Tests within the Test Set will respect the ranking they already have in the Test Repository folder.

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

Step 1: Click on the folder.

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.

      


Add to Test Set(s)

You can add Tests to an existing Test Set with all the Tests in a given folder and its descendant folders.

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, their ranking in the Test Set is not changed.

In order to add Tests from a folder, including its descendants, to some existing Test Set(s):

Step 1: Click on the folder.

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


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


   

Create Test Execution

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

The ranking of the Tests within the Test Execution will respect the ranking they already have in the Test Repository folder.

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

Step 1: Click on the folder.

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.

      

Add to Test Execution(s)

You can add Tests to an existing Test Execution using all the Tests in a given folder and its descendant folders.

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, their ranking in the Test Execution is not changed.

In order to add Tests from a folder, including its descendants, to some existing Test Execution(s):

Step 1: Click on the folder.

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.


   

Create Test Plan

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

The ranking of the Tests within the Test Plan will respect the ranking they already have in the Test Repository folder.

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

Step 1: Click on the folder.

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

Step 3: Choose if you wish 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.

      

Add to Test Plan

You can add Tests to an existing Test Plan using all the Tests in a given folder and its descendant folders.

The ranking of the Tests within the Test Plan will respect the ranking they already have in the Test Repository folder.

In order to add Tests from a folder, including its descendants, to some existing Test Plan(s):

Step 1: Click on the folder.

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

Step 3: Choose if you wish 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 selected". Test Plan(s) will now be updated.


   


Tests Actions

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.

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

After selecting one or more Tests, context actions can then be done on them, such as creating a Test Set, Test Execution, etc.


Filtering visible Tests

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

Filtering Tests is quite useful, for example, when creating the structure of the Test Repository based on a subset of Tests from the All or Orphans meta-folders.

     

Moving to another folder

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

You can also use this operation for "moving" Tests (i.e., adding Tests) from the meta-folders (e.g., All, Orphans) to folders within the Test Repository.

Ordering / Ranking

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

Create Test Set

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, the context action "Add to Test Set" should be used.


Create Test Execution

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, the context action "Add to Test Execution" should be used.


Create Test Plan

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 the folder structure in the destination Test Plan.

Add to Test Plan(s) 

Selected Tests can be added 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 the folder structure in the destination Test Plan.


Move to Orphans

You can move Tests to the Orphans meta-folder; this is equivalent to removing them from the Test Repository.

In order to move Tests fo the Orphans meta-folder:

Step 1: Select the Tests you want.

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

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

How ranking works whenever adding Tests to or creating Test Sets, Test Executions, Test Plans

Whenever 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.

 

  • No labels