background image
<< Marking Testplans - Search all script statements in the plan | Marking Testplans - How to combine queries >>
Marking Testplans - Creating a new query by combining existing queries
<< Marking Testplans - Search all script statements in the plan | Marking Testplans - How to combine queries >>
250
User's Guide
11 C
ATEGORIZING
AND
M
ARKING
T
ESTPLANS
Creating and modifying testplan queries
4
Once you are satisfied with the query, do one of the following, depending
on which command you chose to create the query.
Creating a new query
by combining existing
queries
You can combine two or more existing queries into a new query through the
Mark by Named Query dialog. The new query can represent the union of the
constituent queries (logical OR) or the intersection of the constituent queries
(logical AND).
Combining by union Combining two or more queries by union creates a
new named query that marks all tests that would have been marked by
running each query one after the other while retaining existing marks. Since
Mark by Named Query clears existing marks before running a query, the only
way to achieve this result is to create a new query that combines the
constituent queries by union.
For example, suppose you have two queries, Query1 and Query2, that you
want to combine by union.
The new query created from the union of Query1 and Query2 will first mark
those tests that match all the criteria in Query1 (Developer is Emily and
Component is Searching) and then mark those tests that match all the criteria
in Query2 (Developer is Craig and TestLevel is 2).
If you chose
Then
Mark by Query
Click Mark to run the query against the testplan.
QA Organizer closes the dialog and marks the
testplan, retaining the existing marks if requested.
Mark by Named Query
Click OK to create the query. The New Testplan
Query dialog closes, and the Mark by Named Query
dialog is once again visible. The new query appears
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 without running the query, click
Close.
Query1
Query2
Developer: Emily
Developer: Craig
Component: Searching
TestLevel: 2