none
Executing Test Cases with Shared Steps RRS feed

  • Question

  • When executing a test case in Test Manager that has shared steps in another test case, do the results from the execution of the shared steps get recorded in BOTH test cases?
    Thursday, August 9, 2012 3:58 PM

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

    Monday, August 13, 2012 1:57 AM
    Moderator

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

    Friday, August 10, 2012 3:28 AM
    Moderator
  • 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

    Friday, August 10, 2012 1:36 PM
  • 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

    Monday, August 13, 2012 1:57 AM
    Moderator