Search Test Cases

You can search for test cases on the Test Case tab in Test Management. Various filters are available to search the test cases. The filter will be applied to the selected Test Case Folder in the tree.

Search Test Cases based on Key or Summary

You can use the search feature to locate the required test case(s) in the current project. The search will check for the mentioned text in the Key and Summary fields of the test case by default. You can also opt to cover the fields/sections like Description, Precondition, and Test Step (including Parameters) to look for the mentioned text.

The search will occur in the latest version of the test cases of the same project. The set search preference gets preserved for the user. The user can modify the search preferences anytime afterward.

Shareable test cases can be searched only on Test Step, as they do not contain Description and Precondition.

For example, testers want to search for test cases with a specific word in the Test Case Key, Test Summary, Description, Precondition, and Test Step of the test case. When the project includes a large number of test cases, the feature helps testers locate the required test cases quickly with a particular text.

Perform the following steps to search for test cases based on Key or Summary:

  1. Go to the Test Case module.

  2. Click the Search icon.

  3. Enter text to search in the search box.

    By default, the search will check for the mentioned text in the Key and Summary fields of the test case. You can cover additional fields/sections to look for the mentioned text.

  4. Open the Include drop-down list to select Description, Precondition, Test Step fields/sections, Attachment Name, and Comments to extend the search to those fields/sections of the test case.

    • The attachment name is searchable only within test case attachments. The search does not include attachments at the step level.

    • The search operation, including attachment search, considers only the details from the latest version of the test case.

  5. Press the ENTER key on the keyboard.

    Search Test Case Option

    The search returns the test case records that include the search text in their Summary, Description, Precondition, Test Step fields/sections, Attachment Name, and Comments.

Search on Other Test Case fields

You can apply other filters like the following to search test cases. The filter can also be applied to custom fields.

Note

A maximum of ten filters, including system and custom fields, can be selected at a time.

  • Label

  • Fix Version

  • Components

  • Sprint

  • Status

  • Priority

  • Assignee

  • Reporter

  • Created By

  • Updated By

  • Created On

  • Updated On

  • Coverage Stories

Key Search

  • Search (Free Text): This option searches mentioned Key with the “Contains” clause. It filters records using partial keyword matches.

  • Search Multiple Keys (Separated by Comma): This option searches Exact Keys, separated by commas.

For example: FIT-TC-10, FIT-TC-19, FIT-TC-32, FIT-TC-67

The search result displays records that exactly match asset keys.

Note

A maximum of 200 Keys can be searched at a time.

Multi-line Search

You can search assets based on the content of the Multi Line Text Box type fields.

  • Search (Free Text): This option searches the field content with the “Contains” clause. It filters records using partial keyword matches.

  • Search Multiple Keywords (Separated by Comma): This option searches for keywords or phrases in the field using the “Contains” clause. You can enter phrases/keywords separated by a comma. If a phrase contains a comma, enclose the phrase/keyword within double/single quotes.

For example: coaching, exercises, “workout history, performance stats”

Note

A maximum of 200 keywords can be searched at a time.

Number Field Search

You can search assets based on the content of the Number Field type fields.

(A) Number Range: This option searches the field content with the “Contains” clause. It filters records using partial keyword matches.

(B) Search Multiple Numbers (Separated by Comma): This option searches for the exact numerical values in the fields. You can search for multiple numeric values separated by commas for a Custom field with the Number Field type.

For example: 141, 273, 902, 452

The search result displays assets that exactly match numbers.

Note

A maximum of 200 numerical values can be searched at a time.

Search on Specific Stories

To start the search on specific Jira stories:

  1. Click the filter menu and select Coverage/Stories from it.

    Search on Specific Stories

    The Coverage/Stories filter is added to the filter pane.

  2. Click Coverage/Stories to see the list of stories.

    List of Stories

    The Add Stories in Filter dialog box appears. You can maximize it by clicking on the icon at the top right corner.

  3. Select the stories you want to add to the test case filter and click Submit.

You can search for required stories using (A) Basic Search and (B) JQL Search.

Basic search (The Issue Type filter displays Issue Type in accordance with the Issue Type enabled for Story in Enable QMetry Features for Jira Project )

Test Case Basic Search

Switch to JQL: Clicking on Switch to JQL, the JQL editor opens. Write the query to filter the records and click Submit.

Switch to JQL

Save Filter

You can create customized filters and save them for future use. These filters can be saved with visibility either Public or Private.

Perform the following steps to save a filter:

  1. Click the filter drop-down list and select the field to apply a filter on.

    Once you apply the filter to records, you can also save it.

  2. Click Save Filter to save the filter.

    Save Test Case Filter

    The Save Filter dialog box appears.

  3. Enter Filter Name.

    Filters can be saved with visibility either Public or Private.

    • Public: Filter saved with Public visibility will be visible to all users of the project.

    • Private: Filter saved with Private visibility will be visible only to the currently logged-in user.

      For example, a project admin wants to restrict the number of Public filters that are visible to all users in the Filter list. Filters created by one user may not be that much useful to other users, hence, the user opt to make the filter as “Private” to avoid a long list of saved Filters.

      Save Private Public Filter
  4. Click Submit.

Now the filter is saved and applied.

A. The filter saved appears in the drop-down list.

B. Copy Filter: You can copy the existing filter and save it with another name.

C. Share Filter: You can share a Public filter with other users and integrate the URL on the documentation site as well. Refer to the Share Public Filter URL section.

D. Update Filter: You can edit the current filter.

E. Reset Filter Values: You can reset/clear the criteria of the saved filter.

F. Remove All Filters: You can clear all the applied filters.

Test Case Filter Options

Clear selected Item:

To clear the applied filter, click the Filter drop-down list and click the Clear Selected Item link.

Delete a Filter:

To delete a saved filter, click the Filter drop-down list and hover over the filter name. The Delete icon will become visible. Click the Delete icon.

Applying Filters with Operators

The Operators option is available in the drop-down list when you select more than one filter value. The filter considers “OR” as the default operator and applies it to filter the records, which displays records with either of the selected values. You can use the “AND” operator to consider all the selected values.

The operators are available for these fields: Label, Components, Fix Versions, Multi-lookup custom field, Labels custom field, Multi-users custom field, and Checkbox custom field.

Empty operator: Using the “Empty” operator, you can filter out records that do not have values for the specific field. The operator is available for single and multi-lookup fields.

To change the operator, click the Edit icon beside the “OR” operator.

The drop-down displays two operators: “OR” and “AND”.

You can select “AND” as the operator to apply for the filter.

Apply Operators in Test Case Search

The filter applies with the operator “AND” and the output shows the records holding both values.

And Operator in Test Case Search

Share Public Filter URL

The Share Filter option is provided to share the results of the saved Public filters through URL with other users of the same Jira instance. Users who have access to that project and Test Case View permissions can view the filter results by opening the URL. The URL links can also be integrated into other documentation sites as required.

On clicking on Share Filter, the success message appears “URL copied successfully.”

You can share the copied URL with other users.

Users can access the filtered results directly by using the URL in the browser, if they are already logged into QMetry Test Management for Jira same instance.

Share Filter
Publication date: