Test View – your new most used window
Let’s take a look at the Test View tool window – the place where you will be running your tests from as you develop and debug them. Test View provides you with a flat list of all your tests, with each test only listed once. From this window you can easily manipulate the properties of your tests, easily edit the test themselves, and execute one or more tests under a specific run configuration.
Let’s take a quick tour round the window.
At the top of the window we have the toolbar:
Group By Drop-down: This allows you to group your tests by the value of certain properties. With only 10-20 tests this isn’t really an issue, since you can navigate and find most of the items by sight. but when you’ve got 100’s of tests it’s must harder. With Group By, the tests are (duh) grouped by their property and those groups can be collapsed to just their header to save space. The properties listed are a union of all the properties available for all test types.
Run Tests: ‘nuff said. This will run your tests. Depending on your configuration this may show the Run Configuration dialog.
Customise: This allows you to add/remove columns from the test list, and also arrange the order of those columns. You can also arrange the order of the columns through drag & drop of the header columns in the test list.
Edit Run Config: This allows you to edit your run configuration settings and save those changes to the solution run configuration. This is a convenient way to change settings without running your tests.
Column Header: Exactly as you’d expect.
Test List: This is where you will see all of you your tests of all types listed. You can select one or more tests (of multiple types) and interact with them (run, edit, etc). From this window it is possible to drag & drop tests onto Test Explorer for easy categorization.
From this list, its possible to display a context menu. The items on this context menu can vary from test type to test type, but I’ll cover the basic items here:
Edit: Allows you edit a manual test. This will bring up word if you are editing a MHT test.
Goto Source Code: This will allow you to right click a test in test view and jump straight to the source code without hunting it down. Very useful.
Run Selection: As per the run button on the toolbar.
Delete: This only works for Manual Tests at the moment and removes (but doesn’t delete) the manual test from the project.
Open Test Explorer: Shows test explorer or brings to the front if it’s already open.