How can we improve Azure DevOps?

Add the ability to use the same shared step multiple times with different parameters in the same iteration

This suggestion is migrated to Developer Community. Please use below link to view the current status.
At present you can use a shared step multiple times in the same iteration, however, you can only use it with the same parameter values.

It would be extremely useful from a test case design perspective if you could use a shared step multiple times in the same iteration with different parameter values each time the shared step is used.

121 votes
Sign in
Password icon
Signed in as (Sign out)

We’ll send you updates on this idea

Mark Batcheler shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →


Sign in
Password icon
Signed in as (Sign out)
  • Dave Martin commented  ·   ·  Flag as inappropriate

    This is completely ludicrous that this functionality doesn't exist yet. Every other test management tool I have ever used will allow you to iterate in this way. This is deeply limiting. I now have to create a bunch of shared steps that differ only in a handful of variables, which results in duplication.

  • Joseph Young commented  ·   ·  Flag as inappropriate

    Having this feature would reduce work by a significant multiplier. While automatic pass through variable is nice at times, having the ability to change the variable to do the same thing just slightly differently in a single test case would make shared test cases much more viable. Many of our test case scenarios are the user doing something twice or more, slightly differently in sequence.

  • Marc commented  ·   ·  Flag as inappropriate

    This would be extremely useful for us, because we need to add several items (adding an item is a shared step) in our application within a single test case and then act upon these added items. Each item has a name and this is expressed through a parameter inside of the shared step. Now if I added several shared steps one after the other, the items would all have the same name. This makes the use of shared steps inappropriate, since the parameter value is always the same.
    Please add this ability so we can use TFS in a more clean way.

  • Frédéric Ruelle commented  ·   ·  Flag as inappropriate

    It is amazing that this basic feature is not yet implemented, like the one of nested shared steps which is also not possible.... This limit a lot the use of shared steps !

  • Leandro Santos commented  ·   ·  Flag as inappropriate

    I'm interested on this topic too. We are using shared steps as well, but when this steps need to be repeated on the same TC but using different parameter values we cannot do it and have to either create messy TC with all the steps from shared steps inside the main test case so we can change the parameters name.

    Example: Test case were I want to simulate users login in the website and buying different products.
    I would have 2 shared steps:
    Shared step 1: User login with @username @psw
    Shared Step 2: and I select and buy @product @quantity

    My TC would be:
    Shared step 1
    Shared Step 2
    Shared Step 2
    Shared Step 2
    Shared Step 2

    But I cannot since for one iteration the parameters @product @quantity will be always the same

  • Mark Batcheler commented  ·   ·  Flag as inappropriate

    Hi Ravi

    I've now upgraded to Test Manager 2015 and had the chance to review this properly. Whilst the Shared Parameters functionality is certainly useful, I'm not sure that it covers this suggestion.

    In the suggestion above I'm looking to be able to run a test case once but be able to loop through one or more of the parameters during one iteration.

    For example:
    Test Case 1 Iteration 1
    Shared Step 1 (Step 1)
    Shared Step 2 (Step 2)
    Shared Step 3 (Step 3)
    Step 4
    Step 5
    Step 6

    Step 7 with parameter 1 set to value 1
    Step 8 with parameter 2 set to value a
    Step 9 with parameter 3 set to value !

    Step 7 with parameter 1 set to value 2
    Step 8 with parameter 2 set to value b
    Step 9 with parameter 3 set to value #

    Step 10
    Shared Step 4 (Step 11)

    This would be useful because sometimes a test case can become very large and you don't always want to have to run the same test case multiple times across different iterations. Currently, you have to go through every step in sequential order before starting again on a new iteration.

    The new shared parameter functionality doesn't really allow for this and instead allows you to use the same parameters across multiple test cases (Which in itself is useful)

  • Mark Batcheler commented  ·   ·  Flag as inappropriate

    Hi Ravi.

    I think I need to see this in action upon upgrading to 2015 before I can comment. We plan to do so within the next couple of weeks.


    Mark Batcheler

  • AB commented  ·   ·  Flag as inappropriate

    Yes, please! I was really disappointed when I found that this could not be done. Now I have to create very redundant test steps multiple times.

  • DW commented  ·   ·  Flag as inappropriate

    More flexibility in this area to apply different sets of parameter values to multiple calls to the same shared step would really make shared steps more valuable to our organization.

Feedback and Knowledge Base