已答覆 Creating Test Suites from Existing Test Cases

  • 2012年3月12日 下午 02:53
     
     
    Is there a way to create a new test suite using an existing test suite or test cases without affecting the original suite/case?  I want to preserve the state of the original, previously used test suite/case.  I've been told by my team that when you copy a test case into a new suite and then modify it, the original is also changed, so you lose the history of how a test was run in that particular iteration.

    Jolene Boumeester

所有回覆

  • 2012年3月13日 上午 04:20
     
     已答覆
     

    Jolene Boumeester,

    If you are using VS11 Beta, See Copying and Cloning Test Suites into Other Plans.

    In VS2010, when you copy-paste a test case from one test-suite to another, the test manager adds the same test case to the suite. It doesn't really create copy of that test case. If it would do so, then new work item id should be generated but the test case has same work item id.

    In order to keep the original copies of the test cases and add new copies to the new suites, follow steps mentioned below:

    • Create copy of the test cases which you want to add to new suite. (Go to Organize -> Test Case Manager -> Edit Query to get list of test cases -> select test cases -> Right Click -> Create Copy. This will generate copy of the selected test cases with new work item ids. See How to: Create a Copy of a Manual Test Case. (Alternatively, you can use TFS Tester Power Tool - Bulk Copy Test Cases for Microsoft Test Manager)
    • Create new suite (say Sprint 2/3)
    • Add the test cases created in step 1 to this sprint (Test cases added to sprint 1 remains unchanged when new tests are modified)

    -Tejas.

  • 2012年3月13日 上午 07:11
    版主
     
     

    Hi Jolene,

    Thank you for your post.

    According to your description of the issue, I suppose you want to copy test case form existing test case without effect the original test case. If I have misunderstood anything, please free feel to let me know.

    TejasJ has provided useful information in the reply. In addition, you can refer to this case http://social.msdn.microsoft.com/Forums/en-US/vsmantest/thread/9c9947eb-c5e3-47b6-8ab9-bf22dc7f5c89. In VS 10, you need to deep copy test case from existing test case with new ID.

    I hope this information will help resolve this issue.

    If anything is unclear, please free feel to let me know.

    Best regards,


    Lily Wu [MSFT]
    MSDN Community Support | Feedback to us

  • 2012年3月16日 下午 01:12
     
     

    Thank you.  Yes, this works.  No, we are not yet using beta 11.  We attempted to use MTM Beta 11, but found the TFS server also had to be on beta 11 and we do not feel comfortable upgrading that yet.


    Jolene Boumeester

  • 2012年3月22日 下午 08:04
    擁有者
     
     

    Hi,

    You should be able to use MTM 11 beta features even if you are on TFS 10

    http://blogs.msdn.com/b/gautamg/archive/2012/03/15/mtm-s-compatibility-with-tfs.aspx

    Thanks