Software Testing using Visual Studio 2012


Software Testing using Visual Studio 2012
eBook: $29.99
Formats: PDF, PacktLib, ePub and Mobi formats
$23.99
save 20%!
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
Support
Sample Chapters
  • Using Test Manager and managing test cases and test scenarios
  • Exploratory testing using Visual Studio 2012
  • Learn unit testing features and coded user interface testing
  • Advancement in web performance testing and recording of user scenarios

Book Details

Language : English
Paperback : 444 pages [ 235mm x 191mm ]
Release Date : July 2013
ISBN : 1849689547
ISBN 13 : 9781849689540
Author(s) : Subashni. S, Satheesh Kumar. N
Topics and Technologies : All Books, Application Development, Enterprise

Table of Contents

Preface
Chapter 1: Visual Studio 2012 Test Types
Chapter 2: Test Plan, Test Suite, and Manual Testing
Chapter 3: Automated Tests
Chapter 4: Unit Testing
Chapter 5: Web Performance Test
Chapter 6: Advanced Web Testing
Chapter 7: Load Testing
Chapter 8: Ordered and Generic Tests
Chapter 9: Managing and Configuring Tests
Chapter 10: The Command Line
Chapter 11: Working with Test Results
Chapter 12: Exploratory Testing and Reporting
Chapter 13: Test and Lab Center
Index
  • Chapter 1: Visual Studio 2012 Test Types
    • Software testing in Visual Studio 2012
    • Testing as part of software development life cycle
    • Types of testing
      • Unit testing
      • Manual testing
      • Exploratory testing
      • Web performance tests
      • Coded UI test
      • Load testing
      • Ordered test
      • Generic test
    • Test management in Visual Studio 2012
      • Introduction to testing tools
        • Test Explorer
        • Code coverage results
    • Microsoft Test Manager
      • Connecting to Team Project
      • Test Plans, Suites, and test cases
      • Defining test cases
      • Lab Center
  • Summary
    • Chapter 2: Test Plan, Test Suite, and Manual Testing
      • Test Plan
      • Test Suite and its types
        • Static Test Suites
        • Query-based Test Suites
        • Requirement-based Test Suites
      • Running manual tests
        • Action recording
      • Shared steps and action recording for shared steps
        • Creating shared steps
        • Action recording for shared steps
      • Adding parameters to manual tests
      • Summary
      • Chapter 3: Automated Tests
        • Coded UI tests from action recordings
          • Files generated for coded UI test
            • CodedUITest1.cs
            • UIMap.Designer.cs
            • UIMap.cs
            • UiMap.uitest
          • Data-driven coded UI test
          • Adding controls and validation to coded UI test
        • Summary
        • Chapter 4: Unit Testing
          • Creating unit tests
          • Assert statements
            • Types of Assert statements
              • Assert
              • StringAsserts
              • CollectionAssert
              • AssertFailedException
              • UnitTestAssertionException
              • ExpectedExceptionAttribute
          • Unit Tests and Generics
          • Data-driven unit testing
          • Unit Testing using Fakes
            • Stubs
            • Shims
            • Difference between Stubs and Shims
          • Code coverage unit test
            • Blocks and lines
            • Excluding elements
          • Summary
          • Chapter 5: Web Performance Test
            • Creating the web performance test
              • Recording a test
                • Adding comments
                • Cleaning the recorded tests
                • Copying the requests
                • Adding loops
            • Web performance test editor
              • Web test properties
              • Web test request properties
              • Other request properties
                • Form POST parameters
                • QueryString parameters
                • Extraction rules
                • Validation rules
                • Transactions
              • Conditional rules
              • Toolbar properties
                • Add data source
                • Setting credentials
                • Add recording
                • Parameterize web server
                • Adding a web test plugin
            • Debugging and running the web test
              • Settings in the .testsettings file
                • General
                • Roles
                • Data and Diagnostics
                • Deployment
                • Setup and Cleanup Scripts
                • Hosts
                • Test Timeouts
                • Unit test
                • Web test
              • Running the test
                • Web Browser
                • Request
                • Response
                • Context
                • Details
            • Summary
            • Chapter 6: Advanced Web Testing
              • Dynamic parameters in web testing
              • Coded web test
                • Generating code from a recorded test
                • Transactions in coded tests
                • Custom code
                • Adding a comment
                • Running the coded web test
              • Debugging coded web test
              • Custom rules
                • Extraction rules
                • Validation rules
              • Summary
              • Chapter 7: Load Testing
                • Creating a Load Test
                  • Load Test Wizard
                    • Specifying a scenario
                    • Counter sets
                    • Run settings
                  • Editing Load Tests
                    • Adding context parameters
                  • Storing results in the central result store
                  • Running the Load Test
                  • Analyzing and exporting Test Results
                    • Graphical view
                    • Summary view
                    • Tables view
                    • Detail view
                    • Exporting to Microsoft Excel
                  • Using Test Controller and Test Agents
                    • Test Controller and Test Agent configuration
                • Summary
                  • Chapter 9: Managing and Configuring Tests
                    • Using Test settings
                      • The General option
                      • The Roles option
                      • Data and Diagnostics
                      • The Deployment section
                      • Setup and Cleanup Scripts
                      • The Hosts option
                      • The Test Timeouts option
                      • The Unit Test option
                        • Editing the Test Run configuration file
                      • The Web Test option
                      • Configuring unit tests using the .runsettings file
                    • Summary
                    • Chapter 10: The Command Line
                      • VSTest.Console utility
                        • Running tests using VSTest.Console
                          • The /Tests option
                          • The /ListTests option
                      • MSTest utility
                        • Running a test from the command line
                          • The /testcontainer option
                          • The /testmetadata option
                          • The /test option
                          • The /unique option
                          • The /noisolation option
                          • The /testsettings option
                          • The /resultsfile option
                          • The /noresults option
                          • The /nologo option
                          • The /detail option
                        • Publishing Test Results
                          • The /publish option
                          • The /publishbuild option
                          • The /flavour option
                          • The /platform option
                          • The /publishresultsfile option
                        • TCM command line utility
                          • Importing tests to a Test Plan
                          • Running tests in a Test Plan
                      • Summary
                      • Chapter 11: Working with Test Results
                        • Test Runs and Test Results
                          • Test as part of the Team Foundation Server build
                          • Building reports and Test Results
                            • Creating a work item from the result
                        • Summary
                        • Chapter 12: Exploratory Testing and Reporting
                          • Exploratory testing
                          • Reports using Team Foundation Server
                            • Bug status report
                            • Test case readiness report
                            • Status on all iterations
                            • Other out-of-the-box reports
                          • Creating a report definition using Visual Studio 2012
                          • Summary
                          • Chapter 13: Test and Lab Center
                            • Connecting to Team Project
                            • Testing Center
                              • Testing Center – Plan tab
                              • Testing Center – Test tab
                              • Testing Center – Track tab
                              • Testing Center – Organize tab
                            • Lab Center
                              • Environments
                              • Deployed environments
                            • Summary

                            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.


                            Satheesh Kumar. N

                            Satheesh Kumar N holds a Bachelor’s degree in Computer Science engineering and has around 17 years of experience in managing the software development life cycle, developing live projects, and program management. He started his career by developing software applications using Borland software products. He worked for multiple organizations in India, the UAE, and the US. His main domain expertise is in retail and he is currently working in Bangalore as a Program Delivery Manager for the top retailer in UK. He is currently handling five agile scrum teams for delivering the website features. His experience also includes implementation and customization of Microsoft Dynamics for an automobile sales company in UAE. He works with the latest Microsoft technologies and has published many articles on LINQ and other features of .NET. He is a certified PMP (Project Management Professional). He has also authored Software Testing using Visual Studio Team System 2008 and Software Testing using Visual Studio 2010 for Packt Publishing.
                            Sorry, we don't have any reviews for this title yet.

                            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

                            - 1 submitted: last submission 04 Sep 2013

                            Errata type: Typo | Page number: 38

                            The following screenshot shows a Test Suite and test xase added to the Test Plan:

                            Should be

                            The following screenshot shows a Test Suite and test case added to the Test Plan:

                            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 using Visual Studio 2012 +    HP Network Node Manager 9: Getting Started =
                            50% Off
                            the second eBook
                            Price for both: $50.70

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

                            What you will learn from this book

                            • Discover different testing types as part of Visual Studio 2012
                            • Use the test plan, test suite, manual testing ,and exploratory testing
                            • Record user interface actions and generating code out of it to customize the test
                            • Get to grips with unit testing features and data-driven unit tests to automate the tests for multiple scenarios
                            • Add extraction rules, validation rules, and custom rules to the recorded requests and add parameters to the requests
                            • Create and configure load tests with the help of a web performance test or unit test
                            • Analyze the detailed view of test results
                            • Execute the existing tests at the command line using the MSTest command line utility
                            • Report on the test results and publish the test results

                            In Detail

                            Testing is one of the main phases in the software development lifecycle. Managing the test scenarios, test cases, defects, and linking each one of these is bit of a challenge without using any tools. For frequently changing businesses, it is essential to address testing requirements by matching the pace of the business. This can only be achieved through automation of the possible testing scenarios to reduce the turnaround time of testing.

                            Software Testing Using Visual Studio 2012 is a practical, hands-on guide that provides a number of clear, step-by-step exercises, which will help you to take advantage of the new features and real power of Visual Studio 2012.

                            Software Testing Using Visual Studio 2012 starts with the basics of testing types and managing the tests using Test Explorer and a few other tools. Practical examples are added to help you understand the usage of various tools and features in a better way. Software Testing Using Visual Studio 2012 is written from a developer point of view and helps you take advantage of the unit testing features and customize the tests by generating the code and fine-tuning it as per your needs. The Test Manager is a standalone tool which is part of the Visual Studio tools family and takes care of test management. Software Testing Using Visual Studio 201 covers the usage of the test plan, test suite, manual testing, and exploratory testing using Test Manger and managing these aspects using these tools.

                            Software Testing Using Visual Studio 2012 also covers the recording of user actions and creating automated tests out of it. This book covers generating and adding parameters to the recording and replacing it at runtime, adding validation and extraction rules to the tests, running the tests using command line commands, looking at the details of test results, and configuring the running the load test out of web performance or unit tests.

                            This book helps you to understand the complete testing features and how to make use of automation features as well. It will appeal to both developers and testers.

                            Approach

                            We will be setting up a sample test scenario, then we'll walk through the features available to deploy tests.

                            Who this book is for

                            This book is for developers and testers who want to get to grips with Visual Studio 2012 and Test Manager for all testing activities and managing tests and results in Team Foundation Server. It requires a minimal understanding of testing practices and the software development life cycle; also, some coding skills would help in customizing and updating the code generated from the web UI testing.

                            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