With Zephyr for JIRA 2.0, the new Execution Navigator allows for test executions to be searched on. Various actions can then be taken on the results.
Note that if you are just looking to search for a test, you can do that easily from JIRA's Issue Navigator. Tests are standard issue-types and can be searched on in the same way as you search any other issue-type.
The Execution Navigator can be accessed from the top-level "Tests" menu by selecting "Search Test Executions". A screen similar to the Advanced view of the Issue Navigator is displayed.
The Search box allows you to enter your search queries that are in the new Zephyr Query Language (ZQL). ZQL is a simple structured query language that allows you to string together the right fields to search on with values, using the appropriate operators and keywords. The search box allows auto-completion making it really easy to construct a query. With the cursor in the search box, select the spacebar on your keyboard to be shown a list of fields, operators, keywords and values.
For example, if you are looking for all the failed tests in the Ironclad project, you would enter a query that looked like this:
project = Ironclad AND executedStatus = FAIL
Here, project and executedStatus are fields, and ironclad and fail are the values, joined together by the keyword AND
Please refer to the ZQL Reference page for a list of all possible fields, operators and keywords.
Saving Searches
The results of a ZQL search can be saved as a filter (just like you would in JIRA's Issue Navigator). These filters show up on the left in a list of Favorite Filters.
Predefined Filters
Manage Execution Filters
Working with Search Results
Once you have completed a search, the search results section displays a list of test executions.