Your company is rolling out its new web application. This web application is well designed and attractive. It has been well tested by your quality assurance group. You have spent a lot of money marketing your new website. The website now goes live. Very soon you realize that your new web application is unable to scale to your typical production load and the response times and performance reach completely unacceptable levels. Your web logs indicate that most of your website visitors simply leave the new website before buying anything since its response times are very poor. You start to panic, and one of your friends tells you that the reason your application does not perform adequately is that you do not have ample hardware. Hearing this, you decide to add more server hardware. While this has a small effect on the website response time, it is still woefully inadequate. You soon realize that problem does not really lie with the hardware but rather with the web application itself. It appears that your web application was not well optimized for the typical peak loads. It becomes increasingly evident that most of your marketing dollars were wasted.
Enter the world of performance and load testing. In order to ensure that your application scales as the load increases, it is necessary to perform tests where your application is tested against a simulated load that closely resembles the actual load that it will be subjected to when it is exposed to the outside world.
It is important to distinguish between functional or regression testing and load or performance testing. Functional and regression testing is used to automate a large number of scenarios to ensure that your website works as intended. Load testing on the other hand gauges how well your website performs when it is subjected to a large load, such as a large number of simultaneous users.
Load and performance testing require the use of automated testing tools. It is impractical if not ridiculous to try to simulate a load of 200 concurrent users by having a group of 200 folks sit on 200 machines and try to perform operations at the same time. Before you can begin any kind of load and performance testing you will need to identify the test scenarios you need to automate. A load testing tool will typically record web requests and responses based on user interactions with a website. As you perform various operations on your website or application, the tool records all the web transactions that take place. When you finish recording, it generates an automated script. Alternatively you could use the tool to manually create the script. Typically testers will perform a combination of the two. They will use the recording mechanism to generate the skeletal foundations of their scripts and then manually modify the scripts to take into account specialized scenarios. The load testing tool should also allow the tester to simulate constrained bandwidth situations. This means for example that it would accurately model users who would use the application on a slow modem connection. It should also allow the tester to drive the script using random data from large external data sets.
Load testing scripts can be either graphical or textual in nature. Good load and performance testing tools do not require the testers to be programmers. Testers that are not familiar with programming will work with scripts that can be graphically manipulated. Graphical scripts will typically show all recorded steps in the form of a hierarchical structure and testers would modify any of the steps in order to modify the recorded script. Testers who are proficient in programming may want to manipulate their scripts by editing the code. These testers would work with code written in a well known programming language such as JavaScript, VBScript or C.
Once your script has been created, you may wish to put specialized checks in place. These checks would typically be related specifically to the application under test. For example you may wish to check that the response returned by a certain web request meets certain textual criteria. This would involve the placement of a text checkpoint. A text checkpoint can verify that a given text segment is present or is not present in a specified portion of the web page. Once you have finished the creation of the script you would typically test the script on your own machine as a single user to ensure that the test script runs as intended.
You are now ready to perform a performance based load test. A good load testing tool will allow the tester to fine tune the execution of the test. This means that it will allow the tester to choose the number of concurrent virtual users, how the script ramps up, how it ramps down and for how long it runs. It should also allow the tester to create various groups of concurrent virtual users that have their own ramp up, steady state and ramp down characteristics. A good testing tool will allow the user to distribute this load over several machines since a single machine may be only able to scale up to a few hundred users.
To understand the behavior of the loaded web application, it is also important for the load testing tool to enable the tester to track the performance characteristics of external components such as operating systems, web servers, databases etc. This allows the user to see how the performance of his application correlates with the performance characteristics of the external component. This kind of analysis will allow the tester to pinpoint the root cause of performance bottlenecks fairly easily.
During test execution the tester should be able to view the performance graphs in real time for performance metrics such as the transaction response time, HTTP responses per second grouped by HTTP code (e.g. 200, 404, 500 etc), passed transactions per second, failed transactions per second, total transactions per second, hits per second, pages downloaded per second etc. The tester should also be able to simultaneously view the performance characteristics of the external components described above. For an operating system this could be something like the % processor time, for a database it could be the number of writes per second. At the end of the test, the tester would typically be able to view and save this data as a report for further analysis.
Load and performance testing allow you to simulate the behavior of your application under a typical production environment. This will allow you to plan your hardware deployment strategy effectively and ensure that your application will deliver the expected performance characteristics. Rolling out a web application without testing its performance characteristics under expected production loads would resemble crossing a road blindfolded. Load testing is an essential part of the development cycle of a web application and should never be overlooked.
Umair Khan is Founder and Chairman of Verisium, Inc., a provider of products for performance and load testing, functional and regression testing, bug tracking and test and requirements management. Verisium is the maker of vPerformer (a performance and load testing product), vTest (an automated functional and regression testing product), and vManage (a product to organize and manage your overall testing process).
Drug Abuse Testing - Commercialization of Drug Abuse Testing
Testing for the presence of illegal or banned substances has been in practice for some time, and is usually conducted by professionals and laboratories that specialize in drug abuse testing.
Drug abuse testing is mandatory by law for many jobs and professions, such as commercial drivers, law enforcement and other emergency personnel, and required ...
All You Need to Know about Hair Follicle Drug Testing
Hair sample drug testing is a great way to detect whether or not a person has used drugs in the past 90 days. Whether in an office format or in the home, hair drug testing serves the purpose of answering questions about an individuals drug use history.How Does Hair Follicle Drug Testing Work?Hair drug testing is actually quite simple and merely req...
High Traffic Sites Web Hosting Requirements
While working on quite a few hosting infrastructures, I am often faced with a challenging question by many of our clients: How does one balance Availability, Performance and Price? Upon first glance, it is a complex question. However, once broken down, there are clear answers that are applicable for any situation.First, a few definitions:Availab...
Pros and Cons of Drug Testing Methods
All the methods of drug testing have their own benefits as well as limitations. Hence, the choice of drug test depends entirely upon the requirement of the person, let us see commonly used testing typesUrineBenefits: A urine drug test can be undertaken at the laboratory or at any other place, with the help of a kit. It is the test of choice for mos...
False Home Remedies for Drug Testing
A lot of people are having a problem when it comes to drug testing. Some people are guilty, some people are not. Your career or your future is at stake. Through drug testing, many people might lose their jobs; several people will not be accepted in any company and a lot of negative effects. You have to be careful with the different tips that you w...
Drug Testing At Workplace
The popularity of drug testing is rising all over the world. In a survey, the management of 81% organizations admitted to subjecting their employees to workplace drug testing in order to check their sobriety. This is undertaken with the aim of identifying drug users so that appropriate steps in the interest of the organization. Hence, for a decisio...
Performance Enhancing Drugs - Athletes Should Be Allowed to Use Them
The purpose of this article is to show that that athletes should be allowed to use performance drugs in order to enhance their performance. In his article, he stated that since sports has changed dramatically over the years, athletes should be allowed to do what is necessary to keep up in the millennium era.In American society, there are some who h...
