Creating search queries to filter test results

To filter the test results list, you can create a search query that you apply as a filter in HCL OneTest Server.

About this task

You can use rules and group of rules in your query. This procedure explains how to create a query that contains two rules and a group of rules as an example, and how to select other filters.


  1. Click New filter on the Result page.
Follow these steps to add a rule in your query:
  1. Select Add a rule in your query, and enter or select the required attribute in the fields to define the rule:
    1. Select the first attribute that you want to query in the drop-down list.
      Select Verdict.
    2. Select the condition as equal to (=) or not equal to (!=), Contain or Not contain.
      Select =.
    3. Select a value for the first attribute you selected.
      The content of this field depends on the option you selected as first attribute. Enter a value for the id, TypeTest, Version, Result, Labels, Branch, Test path, and Text attributes. For the other attributes, select a value in the drop-down list.
      Select Fail.
    4. Select either the AND or the OR operator in the first field to add a condition to compare the first rule with another rule.
    5. Select Add rule in the drop-down list.
    6. Select an attribute, a condition, and select or enter a value.
      Select Test as an attribute, select = as a condition operator, and enter mytest as a value.
Follow these steps to add a group in your query:
  1. Select Add group in the drop-down list.
    Note: A group is a collection of rules and can also contain other groups within a query. You can add a rule or a group within this group.
  2. Select a condition operator.
    Select Or.
  3. Select Add rule in the drop-down list to add a rule in the group.
  4. Select the required an attribute, an operator, and enter a value for the rule.
    Select the Type attribute, = as an operator, and Compound Test as a value.
  5. Select Add rule to add another rule in the group.
  6. Select and enter the appropriate parameters as you did for the other rules.
    Select Type as an attribute, = as a condition, and VU Schedule as a value.
  7. Click Apply if you want to apply the filter now.
    You can cancel the query or save the query when the results are found.
    image of query created to filter results
  8. Click Save.
Proceed as follows to select your filters:
  1. Enter a name for the filter and save in the dialog box that is displayed.
    The filter is displayed as a favorite filter.
    image of filter displayed as a favorite filter
  2. Click the icon Image of the filter icon. to select the filters you created from the list of saved filters.

    image of filters list
  3. Click a filter in the list of saved filters. If a filter does not display in the list, enter the name of a filter in the search field and select it.
    Note: You can delete a filter from the list or disable filters by selecting none in the list.
  4. Apply the selected filter.
    The filter is displayed as a new favorite filter in the Results page.