Book Image

Software Testing using Visual Studio 2010

By : Satheesh Kumar. N, S. Subashni
Book Image

Software Testing using Visual Studio 2010

By: Satheesh Kumar. N, S. Subashni

Overview of this book

<p>When testing your applications on the Microsoft platform, Visual Studio 2010 offers you a range of powerful tools for different types of testing. This Microsoft product makes the testing process easier and faster.<br /><br />A concise guide that will lead you through the amazing range of features offered by Visual Studio 2010 to test your software applications before going live. It is packed with simple but interesting examples to make you comfortable with Visual Studio 2010 testing environment. The book introduces you to the main types of testing available in Visual Studio for both desktop and web applications, and then walks you through deploying, running, and interpreting the results of tests.<br /><br />Visual Studio 2010 is the new version of Microsoft's software development product, and includes lots of new features for developing and testing software applications. In collaboration with Team Foundation Server, it provides supporting tools for the management of the entire application life cycle, including development and testing.</p> <p>This book is more focused on testing features and the supporting tools provided by Visual Studio 2010 for testing the applications.</p> <p>The book begins by explaining different types of tests as part of the software development cycle, and then dives deep into providing an overview of each type of application testing using Visual Studio 2010 features. Along the way you will also learn in detail about creating and maintaining the test cases and associating the test cases with requirements using the Test Manager Tool.<br /><br />Each chapter in the book concentrates on explaining each test type using the features and tools provided by Visual Studio 2010. You will be guided in using these features with real world examples with step by step explanations.</p>
Table of Contents (19 chapters)
Software Testing using Visual Studio 2010
Credits
About the Authors
About the Reviewers
Preface
11
Working with Test Results
Index

Chapter 4. Unit Testing

Unit Testing is the technique used by developers to confirm that the piece of code is producing the result as expected. In project development, there may be many modules and each module comprises a set of code or functionalities. Identifying the piece of code in the module that causes the defect is always a time consuming task and the cost involved is also more. It is always better to test the code in units and confirm the functionality before integrating the code into module(s). Requiring all code to pass the unit tests before they can be integrated ensures that the functionality always works. Developers have to make sure each unit of code is written for one piece of functionality so that the result produced by each unit test is for a single functionality. Every time a defect is fixed or code is modified, we don't have to manually retest the unit and other related functionalities by spending a lot of time and money. The automated unit test will help us make sure...