How to create test cases in TFS
When follow agile methodology, it’s easy to configure test
cases and then link them in User story.
For create test case in TFS follow below steps:
- · Launch the URL (your TFS link in browser)
- · Click on “Test”
Figure-1
- · Like in figure-1, when click on (+) icon, all available option will get populate and when click on “Test plan”, pop window with name “Create Test Plan” will be display. (figure-2)
Figure-2
- · Following field must be available in “Create a test plan” window:
- · Name: Name of test plan (given by User)
- · Area path: it shows area path of your project (no need to fill this field, it automatically shows value)
- · Iteration: it will show Iteration number of your project (no need to fill this field, it automatically shows value)
- · When save changes, it will show your “Test plan Name” for example: preview (in figure-3)in our case.
Figure-3
- · Now we have our test plan, then we need to create “requirement based suit” to create test case.
- · As mentioned in figure-4, when you click on (+) Icon, you will see available option “requirement based suit”.
- · Click on “requirement based suit”.
Figure-4
- · A new pop up window will be display with name “Create requirement based suits”
- · Verify figure-5, there is option available “Run Query”.
- · Click on “Run Query”.
Figure
-5
- · When you click on “Run Query”, all available User Stories will be display of current sprint.
- · Now select a user story for which you want to write test cases.
- · For an example in figure -6 we select User Story 2410.
- · (note: User Stories will be display based on sprint you select, please refer above screenshot you can change “Value” field and then execute “Run Query”)
Figure-6
- · User story for create test case is selected, now we need to add test case for selected user story.
- · Selected user story name get display at left side in panel
- · Now you can change view (see figure -7, user can change view to grid and vice versa)
- · Click on (+ new) icon and select “New Test Case” (in figure-7)
Figure-7
- · Change view to list as mentioned in figure-7
- · Now add test cases for selected user story.
- · For add test case we need to do follow below steps:
- · Add header (title, step action, step expected result)
- · Write title, left input for step action, step expected result.
- · Now enter step action, step expected result from below row. (refer figure-8)
- · Now click on save (refer figure-8) button (left side)
Figure-8
·
After this when you change view figure-9 to list
view, you can see your created test case.
·
Figure-9.
Figure-9
Figure-10
- · One more way is available to write test cases, if you have an excel so you can also copy and paste them in TFS
- · But keep one thing in your mind, excel format should be like as mentioned in figure-10
- Else it will not accept the format and show error when you paste your test cases.
Figure-11
- · when all test cases are created, go to User story for which you created your test cases and open it
- · then click on test cases tab (figure-11)
- · and verify that it shows proper counting of test cases and all created test cases are available.
Comments
Post a Comment