Tuesday, April 1, 2014

Load test a webpage without using any test tools

Problem
How would you load test a webpage without using any test tools?
 Solution
Load testing helps to identify a web application’s maximum operating capacity, as well as any bottlenecks that may interfere with its performance. Similarly, it can check how an application responds to variations in load.

To perform load testing, we must first identify the performance-critical scenarios and the
metrics which fulfill our performance objectives. Typical criteria include:
  • response time
  • throughput
  • resource utilization
  • maximum load that the system can bear
Then, we design tests to simulate the load, taking care to measure each of these criteria. In the absence of formal testing tools, we can basically create our own. For example, we could simulate concurrent users by creating thousands of virtual users. We would write a multi-threaded program with thousands of threads, where each thread acts as a real-world user loading the page. For each user, we would programmatically measure response time, data I/O, etc.
We would then analyze the results based on the data gathered during the tests and compare it with the accepted values.

Of course what if you want to use some tools?
Of course there are so many.

References
http://tianrunhe.wordpress.com/2012/04/04/load-test-a-webpage-without-any-test-tools/

Reactions:

0 comments:

Post a Comment