Test Cases - How-to Guide

Overview

The major tasks for managing test cases in T4J are explained in the table below. To work on a project in T4J the first step is to navigate to its definition view, as follows:

  • Select the project to open in the test definition view, using one of the following ways:

    • Select Tests in the main navigation bar and select a project from Current Project or Recent Projects.

    • Select Tests > View all projects from the main navigation bar and select a project from the list.

  • You should now see the definition view.

Task

Action

Task

Action

Create a folder

  • In the definition tree right click on the parent folder that should contain the new folder.

  • Select Create Folder from the context menu.

  • Choose a name and an optional description for the folder.

  • Select Create to add the folder.

Edit a folder

  • In the definition tree right click on the folder you want to edit.

  • Select Edit from the context menu.

  • Update the desired values and select Update to save the changes.

Delete a folder

  • In the definition tree right click on the folder you want to delete.

  • Select Delete from the context menu.

  • Select Delete to confirm that you want to delete the folder.

Add test cases to a folder

  • In the definition tree right click on the folder to which you want to add the test.

  • Select Add existing issues from the context menu.

  • Select one of the following options:

    • Add all issues from this project not added to the tree: Add all issues in the selected project that aren't already part of the definition tree to the selected folder.

    • Search for issues: Add an issue by entering its key. (The issue does not necessarily need to come from the same project.)

    • From filter: Add issues matching a saved filter or JQL expression that aren't already part of the tree. (The issues do not necessarily need to come from the same project.)

  • Select Add to add the selected test cases to the selected folder.

If you do not already have an issue type to distinguish test case issues from other sorts of issues, we recommend that you have your Jira administrator create it. See Recommended Issue Type for Test Cases.

Display issues in Jira Issue Navigator

  • In the definition tree right click on a folder.

  • Select Show in issue navigator from the context menu.

  • The Jira Issue Navigator is opened using a JQL expression that matches the test cases in the folder.

This feature is very useful for initiating a bulk edit in Jira.

Remove a test case from a folder

  • In the definition tree right click on the test case you want to remove.

  • Select Remove from the context menu.

  • Click Remove to confirm that you want to remove the test.

The test is only removed from the definition tree currently displayed. The JIRA issue is not deleted and the test case can be added again later. Other definition trees containing the test case are not affected.

Move a test case from one folder to another

  • Cut and paste

    • In the definition tree right click on the test case you want to move.

    • Select Cut from the context menu.

    • Right click on the destination folder.

    • Select Paste from the context menu.

  • Drag and drop

    • In the definition tree select the test case you want to move.

    • Drag it onto the destination folder.

Create a new test case in a folder

  • In the definition tree right click on the folder to which you want to add the new test or select any issue in the folder.

  • Select Create issue from the context menu.

  • Fill out the form and select Create to create the new test case in the selected folder.

Edit a test case

  • In the definition tree right click on the test case you want to edit.

  • Select Edit issue from the context menu.

  • Update the desired values and select Update to save the changes.

Link test cases

  • In the definition tree right click on the test case you want to link to another issue.

  • Select Add link from the context menu.

  • Select the link type and target issue and select Link to create the link.

Execute a test case

  • In the definition tree right click on the test case you want to edit.

  • Select Test execution from the context menu.

  • Continue with the execution of the test.