Versions Compared

Key

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


Panel

Searching for tests

The advanced search functionality of JIRA allows to use structured queries to search for issues. These queries are written in Atlassian's JIRA Query Language (JQL). The result set is displayed as a list of issues in the issue navigator. It is also possible to save advanced search queries for private or public use.

Test for JIRA enhances the advanced search of JIRA with new functions to search for issues in T4J specific entities such as test plans or definition trees.

Saved JQL queries can be further used for filtering or adding issues matching the query to a definition tree.




Panel
titleContents

Table of Contents
indentTable of Contents



Panel

How to search for tests

  1. Select Issues > Search for Issues from the main navigation bar
  2. Switch to advanced searching by clicking the Advanced link from the filter bar
  3. Enter a query in the search text box
  4. Click on the Search button or hit enter to execute the query
Info

The query should be of the following structure: field operator function()

You can look up the supported fields and operators for the new Requirements for JIRA functions in the function reference below.



Function Reference


Test Definition Folder

Expand

Returns the issues/tests that are contained in a specific folder in the definition tree of a project.

Syntax

Code Block
themeConfluence
firstline1
linenumberstrue
testDefinitionFolder(path)

Where path represents a part of the hierarchical structure of the definition tree.

Path should be of the following form: "project name/parentFolder/.../childFolder" 

Supported Fields

Supported Operators

=!=~!~>>=<<=ISIS NOTINNOT INWASWAS INWAS NOTWAS NOT INCHANGED
(error)(error)(error)(error)(error)(error)(error)(error)(error)(error)(tick)(tick)(error)(error)(error)(error)(error)

Examples

Find all issues that are contained in the folder "Webtests" within the definition tree of the project "OnlineHotelReservation:

Code Block
themeConfluence
firstline1
linenumberstrue
issue in testDefinitionFolder("OnlineHotelReservation/Webtests")


Test Definition Path

Expand

Returns the issues/tests that are contained in a specific folder in the definition tree of a project.
Also returns the issues/tests of subsequent folders.

Syntax

Code Block
themeConfluence
firstline1
linenumberstrue
testDefinitionPath(path)

Where path represents a part of the hierarchical structure of the definition tree.

Path should be of the following form: "project name/parentFolder/.../childFolder" 

Supported Fields

Supported Operators

=!=~!~>>=<<=ISIS NOTINNOT INWASWAS INWAS NOTWAS NOT INCHANGED
(error)(error)(error)(error)(error)(error)(error)(error)(error)(error)(tick)(tick)(error)(error)(error)(error)(error)

Examples

Find all issues that are contained in the folder "Webtests" or one of its subfolders within the project "OnlineHotelReservation:

Code Block
themeConfluence
firstline1
linenumberstrue
issue in testDefinitionPath("OnlineHotelReservation/Webtests")



Test Plan

Expand

Returns all issues/tests that are part of a specific test plan.

Syntax

Code Block
themeConfluence
firstline1
linenumberstrue
testPlan(project,plan)

Where project is the name of the project that contains the desired test plan and plan is the name of the test plan. Both parameters are optional.

Supported Fields

Supported Operators

=!=~!~>>=<<=ISIS NOTINNOT INWASWAS INWAS NOTWAS NOT INCHANGED
(error)(error)(error)(error)(error)(error)(error)(error)(error)(error)(tick)(tick)(error)(error)(error)(error)(error)

Examples

Find all issues/tests that are part of the test plan "Example Plan" on the project "OnlineHotelReservation"

Code Block
themeConfluence
firstline1
linenumberstrue
issue in testPlan("OnlineHotelReservation","Example Plan")

Find all issues/tests that are part of the test plan "Example Plan" regardless of project

Code Block
themeConfluence
firstline1
linenumberstrue
issue in testPlan("","Example Plan")

Find all issues/tests in project "OnlineHotelReservation" not yet part of any test plan

Code Block
themeConfluence
firstline1
linenumberstrue
issue not in testPlan("OnlineHotelReservation","")

Find all issues/tests in all project projects not yet part of any test plan

Code Block
themeConfluence
firstline1
linenumberstrue
issue not in testPlan("","")



Failed in Execution

Expand

Returns all issues/tests that are marked as failed in a specific execution of a given test plan.

Syntax

Code Block
themeConfluence
firstline1
linenumberstrue
failedInExecution(project,plan,execution)

Where project is the name of the project that contains the desired test plan.
Plan is the name of the test plan.
Execution is the name of a specific execution of the given test plan.
All parameters are manatory.

Supported Fields

Supported Operators

=!=~!~>>=<<=ISIS NOTINNOT INWASWAS INWAS NOTWAS NOT INCHANGED
(error)(error)(error)(error)(error)(error)(error)(error)(error)(error)(tick)(tick)(error)(error)(error)(error)(error)

Examples

Find all issues/tests that are part of the test plan "Example Plan" created on the project "OnlineHotelReservation", which were marked as failed during "Test Execution":

Code Block
themeConfluence
firstline1
linenumberstrue
issue in failedInExecution("OnlineHotelReservation","Example Plan","Test Execution")