This chapter concentrates on different ways of verifying website responses for each request and responses in multiple scenarios such as slow network speed, rendering on different browsers, or with different numbers of users at a given point in time. All these factors affect the website performance and response time. Web Performance Testing helps us verify if website produces the expected result within the expected response time. This helps us to identify the problems and rectify them before they happen in the actual production environment. Web Performance Testing also helps in finding out if the hardware can handle the maximum expected amount of requests at a time or needs additional hardware to handle the traffic and respond to multiple user requests.
Discussed here are some of the main testing highlights that are performed on web applications for better performance and availability:
There are many other types of testing that can be performed as part of Web Performance Testing such as using different operating systems, using different databases, or installing different versions of an operating system.
All these tests with many additional capabilities are supported by Microsoft Visual Studio 2010. Dynamic web pages can be created by any of the supported .NET languages by Visual Studio using the ASP.NET web project and web page templates. Custom services, components, and libraries are used in the web application to get the functionality and make it more dynamic. Other scripting languages and technologies such as JavaScript, Silverlight, and Flash are used in the web pages for validations and making the presentation better. Once we are ready with the web application, we need to test it and deploy it to check if the website functionalities and qualities are satisfied as per requirements. To get there, Microsoft Visual Studio 2010 provides tools for testing a web application. There are different ways of using the tool to test the application. One is to use the user interface to record and then add the validation rules and parameters to make it dynamic. The other way is to record the requests and then create the coded Web Performance Test for the recorded Web Performance Test and customize it using the code.
This chapter explains the basic means of Web Performance Testing using Visual Studio 2010 but also of using features such as adding rules and parameterization of dynamic variables. Microsoft Visual Studio 2010 provides many new features to Web Performance Testing such as adding new APIs to the test results, Web Performance Test results in a separate file, looping and branching, new validation and extraction rules, and many more. This chapter will provide detailed information on the following listed features:
The Web Performance Test activates the web performance test recorder to record all the actions that are performed while browsing websites and adds it to the performance test. The recorder comes by default with Visual Studio Ultimate. Creating a performance Web Performance Test is similar to creating any other test in Visual Studio. There are three different ways to create a new web performance test:
Once you select the Web Performance Test and click OK, a new test is created under the selected test project and a new instance of a web browser opens. The left-pane of the browser contains the Web Test Recorder for recording the user actions.
3.133.128.39