Interview Questions

How to prepare a script to run each scenario with the number of types of users concurrently playing back to give you a the load scenario?

Load / Stress Testing of Websites


(Continued from previous question...)

8. How to prepare a script to run each scenario with the number of types of users concurrently playing back to give you a the load scenario?

Using the load test tool, write the scripts to run each scenario with the number of types of users concurrently playing back to give you a the load scenario.

The key elements of a load test design are:
test objective
pass/fail criteria
script description
scenario description


Load Test Objective
The objective of this load test is to determine if the Web site, as currently configured, will be able to handle the X number of sessions/hr peak load level anticipated. If the system fails to scale as anticipated, the results will be analyzed to identify the bottlenecks.


Pass/Fail Criteria
The load test will be considered a success if the Web site will handle the target load of X number of sessions/hr while maintaining the pre-defined average page response times (if applicable). The page response time will be measured and will represent the elapsed time between a page request and the time the last byte is received.

Since in most cases the user sessions follow just a few navigation patterns, you will not need hundreds of individual scripts to achieve realism—if you choose carefully, a dozen scripts will take care of most Web sites.

(Continued on next question...)

Other Interview Questions