Creating Test Cases
A test case belongs to the test case type work items. When you create a new project, a default test case tracker is available under the Trackers tab. For more information on trackers, see Tracker Types.
To create a test case, complete the following steps:
1. Select the Trackers.
2. Right-click Test Cases under Config Items.
3. Select New Item. The Test Cases > Create Work Item page opens.
4. Select the Editable tab.
The test case editor page that opens is different from the editor for other items.
The main parts of the test case editor page are as follows:
The top part, where you can set the basic properties of the new test case.
The Test Steps editor at the bottom of the page. Here you can specify the actions, expected results, and custom test step field values for each test step, field values for each test step, and change the order of execution.
The Test Cases tree in the right panel contains all the test cases previously created in the same tracker. When you click on a node in this tree, the steps of that test case are shown underneath the tree. You can drag-and-drop these steps to your newly created test case.
There are four special fields in the test cases tracker:
Verifies—Select a requirement that is verified by the currently edited test case.
Pre-Action—Describe the actions that must be done before the test steps can be executed, for example, preparatory steps or entering test data. You can define the prerequisites here. This field uses the rich text editor.
Post-Action—Describe the actions that must be done after the test steps have been executed, for example, clean-up. This field uses the rich text editor.
Reusable—Select True or False depending upon whether the test case can be reused or not. The reusable test cases are easily filtered on the right side of the editor in the test cases tree by selecting the Reusable only filter. Test steps of reusable test cases can be reused through Excel import.
Was this helpful?