Software Testing using Visual Studio 2012

Software Testing using Visual Studio 2012

Language: English

Pages: 444

ISBN: 1849689547

Format: PDF / Kindle (mobi) / ePub


Learn different testing techniques and features of Visual Studio 2012 with detailed explanations and real-time samples

Overview

  • 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

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.

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

Approach

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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

web tests is customizing the code generated from a web performance test recording. For example, the following code adds a new web test request with think time and request method to the web test, if the value of the context parameter AddTestRequest is yes. if (this.Context['AddAbsenceforEmployee'].ToString() == 'Yes') { WebTestRequest request6 = newWebTestRequest((this.Context['WebServerName'].ToString() + '/Absence/Insert.aspx')); request6.ThinkTime = 4; yieldreturn request6; request6 = null; }

Result window shows the extracted value for the parameter, based on the success or failure of the execution rule during the test. The following screenshots show the execution rule result: The following screenshot shows the parameter value retrieved during the same Test Run: The same custom rule can also be used in the recoded web test. To add the custom rule, open the WebTest project and add a reference to the custom rule project. Open the web test and select the request for which the new

performance of the current application under test, and the usage of memory and time taken for the processor. Threshold limits can be set for the data collected during the test and the test engine can alerted if it crosses the threshold limit. For example, alert is required when the system memory is almost full. Also if any process takes more time than the expected maximum time, the system should notify it so that immediate action can be taken. These threshold rules can be set for each performance

readings are shown in the graph as shown in the following sample graph Graph1: The Graph1 is the new graph added to the result with a few processor related counters added to it. The counters and readings are listed in the table below the graphs. Summary view The Summary view option in the Load Test editor window toolbar presents more information on the overall Load Testing. The most important information is the top five slowest pages and the top slowest tests. The tests are ordered

Download sample

Download