0%

Book Description

A step by step guide to understand the features and concepts of testing applications using Visual Studio.

  • Master all the new tools and techniques in Visual Studio 2010 and the Team Foundation Server for testing applications

  • Customize reports with Team foundation server.

  • Get to grips with the new Test Manager tool for maintaining Test cases

  • Take full advantage of new Visual Studio features for testing an application's User Interface

  • Packed with real world examples and step by step instructions to get you up and running with application testing

  • In Detail

    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.

    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.

    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.

    This book is more focused on testing features and the supporting tools provided by Visual Studio 2010 for testing the applications.

    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.

    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.

    Get to grips with the amazing range of features offered by the Visual Studio for testing your software applications before going live.

    Table of Contents

    1. Software Testing using Visual Studio 2010
      1. Table of Contents
      2. Copyright
      3. Credits
      4. About the Authors
      5. About the Reviewers
      6. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Errata
          2. Piracy
          3. Questions
      7. 1. Visual Studio 2010 Test Types
        1. Software testing in Visual Studio 2010
        2. Testing as part of the Software Development Life Cycle
        3. Types of testing
          1. Unit test
          2. Manual test
          3. Web Performance Tests
          4. Coded UI test
          5. Load Test
          6. Ordered test
          7. Generic test
        4. Test management in VS 2010
          1. Team Explorer
          2. Testing tools introduction
            1. Test View
            2. Test List Editor
            3. Test Results
            4. Code coverage results
          3. Overview of files used for test settings and testing in Visual Studio 2010
        5. Microsoft Test Manager
          1. Connecting to Team Project
          2. Test Plans, Suites and Test Cases
          3. Define test cases
          4. Lab Center
        6. Summary
      8. 2. Test Plan, Test Suite, and Manual Testing
        1. Test Plan
        2. Test Suite and Test Suite Types
          1. Requirement-based Test Suite
          2. Query-based Test Suite
          3. Static Test Suite
        3. Run Manual Tests
          1. Action Recording
        4. Shared steps and action recording for shared steps
          1. Creating shared steps
          2. Action recording for Shared steps
          3. Add Parameters to Manual Tests
        5. Summary
      9. 3. Automated Tests
        1. Coded UI Test from Action Recording
          1. Files generated for the Coded UI Test
            1. CodedUITest1.cs
            2. UIMap.Designer.cs
            3. UIMap.cs
            4. UIMap.uitest
          2. Data Driven Coded UI Test
          3. Adding controls and validation to the Coded UI Test
        2. Summary
      10. 4. Unit Testing
        1. Creating unit tests
          1. Naming settings
          2. General settings
            1. Generated unit test code
        2. Assert statements
          1. Types of asserts
            1. Assert
              1. Assert.AreEqual
              2. Assert.AreNotEqual
              3. Assert.AreSame
              4. Assert.AreNotSame
              5. Assert.Fail
              6. Assert.Inconclusive
              7. Assert.IsTrue
              8. Assert.IsFalse
              9. Assert.IsNull
              10. Assert.IsNotNull
              11. Assert.IsInstanceOfType
            2. StringAsserts
              1. StringAssert.Contains
              2. StringAssert.Matches
              3. StringAssert.DoesNotMatch
              4. StringAssert.StartsWith
              5. StringAssert.EndsWith
            3. CollectionAssert
              1. CollectionAssert.AllItemsAreNotNull
              2. CollectionAssert.AreEquivalent
              3. CollectionAssert.AreNotEquivalent
              4. CollectionAssert.AllItemsAreInstancesOfType
              5. CollectionAssert.IsSubsetOf
              6. CollectionAssert.IsNotSubsetOf
              7. CollectionAssert.AllItemsAreUnique
              8. CollectionAssert.Contains
              9. CollectionAssert.DoesNotContain
              10. CollectionAssert.AreEqual
              11. CollectionAssert.AreNotEqual
            4. AssertFailedException
            5. UnitTestAssertionException
            6. ExpectedExceptionAttribute
        3. Unit tests and generics
        4. Data-driven unit testing
        5. Unit testing an ASP.NET application
        6. Unit testing web services
        7. Code coverage unit test
        8. Summary
      11. 5. Web Performance Testing
        1. Creating Web Performance Test
        2. Recording a test
          1. Adding comments
          2. Cleaning the Recorded Tests
          3. Copying the requests
        3. Web Performance Test editor
          1. Web Test Properties
          2. Web Performance Test request properties
          3. Other request properties
            1. Form POST parameters
            2. QueryString parameters
            3. Extraction rules
            4. Validation rules
            5. Transactions
          4. Toolbar properties
            1. Add data source
            2. Set credentials
            3. Add recording
            4. Parameterize web server
              1. Context Parameters
            5. Add web test plug-in
            6. Add Request Plug-in
            7. Performance session for the test
        4. Debug/Running Web Performance Test
          1. Settings in the .testsettings file
            1. General
            2. Web Performance Test
            3. Roles
            4. Test Timeouts
            5. Deployment
            6. Hosts
            7. Setup and Cleanup scripts
          2. Running the test
            1. Web Browser
            2. Request
            3. Response
            4. Context
            5. Details
        5. Summary
      12. 6. Advanced Web Testing
        1. Dynamic parameters in Web Performance Testing
        2. Coded Web Performance Test
          1. Creating a coded test from a recorded test
          2. Transactions in coded test
          3. Custom code
          4. Adding comment
          5. Running the Coded Web Performance Test
        3. Debugging the Coded Web Performance Test
        4. Custom rules
          1. Extraction rule
          2. Validation rules
        5. Summary
      13. 7. Load Testing
        1. Creating Load Test
          1. Load Test Wizard
            1. Specifying a scenario
              1. Think time
              2. Load pattern
                1. Constant load
                2. Step load
              3. Test mix model and test mix
                1. Based on the total number of tests
                2. Based on the number of virtual users
                3. Based on user pace
                4. Based on sequential test order
              4. Network mix
              5. Browser mix
              6. Counter sets
              7. Run settings
              8. Threshold rules
          2. Editing Load Tests
            1. Adding context parameters
          3. Results store
          4. Running the Load Test
          5. Working with the test result and analyzing test results
            1. Graphical view
            2. Summary view
            3. Table view
            4. Details view
            5. Exporting to Excel
          6. Using the test controller and test agents
            1. Test controller configuration
        2. Summary
      14. 8. Ordered and Generic Tests
        1. Ordered tests
          1. Creating an ordered test
          2. Properties of an ordered test
          3. Executing an ordered test
        2. Generic tests
          1. Creating a Generic Test
          2. Summary results file
          3. Properties of a generic test
        3. Summary
      15. 9. Managing and Configuring a Test
        1. Managing tests using Test Lists
          1. Organizing the Test Lists
          2. Test view
          3. Enabling/Disabling tests
          4. Toolbar options
            1. Filtering tests
            2. Group by
        2. Configuring tests
          1. Test settings
            1. General
            2. Roles
            3. Data and Diagnostics
            4. Deployment
            5. Hosts
            6. Setup and Cleanup scripts
            7. Test Timeouts
            8. Web Performance Test
            9. Unit Test
            10. Editing the test run configuration file
              1. Editing the deployment section
          2. Test properties
        3. Summary
      16. 10. Command Line
        1. MSTest utility
        2. Running a test from the command line
          1. /testcontainer
          2. /testmetadata
          3. /test
          4. /unique
          5. /noisolation
          6. /testsettings
          7. /resultsfile
          8. /noresults
          9. /nologo
          10. /detail
        3. Publishing test results
          1. /publish
          2. /publishbuild
          3. /flavor
          4. /platform
          5. /publishresultsfile
        4. Trace files
        5. Publishing
          1. Step 1: Create/use existing test project
          2. Step 2: Running the test
          3. Step 3: Create build
          4. Step 4: Build project
          5. Step 5: Publish result
        6. Summary
      17. 11. Working with Test Results
        1. Test Results
          1. Test as part of Team Foundation Server Build
          2. Build Report and Test Result
            1. Creating Work Item from the result
            2. Publish Test Results
        2. Summary
      18. 12. Reporting
        1. Team Foundation Server reports for testing
          1. Bug status Report
          2. Status on all iterations
          3. Other out of box reports
          4. Creating client report definition using Visual Studio 2010
        2. SQL Server Business Intelligence Project
          1. Analysis Services Project
          2. Report server project
            1. Create new Report using Microsoft Excel
        3. Summary
      19. 13. Test and Lab Center
        1. Connect to Team Project
        2. Testing Center
          1. Testing Center— Plan
          2. Testing Center— Test
          3. Test Center— Track
          4. Test Center— Organize
        3. Lab Center
          1. Virtual Environments
          2. Deployed Environments
            1. Stored Templates
          3. Stored Virtual Machines
            1. Environments
              1. Creating Environment from stored Virtual machines and Templates
              2. Creating Environments from stored environments
              3. Composed Environments
        4. Summary
      20. Index
    3.15.147.53