How to: Change the State of Shared Steps to Closed

If you accidentally create shared steps, or your team no longer needs shared steps, you can change the state of the shared steps to closed using Microsoft Test Manager. Closed shared steps still exist in your team project, but only appear in the results list for queries that specifically search for closed shared steps. You can change the default query to only show open shared steps.

Requirements

  • Visual Studio Ultimate, Visual Studio Premium, Visual Studio Test Professional

Note Note

You cannot delete shared steps from your team project by using Microsoft Test Manager.

Use the following procedures to:

  • Change the state of shared steps to closed

  • Customize the shared steps manager view

To change the state of shared steps to closed

  1. Open Microsoft Test Manager.

    Note Note

    To display the Microsoft Test Manager window, choose Start, and then choose All Programs. Point to Microsoft and then choose Microsoft Test Manager.

  2. From the Testing Center, choose Organize and then choose Shared Steps Manager.

    The Contents pane is displayed.

  3. To open the shared steps to change the state, double-click the shared steps that are listed in the Shared Steps manager pane.

  4. Choose State and then choose Closed.

  5. (Optional) In the History tab, type Shared Steps No Longer Required to explain why the shared steps are closed.

  6. To save your changes, choose Save and Close.

    The list of shared steps is displayed in the shared steps manager. The closed shared steps are still displayed.

  7. (Optional) To hide the closed shared steps, you can add the state column and filter by state.

    1. Right-click in the columns header of the shared steps manager.

      A drop-down list of fields is displayed.

    2. To select the state field, choose State from the list of fields. Choose outside the drop-down list to close it and to add the field to the columns.

      Note Note

      You can select multiple fields from the drop-down list.

    3. To add a filter to the column to hide the closed shared steps, choose the drop-down arrow in the column header. Select Active to show only the active shared steps.

    Note Note

    You can also create your own query to view only active shared steps. For more information, see How to: Search for Test Cases from Microsoft Test Manager.

To customize the shared steps manager view

  1. Open Microsoft Test Manager.

    Note Note

    To display the Microsoft Test Manager window, choose Start, and then choose All Programs. Point to Microsoft Visual Studio 2012 and then choose Microsoft Test Manager.

  2. To open the Test Case Manager, choose the down-arrow on the center group switcher and choose Organize.

  3. In the center group menu bar, choose Shared Steps Manager.

    The Shared Steps Manager is displayed and all the shared steps are shown in the list.

    Note Note

    All active and closed shared steps are displayed in this view.

  4. To change the query that is used by default to show all the shared steps, choose Unfiltered and point to Edit filter.

    The Edit filter view is displayed.

  5. To add a new clause to the default query for the Shared Steps manager to only show the shared steps that are not closed, choose Choose here to add a clause and select the following values for each field:

    And/Or

    Field

    Operator

    Value

    And

    State

    <>

    Closed

  6. To add more clauses to your query to customize the shared steps returned, choose Choose here to add a clause.

  7. Choose each column in the query clause to fill in the clause. If a column has a list of accepted values, a drop-down arrow appears when the column is selected. Choose the drop-down arrow to select from the list. The following columns are available:

    Query Column

    How to complete

    And/Or

    Select And if this clause and the previous clause must be true to match a result. Select Or if either this clause or the previous clause must be true to match a result.

    Field

    The list for this field contains all the searchable work item fields used in the current Team Foundation Server. Use as many clauses and fields as you have to have in order to obtain useful results. Press ALT+DOWN ARROW or type the field name that you want to select.

    Operator

    Examples of operator choices are = (equal), <> (not equal to), > (greater than), < (less than), >= (greater than or equal to), <= (less than or equal to), In, Was Ever, Was Never, and Contains.

    Value

    Specifies the value that you are looking for in the specified field. If there is a list of values to select from, choose the drop-down arrow to select the one that you want. Team Foundation work item tracking includes some query variables to dynamically add values to your query.

  8. Repeat steps 6 and 7 to add all the values for which you want. Then choose Save query to save this query as the default query for the Shared Steps manager.

    Note Note

    To clear this query and reset to the original query, choose Filtered and point to Reset filter.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft