How to: Manage Queries for Searching Home
This page is specific to:.NET Framework Version:4.0
How to: Manage Queries for Searching

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

To manage the queries that you create for searching for specific items using Microsoft Test and Lab Manager, use the following procedures:

Create a Subfolder to Store a Query

To create a subfolder to store a query

  1. Open Microsoft Test and Lab Manager.

    NoteNote

    To display the Microsoft Test and Lab Manager window, click Start, and then click All Programs. Point to Microsoft Visual Studio 2010 and then click Microsoft Test and Lab Manager.

  2. To open the Queries activity, click the down-arrow on the center group switcher and click Testing Center.

  3. In the center group menu bar, click Track and then click Queries.

    The Queries activity is displayed.

  4. To create a subfolder, right-click Team Queries folder, My Queries folder, or any other folder and then click New folder.

  5. Type the name for this new subfolder.

  6. To add a query to this new subfolder, right-click this new subfolder and then click New query.

Update a Query

To update a query

  1. Open Microsoft Test and Lab Manager.

    NoteNote

    To display the Microsoft Test and Lab Manager window, click Start, and then click All Programs. Point to Microsoft Visual Studio 2010 and then click Microsoft Test and Lab Manager.

  2. To open the Queries activity, click the down-arrow on the center group switcher and click Testing Center.

  3. In the center group menu bar, click Track and then click Queries.

    The Queries activity is displayed.

  4. To display the clauses for a query, click the query in the tree view in Queries.

  5. To update the query, edit the existing clauses or add new clauses.

  6. To see the results of your query, click Run to run the query.

  7. (Optional) If the query returns several test cases, you might want to sort the results. Click a column header in the query results table to sort by that column.

  8. (Optional) To group the query results by a column, drag a column header in the query results table to the title bar of the query results.

  9. (Optional) To display more columns for the query results, click Column options. In the Column Options dialog box, select the columns to add from Available columns, click the arrow to add these columns to the Selected columns, and then click OK.

  10. When the query you created returns the correct items that you want to view, click Save on the toolbar.

    The query is now saved.

Rename a Query

To rename a query

  1. Open Microsoft Test and Lab Manager.

    NoteNote

    To display the Microsoft Test and Lab Manager window, click Start, and then click All Programs. Point to Microsoft Visual Studio 2010 and then click Microsoft Test and Lab Manager.

  2. To open the Queries activity, click the down-arrow on the center group switcher and click Testing Center.

  3. In the center group menu bar, click Track and then click Queries.

    The Queries activity is displayed.

  4. To rename a query, right-click the query in the tree view in Queries and then click Rename.

  5. Type the new name for this query.

    The query is now displayed with the new name in the tree view of queries.

Delete a Query

To delete a query

  1. Open Microsoft Test and Lab Manager.

    NoteNote

    To display the Microsoft Test and Lab Manager window, click Start, and then click All Programs. Point to Microsoft Visual Studio 2010 and then click Microsoft Test and Lab Manager.

  2. To open the Queries activity, click the down-arrow on the center group switcher and click Testing Center.

  3. In the center group menu bar, click Track and then click Queries.

    The Queries activity is displayed.

  4. To delete a query, right-click the query in the tree view in Queries and then click Delete.

    A confirmation dialog box is displayed.

  5. To confirm deletion of the query, click Delete query.

    The query is no longer displayed in the tree view of queries.

See Also

Tasks

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View