Creating a New Query

You can create a new query for a test plan through either Testplan > Mark by Query or Testplan > Mark by Named Query. You can also create a new query by combining existing queries.

  1. Open the test plan and any associated sub-plans.
  2. Click Testplan > Mark by Query or Testplan > Mark by Named Query.
  3. Identify the criteria you want to include in the query.
    • To include a script, a test case, or test data, use the Test Execution tab. Click Script to select a script and click Testcase to select a test case, or type the full specification yourself. To build a query that marks only manual tests, type the keyword into the Testccase field.
    • To include existing attributes and values in the query, use the Test Attributes tab.
    • To include one or more existing symbols and values, use the Symbols tab. Type the information into the Add field and click Add. The symbol and value are added to the list box.

    Do not type the dollar sign ($) prefix before the symbol name. The wildcard characters * (asterisk) and ? (question mark) are supported for partial matches: * is a placeholder for 0 or more characters, and ? is a placeholder for 1 character.

    Example 1

    If you type find_5 (* in the Testcase field, the query searches all the testcase statements in the plan and marks those test descriptions that match, as well as all subordinate descriptions to which the matching testcase statement applies, which are the test cases where the find_5 test case passed in data.

    Example 2

    If you type find.t in the Script field, the query searches all script statements in the plan and marks those test descriptions that match exactly, as well as all subordinate descriptions to which the matching script statement applies, which are the test cases in which you had specified find.t exactly. It would not match any script statements in which you had specified a full path.

  4. Take one of the following actions, depending on the command you chose to create the query:
    Mark by Query
    Click Mark to run the query against the test plan. The test plan editor closes the dialog box and marks the test plan, retaining the existing marks if requested.
    Mark by Named Query

    Click OK to create the query. The New Testplan Query dialog box closes, and the Mark by Named Query dialog box is once again visible. The new query displays in the Testplan Queries list box.

    If you want to:

    • Run the query, select it from the list box and click Mark.
    • Close the dialog box without running the query, click Close.