Test Cases - Reference
Overview
In T4J you manage test cases in a view consisting of the following parts:
Definition Tree: The definition tree is located on the left side of the view and is always visible. It is used to organize the tests needed in the selected test project. To edit the T4J specific attributes of a test case, it has to be part of a definition tree. The test cases that have been placed in a definition tree can also be added to test plans more easily.
The definition tree starts with a root folder named after the corresponding project and contains other folders and test cases under this folder. This structure allows you to organize test cases according to the needs of your project. A test case may only appear once in a definition tree.
Selecting a test case in the definition tree opens a detailed view of the case on the right side. Selecting a folder in the definition tree opens the reading view for the folder on the right side.
Reading View: The reading view is located on the right side of the view and is visible when a folder is selected. The reading view displays the items in the selected folder as a list. Subfolders can be expanded and collapsed.
Issue Detail View: The issue detail view displays the important information about a test case and provides interfaces to edit its definition. It is located on the right side of the definition view and is visible when a test case is selected.
The issue detail view displays the fields of a test case, similar to the standard Jira issue view. It displays issue links and provides methods to create, edit, and delete issue links. It also contains the following test specific information: Test Steps, Parameters, Execution, and Plan Overview.
Reading View Actions
Purpose | Action |
---|---|
Highlight test case in definition tree | Select the issue key of the test case in the reading view. |
Expand or collapse a folder | Select the folder in the reading view. |
Expand or collapse a folder and all its subfolders | Right click on the folder in the reading view and chose the desired option. |
Issue Detail View Actions
Purpose | Action |
---|---|
Modify test case | Select Edit. |
Manage issue links |
|
Manage test steps |
|
Manage parameters |
|
Definition Tree - Context Menu Actions
Menu Entry | Action | tree folder | root folder | test case |
---|---|---|---|---|
Create issue | Opens the Jira Create Issue dialog. Select Create to create the new test case and add it to the selected folder or the parent folder of the selected test case. | |||
Create folder | Opens the create folder dialog, where you enter a name and a description for the new folder. Attachments can be uploaded for folders and embedded in the description field. (Only images are supported.) Note that the names of folders within the same parent folder must be unique. Select Create to create the new folder below the selected one. | |||
Edit | Opens either the edit folder or Jira edit issue dialogs, were you can modify the item. | |||
Add link | Opens the link dialog, where you can add issue links between the selected test case and one or more test cases selected in the dialog. | |||
Delete | Opens the delete folder dialog. Deleting a folder also deletes all subfolders and removes all contained test cases from the definition tree. The test cases themselves are not deleted and can be added again later. | |||
Add existing issues | Opens the add existing issues dialog.
Issues that are already part of the definition tree but located in other folders are not added to the selected folder. Note that issues from other projects can be added to the tree. | |||
Expand all | Expands the selected tree folder and all subsequent folders. | |||
Collapse all | Collapses the selected tree folder and all subsequent folders. | |||
Refresh folder | Refreshes the folder's content by fetching new data from the server. | |||
Show in issue navigator | Opens the Jira issue navigator in a new browser tab and executes a search query using the testDefinitionPath() JQL function to display all issues contained in the selected folder and both its direct and indirect subfolders in the issue navigator. | |||
Test execution | Opens the execution dialog for this particular test, where you can create and run a single test execution. | |||
Cut | Stages a folder or test case for pasting. | |||
Paste | Pastes staged content into the selected folder by adding the items to the new folder. Cut and paste can only be used within the same definition tree. | |||
Remove | Opens the remove dialog. Note that the test case is only removed from the definition tree. The issue itself is not deleted and can be added to the tree again later. |
Definition Tree - Drag and Drop Actions
The following drag and drop operations are possible in the definition tree:
Change folder positions.
Change the folder hierarchy.
Change the order of test cases within a folder.
Move test cases between folders.
Filtering Test Cases
Select the Filter button to open the filter input, where you can restrict the the definition tree to display only test cases that meet specific criteria. There are two modes for specifying the criteria:
Basic: To simply select a saved filter.
Advanced: To enter a JQL expression.
You switch between the two modes by selecting the Advanced or Basic buttons.
Once a filter is applied, only test cases matching the filter query are displayed in the tree. An orange warning symbol in the top right corner of the tree indicates that a filter is applied.
To stop applying a filter, either select the Clear button in advanced mode or select the x next to the selected filter in basic mode.
Exporting Test Cases
Select the Export button to open the export menu, where you chose an export format from the list to export the contents of the selected item definition tree in a given format.
Export does not currently produce the expected results when a filter is activated. Remember to clear the active filter before exporting.
Format | Exported Content |
---|---|
XML | Detailed information about the selected item including issue IDs that can be used for REST API calls. See below for an example of an XML export. |
Excel | Basic information about the selected item, as well as information about issue links, test steps, parameters and custom Jira issue fields. |
Word | Basic information about the selected item, as well as information about issue links, test steps, parameters and custom Jira issue fields. |