Skip to end of metadata
Go to start of metadata

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

Compare with Current View Page History

« Previous Version 19 Next »

Contents

 

Test Definition - User interface

The test definition view can be reached by selecting a test project from the Tests section in the main navigation bar.
The view consists of three parts:

Definition Tree

The definition tree is located on the left side of the view and is always visible.
It's used to organize the tests needed in the selected test project.
To edit the definition of a test it has to be part of a definition tree.
Tests that are part of a definition tree can also be added to test plans more easily later.

The definition tree contains folders and tests below a root folder named after the corresponding project.
This allows you to organize and structure the tests of your test projects.

Every test can occur one time in the definition tree.
From there it can be added to multiple test plans.

Selecting a test in the definition tree opens the issue detail view for this test on the right side.
Selecting a folder in the definition tree opens the reading view for this folder on the right side. 
 

Reading View

The reading view provides an alternative perspective on the content of a tree folder.
It's located on the right side of the definition view and is only visible if a folder (including the root folder) is selected in the definition tree.

The reading view displays the folder selected in the definition tree and visible subfolders as list.
For every displayed folder the contained tests are also displayed. 
 

Issue Detail View

The issue detail view displays all important information about a test and provides interfaces to edit the definition of a test.
It's located on the right side of the definition view and is only visible if a test is selected in the definition tree.

As described in the Tests - Concept Guide test are JIRA issues extended by the possibility to attach test steps and test parameters.
The issue detail view displays all information about the test / issue similar to the standard JIRA issue view.
It also displays issue links for the test and provides methods to create, edit and delete issue links.
It also displays test specific information for the selected test such as

  • test steps 
  • parameters
  • test plans that contain the selected test
  • the definition tree path for the selected test

Reading View - Operations

  • Click on the issue key of a test to select the corresponding test item in the definition tree.
  • Click on a folder to expand/collapse its content.
  • Right click on a folder and select
    • Expand all to expand all folders displayed in the reading view.
    • Collapse all to collapse all folders displayed in the reading view.

Issue Detail View - Operations

The issue detail view provides interfaces for

All of the above-mentioned concepts are documented on separate pages in this documentation.
Except for editing issues and managing issue links which is documented in the JIRA documentation. 

Definition Tree - Context menu operations

The definition tree can contain items of three different types.
These are tree folders, test items and a root folder.
Each of these item types has its own set of context menu entries, whereby some menu entries are present in more than one set.
For each of the following context menu operations the item types providing this operation are indicated.

Folder related operations


Available for:tree folderroot foldertest item
Create folderOpens the create folder dialog.
Within the dialog you can enter a name and a description for the new folder.
Attachments can be uploaded for folders and inserted into the description field. Only images are supported.
Note that the names of folders with the same parent folder have to be unique.
Click Create to create the new folder below the selected one. 

EditOpens the edit folder dialog.
The dialog allows you to change the name and the description of a folder.

DeleteOpens the delete folder dialog.
Deleting a folder will also delete all subfolders and remove all contained tests from the definition tree.
The tests won't be deleted and can be added again later.

Expand allExpands the selected tree folder and all subsequent folders.

Collapse allCollapses the selected tree folder and all subsequent folders.

Refresh folderRefresh the folders content and fetch new data from server.

Show in issue navigatorOpens the JIRA issue navigator in a new browser tab / window.
Applies a search query using the testDefinitionPath JQL extension to display all issues contained
in the selected folder and its subsequent folders in the issue navigator. 

CutStage a folder or test for cutting.

PastePaste staged content into the selected folder.
Note that the staged content will be moved to the new folder not copied.
Cutting and pasting can be used only within the same plan tree.
A staged test can be pasted to every folder of the same plan tree.
A staged folder can be pasted to the root folder of the same plan tree.
Moving a folder to another tree folder can be done via drag and drop. 

Test related operations


Available for:tree folderroot foldertest item
Create issueOpens the JIRA Create Issue dialog.
More information to creating issues can be found in the JIRA documentation.
Click Create to create the new issue / test and add it to the selected folder or the parent
folder if a test item was selected.

Add existing issuesOpens the add existing issues dialog.
Select Add all ... to add all issues created on the selected test project that aren't already part of the tree.
Select Search for issues to search for recently viewed issues to add them to the selected folder.
Select From filter to add all issues matching the provided filter or JQL query.
Note that when selected Search for issues or From filter the selected issues do not necessarily come
from the same project the definition tree belongs to.
Also issues that are already part of this definition tree won't be added. 

Edit issueOpens the JIRA Edit Issue dialog.
More information to editing issues can be found in the JIRA documentation.

Add linkOpens the add link dialog.
This allows you to  add a JIRA issue link between the test selected in the definition tree and one or more
tests selected from the dialog. 

Test executionOpens the add execution dialog for this particular test.
This allows you to create and run a single test execution right out the definition tree.
For further information take a look at the Test Execution - Reference. 

RemoveOpens the remove test dialog.
The test will only be removed from the definition tree.
It won't be deleted and can be added again later. 

Definition Tree - Drag and drop operations

The definition tree supports the following drag and drop operations:

  • Change folder positions
  • Change the folder hierarchy
  • Change the position of tests
  • Move tests between folders

Definition Tree - Filter

Click on the Filter button to open the filter input.

Similar to the JIRA issue search the filter input provides a basic and an advanced mode.
In basic mode you can select  a saved filter to apply. The advanced mode allows you to enter a JQL filter query.
You can switch between the two modes by clicking the Advanced / Basic button.

Once a filter is applied only tests matching the filter query are displayed.
An orange warning symbol located in the top right corner of the definition tree indicates that a filter is applied.

Click on the Clear button to remove a filter in advanced mode.
To remove a filter in basic mode click on the next to the selected filter. 

Definition Tree - Export

Click on the Export button to open the export menu.
Select an export format from the list to export the definition tree content to.
The exported content depends on the type of the item currently selected.
An applied filter also affects the exported content.

The following tables describe the export content in each format depending on issue type and applied filter.

Since the XML export provides information that can be used to integrate another application with T4J via its REST API a complete example export file is provided.
The example file is the result of an export with the root folder of the definition tree selected and no filter applied. It covers the structure of the root item, a folder item and a test item.
Note that there's no example export for Excel and Word since those export formats are mostly used for internal documentation purposes. Therefore a textual description of the content should be sufficient. 

Plan Tree - Export formats

XML

Type of the selected tree itemContentFilter applied
Test itemDetailed information about the selected test item including item ids that can be used for REST API calls.


Contains the same information stated above.

Tree folderContains no information except for the following items: <trees><tree/></trees> 


Detailed information about the selected tree folder and all subsequent folders and contained test items.

Root folder or nothing selectedDetailed information of the root folder.


The content is equivalent to the content when selecting a tree folder just with the root folder as top level element. 

Example response
<?xml version="1.0" encoding="UTF-8"?>
    <trees>
        <tree>
            <folders>
                <name>PROJECT</name>
                <description/>
                <id>-1</id>
                <nameDisplay>PROJECT</nameDisplay>
                <parent>-2</parent>
                <folders>
                    <name>Example Folder</name>
                    <description>An example folder</description>
                    <id>658</id>
                    <nameDisplay>Example Folder</nameDisplay>
                    <parent>-1</parent>
                    <folders>
                        <name>Subfolder</name>
                        <description>A subfolder of the example folder.</description>
                        <id>668</id>
                        <nameDisplay>Subfolder</nameDisplay>
                        <parent>658</parent>
                        <issues>
                            <id>1000</id>
                            <issueId>12300</issueId>
                            <key>PRJ-20</key>
                            <url>http://host:port/jira/browse/PRJ-20</url>
                            <summary>ExampleTest</summary>
                            <description>test description</description>
                            <descriptionHTML>&lt;p&gt;test description&lt;/p&gt;</descriptionHTML>
                            <iconUrl>http://host:port/jira/images/icons/issuetypes/newfeature.png</iconUrl>
                            <issueType>New Feature</issueType>
                            <position>1</position>
                            <status>To Do</status>
                            <statusUrl>http://host:port/jira/images/icons/statuses/open.png</statusUrl>
                            <priority>Major</priority>
                            <priorityUrl>http://host:port/jira/images/icons/priorities/major.png</priorityUrl>
                            <attributes>
                                <attribute>
                                    <name>Custom - Hidden Job Switch</name>
                                    <value>false</value>
                                </attribute>
                            </attributes>
                            <links>
                                <link>
                                <linkName>is blocked by</linkName>
                                <issueKey>PRJ-17</issueKey>
                                <issueSummary>Linked Issue</issueSummary>
                                <issueUrl>http://host:port/jira/browse/PRJ-17</issueUrl>
                                <priority>Major</priority>
                                <status>To Do</status>
                                </link>
                            </links>
                            <teststeps>
                                <teststep>
                                    <id>53</id>
                                    <name>Example Test Step</name>
                                    <description>An example test step using parameter p1: ##p1##</description>
                                    <result>The expected result.</result>
                                </teststep>
                            </teststeps>
                            <parameters>
                                <parameter>
                                    <key>p1</key>
                                    <value>parameter value</value>
                                </parameter>
                            </parameters>
                            <path>Example Folder</path>
                            <path>Subfolder</path>
                            <combinedPath>\PRJ\Example Folder\Subfolder</combinedPath>
                        </issues>
                        <position>1</position>
                    </folders>
                    <position>1</position>
                </folders>
                <position>0</position>
            </folders>
        </tree>
    </trees>


Excel

Type of the selected tree itemContentFilter applied
Test itemContains basic information about the selected issue. Also contains information about issue links, test steps,
parameters and custom JIRA issue fields. 


Contains the same information stated above.

Tree folderContains no information.


Contains the name of the selected folder. Contains the folder path for all issues contained in the selected folder
and subsequent folders. Also contains basic informations for those issues and information about the test steps. 

Root folder or nothing selectedContains the name of the project.


The content is equivalent to the content when selecting a tree folder just with the root folder as top level element.


Word

Type of the selected tree itemContentFilter applied
Test itemContains basic information about the selected test item. Also contains information about issue links, test steps,
parameters and custom JIRA issue fields. 


Contains the same information stated above.

Tree folderContains no information.


Contains the name of the selected folder and all subsequent folders and basic information about the
contained issues. 

Root folder or nothing selectedContains the name of the project.


The content is equivalent to the content when selecting a tree folder just with the root folder as top level element.


Advanced search integration

T4J provides custom JQL to enable searching integrated issues in Jira.

See Advanced Search Integration to know more.

  • No labels