Add the ability to use the same shared step multiple times with different parameters in the same iteration
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.
Need to understand the ask a bit more before deciding on next steps.
Is the ask here that I can have a set of parameters mentioned at a Shared Step level (outer loop) and then have additional parameters within a test case (inner loop), but be in a position to iterate through each outer loop value with multiple inner loop values, while managing the SharedStep related parameters at a single location to be shared across test cases.
Ex: @User & @Pwd at Shared Step level, but @Book, @Qty at Test case level & support the following parameter values:
@User= U2, @Pwd=p2
If yes, have you looked at the Shared Parameters capability that has been added to the product: https://msdn.microsoft.com/library/dd997832.aspx#SharedParameters
With this capability, you can manage all the parameters at one central location and be able quickly identify all the test cases that reference this SharedParameter.
So, in the above example, you will have the following values in the SharedParameter:
@User=U1, @Pwd=p1, @Book=B1, @Qty=10
@User=U1, @Pwd=p1, @Book=B2, @Qty=20 @User=U1, @Pwd=p1, @Book=B3, @Qty=30
@User=U2, @Pwd=p2, @Book=B1, @Qty=10
@User=U2, @Pwd=p2, @Book=B2, @Qty=20 @User=U2, @Pwd=p2, @Book=B3, @Qty=30
I will wait for more clarifications to this comment, but based on my current understanding, I am inclined to marking this UV suggestion as “Completed” (feature: SharedParameters)
Mark Batcheler commented
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.
Test Case 1 Iteration 1
Shared Step 1 (Step 1)
Shared Step 2 (Step 2)
Shared Step 3 (Step 3)
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 #
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
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.
This would be useful.
We really really need this feature added ASAP, please!
Yes, we need this feature.
This is really disappointing! Such a useful feature and still not implemented?
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.
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.