120 likes | 267 Views
Understanding Performance Testing Basics by Adnan Khan. Performance Testing.
E N D
Performance Testing The goal of performance testing is not to find bugs, but to eliminate bottlenecks and establish a baseline for future regression testing. To conduct performance testing is to engage in a carefully controlled process of measurement and analysis. Ideally, the software under test is already stable enough so that this process can proceed smoothly.
Why We Need Performance Testing? • The failure of an application can be costly • Assure performance and functionality under real-world conditions • Locate potential problems before our customers do
Load Testing Load testing is the process of creating demand on a system or device and measuring its response. Expose bugs that do not surface in cursory testing, such as memory management bugs, memory leaks, buffer overflows the process of exercising the system under test by feeding it the largest tasks it can operate with
Stress Testing • Stress testing tries to break the system under test by overwhelming its resources Examples • double the baseline number for concurrent users/HTTP connections • take the database offline, then restart it • run processes that consume resources (CPU, memory, disk, network) on the Web and database servers
LoadRunner Solution LoadRunner reduces personnel requirements by replacing human users with virtual users or Vusers. These Vusers emulate the behavior of real users—operating real applications Vusers can run on a single computer, LoadRunner reduces the amount of hardware required for testing. Vuser Type GUI Vuser RTE Vuser
LoadRunner Terms Scenarios:A scenario defines the events that occur during each testing session. Vusers:LoadRunner replaces human users with virtual users or Vusers Vuser Scripts: The actions that a Vuser performs during the scenario are described in a Vuser script. Transactions: A transaction represents an action or a set of actions that you are interested in measuring Rendezvous points: Rendezvous points instruct Vusers to wait during test execution for multiple Vusers to arrive at a certain point,
LoadRunner Terms Controller: LoadRunner Controller to manage and maintain your scenarios. Load generator:the LoadRunner Controller distributes each Vuser in the scenario to a load generator Performance analysis: Following a scenario run, you can view performance analysis data in reports and graph
LoadRunner Application Virtual User Generator: Controller: Analysis: Tuning Console: