Create a test plan

Create test plans to track manual testing for sprints or milestones. That way you can see when the testing for a specific sprint or milestone is complete.

  1. If you haven't already, create your team project and create your backlog.

  2. In Visual Studio Online, select your team project. (If you haven't been here before, use Browse all.)

    Select your team project from the home page  
  3. Go to the Test hub. Create a test plan for your current sprint.

    New button in the test plan explorer pane 
  4. Name the test plan. Check the area path and iteration.

    Create button in the create test plan dialog box 
  5. Now add test suites for the backlog items that need manual tests. (These backlog items could be user stories, requirements or another work item based on the setup of your team project.)

    New button in the test plan explorer pane and then choose requirement-based suite 

    You use requirement-based suites to group your test cases together. That way you can track the testing status of a backlog item. Each test case that you add to a requirement-based test suite is automatically linked to the backlog item.

  6. Add a clause to filter by the iteration path for the sprint. Run the query to display the backlog items.

    Add new clause button to update the query. Run query button to display items.
  7. Choose the backlog items that you want to test this sprint.

    Select the items from the list. Create suites button to add them to the test plan.

    Now you've created a requirement-based test suite for each backlog item.

Q&A

Q:Can I group my requirement-based test suites together?

A:Yes. You can create a static test suite to do this. Static test suites can contain any type of test suites - just like folders. Drag test suites to group them in a static test plan.

Use static test suites like folders 

Q:What are query-based test suites ?

A:Use a query to group together test cases that have a particular characteristic - for example, all the tests that have Priorty=1. The suite will automatically include every test case that is returned by the query that you define.

Q:Can I edit other properties of a test plan from the test hub?

A:You can only do this from Microsoft Test Manager. If you have installed Visual Studio 2012 Update 3 or Visual Studio 2013, you can open a test plan in MTM directly from the test hub. (The most recently installed version of MTM is launched.)

Open test plan using Microsoft Test Manager 

Q:Can I create an offline version of the test plan for easy review?

A:Yes. You can export test plans, test suites and test cases. You can select the detail that you want in the report. You can then email or print this report for review.

Choose a test suite, right-click and choose Export

Change the test case fields in the report by adding or removing columns from the list view of the test suite.

Q:When I export data from a test plan, can I simply view the data or copy it into a Word document?

A:Yes. Choose the Print option from the Export dialog box, then choose Cancel from the Print dialog box. The data for the report is displayed. Select all the text, then you can copy and paste it into a Microsoft Word document if you want. All the formatting in the report is retained.

Q:When I export data from a test plan, can I customize the report?

A:You can only do this if you are using an on-premises Team Foundation Server. You can edit the XSLT file.

Q:Can I track changes to test plans and test suites that I create with Visual Studio Online?

A:Yes. You can track changes to test plans and test suites. Open the work item for the test plan or test suite and view the work item history.

For test suites, other actions are tracked in the Test Suite Audit field. For example, adding and removing test cases from a test suite are tracked in this field.

Try this next