Chapter 56
The other option currently missing from Team Explorer is the capability to delete a build type after it has been created. Because the build type is just a folder within the source code repository, it can be removed by deleting the appropriate folder using the Source Control Explorer. As with all changes made in the Source Control Explorer, this change can be rolled back at a later stage if you realize you still require that build type.
For Software Testers
Testers, like architects, have always felt that they are the poor (or expensive in the case of some of the testing tools on the market) cousins to software developers. They have never had support within Visual Studio for creating, executing, or reporting on test cases. Team System now includes the capability to create test cases, as well as strong support for managing them.
Unit Testing
Chapter 53 covers creating unit test cases for existing classes. These can be run individually or attached to a database to provide data to drive the test cases.
Web Testing
Testing web applications can also be automated from within Team System using the web recorder, which records actions on a web site and enables them to be replayed. In isolation this is not very useful because it just ensures that the functionality of the site does not vary. However, it is possible to add parameters to the script to vary the test cases.
The default output from the web recorder is a script file that documents interaction with the web site. This can be converted into code that can be tailored to provide extensive control over how the script is run.
Manual Testing
Team System does not provide an equivalent to the web recorder for Windows applications. To test functionality in a Windows application, it is important first to separate as much functionality as possible from the user interface. This way, the core functionality of the system can be tested using unit test cases, which can be fully automated. For the remaining functionality and to ensure that the user interface behaves correctly, manual test cases have to be documented. Although this doesn’t automate testing
of the application, it does help to document the list of test cases that need to be run prior to releasing the application.
Manual tests can be generated in two formats: plain text or Word. Essentially, the format doesn’t matter, because it is not how the test looks, but rather the content, that is important. Creating a new manual test generates a stub test case that contains various placeholders for things such as the title, details, test steps, and revision history. Although it makes sense to follow this structure, the manual test case can contain whatever activities or process the tester needs to follow to carry out the test. Figure 56-23 illustrates running a simple test case that is being used to test the launch functionality of an application. As the manual test case is to be run manually, the only information that needs to be recorded is whether the test passed or not, and any associated comments.