4 out of 5 rated this helpful - Rate this topic

Share steps between test cases

When you plan manual tests there are some sequences of steps, such as logging in, that occur in many test cases. To avoid having to enter these sequences again and again, create shared steps.

While you’re editing a test case, select a sequence of steps that you want to share:

  • Create shared steps

The steps you selected are replaced with a link to the new shared steps work item:

  • Resulting test case with a shared step.

Now you can use the shared steps in another test case:

  • Use shared steps in test cases.

A TFS query opens. Run it to find the steps you want to insert:

  • Run the query to find shared steps

When you run a test, you can either mark the whole shared sequence as passed or failed, or mark each step separately:

  • Shared steps in Test Runner.

Q: How do I use shared steps in Microsoft Test Manager?

It’s almost exactly the same in Microsoft Test Manager as in Team Web Access. The buttons look slightly different.

Q: Can I find all my shared steps, and all the test cases where they are used?

Yes. Open Microsoft Test Manager and look under Organize, Shared Steps Manager.

Shared steps and test cases are stored as work items in Team Foundation Server.

Q: Can I share steps between test plans and team projects?

Yes. But don’t forget that if you edit shared steps, the changes appear in every place you use them.

Q: Can I use parameters in shared steps?

Yes. You provide values for the parameters in the test cases where the shared steps are used.

You don’t have to provide values in the shared steps definition. However, you can provide one default row of values, which is used when you create an action recording of a standalone shared step.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.