Answered by:
Executing Test Cases with Shared Steps

Question
-
Answers
-
Hi K Riehl,
Shared steps just a set of test steps, not a test case, so there is not test result for shared steps, shared steps always contains in test cases, when you run those test case, there exist test result, but the result are for test cases not for shared steps. So the result of test case 1 won't effect test case 2, won't flow through to test case 2.
Regards,
Lily Wu [MSFT]
MSDN Community Support | Feedback to us
- Proposed as answer by Aseem Bansal [MSFT]Microsoft employee Monday, August 13, 2012 5:39 AM
- Marked as answer by K Riehl Wednesday, August 15, 2012 3:08 PM
All replies
-
Hi K Riehl,
Thank you for your post.
Shared steps are a common set of test steps, so the action recording of the shared steps will impact in all test cases that contain the shared steps. What action you record for the shared steps, what will play back of this shared steps in all test cases.
Regards,
Lily Wu [MSFT]
MSDN Community Support | Feedback to us
-
Thanks for the reply Lily!
In regards to you response, "What action you record for the shared steps, what will play back of this shared steps in all test cases.", another question:
If test case 1 and test case 2 have shared steps in common, and I run test case 1, do the results of the run of test case 1 flow through to test case 2?
Through some testing of using shared steps, my thought is that the results for the shared steps in test case 1 do not flow through to the results for test case 2. Each test case could possibly have the shared steps executed at different points. Each test case would need to be executed to determine if the shared steps passed or failed.
Thanks,
K Riehl
Ken Riehl
-
Hi K Riehl,
Shared steps just a set of test steps, not a test case, so there is not test result for shared steps, shared steps always contains in test cases, when you run those test case, there exist test result, but the result are for test cases not for shared steps. So the result of test case 1 won't effect test case 2, won't flow through to test case 2.
Regards,
Lily Wu [MSFT]
MSDN Community Support | Feedback to us
- Proposed as answer by Aseem Bansal [MSFT]Microsoft employee Monday, August 13, 2012 5:39 AM
- Marked as answer by K Riehl Wednesday, August 15, 2012 3:08 PM