Software Testing with Visual Studio Team System 2008


Software Testing with Visual Studio Team System 2008
eBook: $29.99
Formats: PDF, PacktLib, ePub and Mobi formats
$20.99
save 30%!
Print + free eBook + free PacktLib access to the book: $79.98    Print cover: $49.99
$49.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Reviews
Support
Sample Chapters
  • Test your software applications with Visual Studio Team System 2008 and rest assured of its quality
  • Create a structured testing environment for your applications to produce reliable products
  • Comprehensive yet concise guide with a lot of examples and clear explanations
  • No knowledge of software testing is required, only basic knowledge of Visual Studio 2008 operation is expected

Book Details

Language : English
Paperback : 356 pages [ 235mm x 191mm ]
Release Date : December 2008
ISBN : 184719558X
ISBN 13 : 9781847195586
Author(s) : N Satheesh Kumar, Subashni. S
Topics and Technologies : All Books, Application Development, Microsoft Development , Enterprise, Microsoft, .NET


Table of Contents

Preface
Chapter 1: Visual Studio Team System 2008 Test Types
Chapter 2: Unit Testing
Chapter 3: Web Testing
Chapter 4: Advanced Web Testing
Chapter 5: Load Testing
Chapter 6: Manual, Generic, and Ordered Tests
Chapter 7: Managing and Configuring the Test
Chapter 8: Deploying and Running Tests
Chapter 9: Command Line
Chapter 10: Working with Test Results
Chapter 11: Reporting
Index
  • Chapter 1: Visual Studio Team System 2008 Test Types
    • Software testing in Visual Studio Team System 2008
    • Testing as part of Software Development Life Cycle
    • Types of testing
      • Unit test
      • Manual test
      • Web tests
      • Load test
      • Ordered test
      • Generic test
    • Test management and new testing features in VS 2008
      • Team explorer
      • Team system testing tools introduction
      • Test view
        • Test list editor
        • Lists of tests
        • Test results
        • Code coverage results
      • Overview of XML files for testing tools in Visual Studio 2008
  • Chapter 2: Unit Testing
    • Creating unit tests
      • Naming settings
      • General settings
        • Generated unit test code
    • Assert statements
      • Types of asserts
        • The assert class
        • StringAsserts
        • CollectionAssert
        • AssertFailedException
        • UnitTestAssertionException
        • ExpectedExceptionAttribute
    • Unit tests and generics
    • Data-driven unit testing
    • Unit testing an ASP.NET application
    • Unit testing web services
    • Code coverage unit test
    • Summary
  • Chapter 3: Web Testing
    • Creating web test
    • Recording a test
      • Adding comments
      • Cleaning the recorded tests
      • Copying the requests
    • Web test editor
      • Web test properties
      • Web test request properties
      • Other request properties
        • Form post parameters
        • Query string parameters
        • Extraction rules
        • Validation rules
        • Transactions
      • Toolbar properties
        • Add data source
        • Set credentials
        • Add recording
        • Parameterize web server
        • Add web test plug-in
        • Add request plug-in
        • Performance session for the test
    • Debug/running web test
      • Settings for .testrunconfig file
        • General
        • Web test
        • Controller and agent
        • Code coverage
        • Test timeouts
        • Deployment
        • Hosts
        • Setup and cleanup scripts
      • Running the test
        • Web browser
        • Request
        • Response
        • Context
        • Details
    • Summary
  • Chapter 4: Advanced Web Testing
    • Dynamic parameters in web testing
    • Coded web test
      • Creating a coded test from a recorded test
      • Transactions in coded test
      • Custom code
      • Adding comment
      • Running the coded web test
    • Debugging coded web test
    • Custom rules
      • Extraction rule
      • Validation rule
    • Testing web services
    • Summary
  • Chapter 5: Load Testing
    • Creating load test
      • Load test wizard
        • Specifying scenario
      • Editing load tests
        • Adding context parameters
      • Results store
      • Running the load test
      • Running load test using rig
      • Working with test result and analyzing test results
        • Graphical view
        • Summary view
        • Table view
        • Exporting to Excel
      • Summary
  • Chapter 6: Manual, Generic, and Ordered Tests
    • Manual tests
      • Manual test using text format
      • Manual test using Microsoft Word format
      • Running a manual test
    • Ordered tests
      • Creating an ordered test
      • Properties of an ordered test
      • Executing an ordered test
    • Generic tests
      • Creating a generic tests
      • Summary results file
      • Properties of a generic test
    • Summary
  • Chapter 7: Managing and Configuring the Test
    • Managing tests using test lists
      • Organizing test list
      • Test view
      • Enabling/disabling tests
      • Toolbar options
        • Filtering tests
        • Group By
    • Configuring tests
      • Test run configuration
        • General
        • Controller and agent
        • Code coverage
        • Deployment
        • Hosts
        • Setup and cleanup scripts
        • Test timeouts
        • Web test
        • Editing test run configuration file
      • Test properties
    • Summary
  • Chapter 8: Deploying and Running Tests
    • Local deployment
    • Remote deployment
    • Deploy additional files
    • Using deploymentItem attribute
    • Deploy items for individual test
    • Deployment order
    • Running tests
    • Run and rerun a test
    • Pause, resume, and stop a test run
    • Schedule test run
    • Summary
  • Chapter 9: Command Line
    • MSTest utility
    • Running a test from the command line
      • /testcontainer
    • /testmetadata
    • /test
    • /unique
    • /noisolation
    • /runconfig
    • /resultsfile
    • /noresults
    • /nologo
    • /detail
    • Publishing test results
    • /publish
    • /publishbuild
    • /flavor
    • /platform
    • /publishresultsfile
    • Trace files
    • Publishing
  • Summary
  • Chapter 10: Working with Test Results
    • Test results
      • Test as part of Team Foundation Server build
      • Build report and test result
        • Code coverage
        • Build report with failed test
        • Stack trace
        • Creating Work Item from the result
        • Publish test results
    • Summary
  • Chapter 11: Reporting
    • TFS reports for testing
      • Bugs
        • Bug rates
        • Bugs by priority
        • Bugs found without corresponding tests
    • Testing progress and effectiveness of reports
      • Regression
      • Tests passing with active bugs
      • Tests failing without active bugs
      • Load test summary
    • Creating new report
      • Report server project
        • Create a new report in Excel
    • Customizing report
    • Summary

N Satheesh Kumar

N. Satheesh Kumar has Bachelor’s Degree in Computer Science Engineering and has around twelve years of experience in software development life cycle, project, and program management. He started his career developing software applications using Borland software products in a company based in India and then moved to the United Arab Emirates and continued developing applications using Borland Delphi and customizing Great Plain Dynamics (now known as Microsoft Dynamics) for an automobile sales company. He moved back to India and spent three years designing and developing application software using Microsoft products for a top Multinational Company in India and then spent couple of years in Project Management and Program Management activities. Now he works as a Technical Architect for a top retail company based in the United States. He works with the latest Microsoft technologies and has published many articles on LINQ and other features of .NET. He is also the author of the book LINQ Quickly in Microsoft .NET.

Contact N Satheesh Kumar


Subashni. S

Subashni S holds a Bachelor’s Degree in Computer Science engineering and has around 15 years of experience in software development and testing life cycle, project, and program management. She is a certified PMP (Project Management Professional), CSTM (Certified Software Test Manager), and ITIL V3 Foundation certified. She started her career as a DBA in Oracle 8i technology, and later developed many software applications using Borland software products for a multinational company based in Chennai, and then moved to Bangalore. She is presently working for a multinational company, in the area of Project Management for developing and testing projects. She is also currently working for one of the top multinational companies headquartered at Austin, Texas.


She has also authored Software Testing using Visual Studio Team System 2008 and Software Testing using Visual Studio 2010 for Packt Publishing.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


Errata

- 5 submitted: last submission 07 Aug 2012

Errata type: Typo | Page number: 15

Second paragraph under the heading "Team explorer":
Team Explorer is a client of TSF and is integrated with the VSTS. should be
Team Explorer is a client of TFS and is integrated with the VSTS.

 

Errata type: Typo | Page number: 27

The last sentence,
Now when we select the newly created Manual Tests list, we can both the manual tests listed on the right-side pane.
Should be
Now when we select the newly created Manual Tests list, we can see both the manual

 

Errata type: Typo | Page number: 52

Under the heading "Assert.AreNotEqual"
the first line of code "Assert.AreNotEqual(String, String, Booelan, String, Object[])"
Booelan should be Boolean

 

Errata type: Technical | Page number: 85

the first bullet point
TestMethod—attribute to identify the whether a method is a unit test method.
should be
TestMethod—attribute to identify whether a method is a unit test method.

 

Errata type: Typo | Page number: 97

in the part where it reads '...including a fields to show...'
it should say
'...including a field to show...'

 

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

Software Testing with Visual Studio Team System 2008 +    Oracle Application Express 3.2 - The Essentials and More =
50% Off
the second eBook
Price for both: $30.59

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Explore the testing types offered by Visual Studio Team system 2008 Test Edition
  • Convert your existing Visual Studio 2005 testing application to Visual Studio Team system 2008
  • Unit-test your class library application, ASP.NET web application and the services created using Visual Studio 2008
  • Test your website before going live and rest assured of its performance; customize the test to meet your requirements
  • Load-test your applications to check application performance under various conditions
  • Collect and analyze the test results to improve the quality of your applications
  • Master various formats of manual testing to help test without automation tools
  • Manage, filter, and configure the test to control the execution of your application
  • Deploy your tests using local as well as remote deployment and run them
  • Run your tests and publish the results from a command line using MSTest tool
  • Create and utilize reports to see the progress and quality of your project

Chapter 1: Software Testing and Visual Studio Team System 2008
This chapter gives an overall introduction to software testing and the types of testing involved in the software development life cycle (SDLC) and an introduction to the different tools available in Visual Studio team system 2008 to support different testing types for the SDLC.

Chapter 2: Unit Testing
This chapter explains the testing tool used by developers to make sure the code produces the expected result. Creating unit tests, generating code and different assert statements and types used for testing are explained in detail in this chapter. Various attributes used for differentiating the classes with test classes and method with test methods, and the initializing and cleaning methods are also explained in detail in this chapter.

Chapter 3: Web Testing
This chapter walks us through the tool used for testing web applications developed using .NET. This tool is used for recording a test scenario and then testing it with sample data from different data sources. Applying validation and extraction rules, adding data sources, and adding transactions are explained in detail using a sample application in Visual Studio Team System 2008. Some of the features like adding Plug-ins, parameterizing the web server, and running and debugging the web test are covered in this chapter.

Chapter 4: Advanced Web Testing
Generating coded web tests from recorded web tests and creating coded web tests using the Visual Studio team System 2008 tool are explained in detail with examples. Some of the other advanced topics covered are adding dynamic parameters, adding rules to the coded web test, creating custom rules, and running the coded web test.

Chapter 5: Load Testing
This chapter explains using unit testing or web testing and simulating a realistic scenario like a number of concurrent users with different browsers and different network speed from multiple locations accessing the system. This testing collects the application performance and stability in different scenarios and is used for analyzing the result to scale the application for better performance.
 
Chapter 6: Manual, Generic, Ordered, and Smoke Test
This chapter explains different tools that support testing an application manually without using any automated testing tool. In the case of multiple interdependent tests, we can easily order the tests to run in a specific order so that the dependent tests don't fail the test. Visual studio supports all of these including Generic and Smoke tests which are explained here.
 
Chapter 7: Managing and Configuring Tests
Even though we have lot of testing types and tools, sometime managing these tests would be a very difficult task. This chapter explains the easy ways of organizing the tests into lists, enabling and disabling the tests, configuring the tests and test runs, viewing the tests using the Test view window and test list editor and running the tests in Visual studio Team System 2008.

Chapter 8: Deploying and Running the tests
Once we are ready with the required type of test for the application, we have to deploy that on the test machines and run the test application and collect the result for analysis. There are multiple ways of deploying the application and running the application using some of the advanced features provided by Visual Studio Team system 2008, which are explained in detail in this chapter.

Chapter 9: Command Line
There are different ways of running a test based on the environment and requirements. In some situations we may need a test to be run from the command line without using the user interface. It works the same way but the test runs without any user interaction. This chapter explains different command-line options and parameters used for running a test using command-line commands.

Chapter 10: Working with Test Results
The main objective of running the tests is to collect the results and analyze them to correct any application errors and make sure it is producing the expected result and to increase the performance and stability of the application. This chapter explains in detail how to look at the test results and code coverage and publish the test results.

Chapter 11: Reporting
Reporting is one of the main areas of software development where the software quality is reported and monitored. Visual Studio Team System 2008 supported by Team Foundation Server provides lot of reporting templates and features to upload the test result and publish it to the management and the team to monitor the project quality and performance. This chapter explains the detailed steps involved in publishing the results and creating and customizing the report using the available reporting templates in Visual Studio 2008 Team system and Team Foundation Server.

In Detail

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.

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.

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.

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.

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.

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.

Get comfortable with the Visual Studio 2008 testing environment and produce reliable software products.

Approach

An example testing scenario is set up, and used as reference for exploring the testing features available in Visual Studio Team System 2008.

This is a concise practical guide that will help you learn testing your software applications using Visual Studio Team System 2008 quickly, with lot of examples and clear explanations. It is packed with screenshots to aid your understanding of the process.

Who this book is for

This book is for Microsoft developers working with Visual Studio 2008 who need to create a structured testing environment for their applications. No prior knowledge of testing is expected. The reader will need to be familiar with the standard Visual Studio 2008 environment, but anyone who has entered and compiled code in this environment before will easily follow what goes on.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software