Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Performance Basics
- Performance testing can only be done when all major critical defects have been fixed.
- For High transactional applications, performance testing is done at ever functional level (At every
thread level). Basically, it is done to check how many levels of threads the application can take.
Queries that make requests to the server is end-to-end. E.g. ‘Submitting’ a query can be an end
scenario.
- Performance Types
> Load
> Performance Testing (Load and performance go hand-in-hand.)
> Stress/Endurance Testing
> Soak testing
> Spike Testing
> Disaster recovery testing
- Load
- Traffic that is pushed onto a server is called a load. Performance testing is done by creating Virtual
Users (VUsers). To amount of load is checked by using probes.
- Against the load, we can check how the performance of my server is.
- There are many tools that can do network monitoring.
- Stress Testing
- Testing to a point at which the application will break. It involves pushing the application capacity till it
cannot take it anymore.
- Used to test scalability
- Spike Testing
- Includes drastically increasing the traffic on the server to check how it handles the sudden surge.
- Application might not be able to comprehend the sudden increase of traffic.
- What do we measure?
- CPU usage
- Memory usage
- Hits/second – Any request from a server is a hit.
- Throughput - Throughput is measured by the number of hits. It is always measured in bytes/sec and
checks how much data has the server transferred.
When the server is hit, more data is hit. Hence, the throughput should go up when the hits go up.
- Hits/sec become flat as the number of VUsers increase. This is caused due to problem with the
Database Server. There may be caused due to deadlock.
- Load Generators
- Load Generator creates the load by running virtual users.
- How to control multiple users.
- Load Generator specifies the number of users and the control machines.
Features of LoadRunner
- VUGen – VUgen is used for record and playback.
- Controller – Decides the strategy to fire traffic. Strategies include Ramping up traffic (i.e. Shooting at
intervals) or Linear (generate traffic at every point).
- Analysis- Collates the data which it gets from the user.
- ThinkTime – While recording, the time difference between performing functions is seen as a ThinkTime
by LoadRunner.
Correlation
- Get value for the object and pass it for sending requests.
- LoadRunner gives a message if correlation is not possible.
Parametrization
- Takes data from an external source.
File Extensions:
.lrr – Load Runner Result
.lrs - Load Runner Scenario
Note:
Performance testing cannot be done for standalone applications.