Book Image

Software Testing with Visual Studio Team System 2008

By : N Satheesh Kumar, Subashni. S
Book Image

Software Testing with Visual Studio Team System 2008

By: N Satheesh Kumar, Subashni. S

Overview of this book

<p>We all know that software testing is the most important part of the Software development life cycle and the quality of the end product is mostly dependent on how well we test our products. But, testing is neither an easy process nor remotely exciting for all the developers.<br /><br />For testing your applications on the Microsoft platform, Visual Studio Team System 2008 offers you a range of powerful tools for different types of testing. This Microsoft product makes the testing process easier as well as more exciting, not boring anymore.<br /><br />This concise guide will lead you through the bewildering range of features offered by Visual Studio Team System 2008 to test your software applications before going live. It is packed with simple examples and screenshots to get you comfortable with the VS Team System 2008 testing environment.<br /><br />The book introduces you to the main types of testing available in VS Team System 2008 for both desktop and web applications, and then walks you through deploying, running, and interpreting the results of tests. If you've been testing applications in Visual Studio 2005, the book will show you how you can move this easily to Visual Studio 2008.<br /><br />You will learn about the Unit test, Manual test, Web test, Load test, Ordered test, and Generic test, and the support for them in VS Team System 2008. By the end of the book you will be using the tools to manage and run your tests, collect and analyze your test results, and improve the reliability of your software applications.<br /><br />Later, you will prepare reports to monitor the quality of your software applications, using the available reporting templates in Visual Studio 2008 Team system and Team Foundation Server.</p>
Table of Contents (15 chapters)
Software Testing with Visual Studio Team System 2008
Credits
About the Authors
Preface
10
Working with Test Results

Unit testing an ASP.NET application


Creating the unit test for an ASP.NET web site or application is similar to the one we created for the normal class library. The ASP.NET unit test is used for testing the methods or the business logic used for the ASP.NET site. The only difference is the additional attributes added to the methods to identify the URL and the Host. The ASP.NET unit test can be run using IIS web server or the development web server. If it is on the IIS server we can choose the user identity with which the unit test should run. The default identity depends on the version of the IIS server and the operating system.

Let us consider a simple user registration page created using ASP.NET using Visual Studio 2008. Below is the UI for the user to get registered.

This web application runs on the local development server. The application has two methods. One is to get the user details from the user interface and create a new user object and the other is to just display the user name...