Load Runner Fundamentals
Load Runner Fundamentals
Load Runner Fundamentals
LoadRunner Fundamentals
TRAINING SCHEDULE
Day 1 Basics of Performance Testing Why LoadRunner? Basics of LoadRunner Components Installing LR Components Planning an Effective Load Test Scenarios Using Run-Time Settings Scenario Execution Scheduling Scenarios Performance Monitors Results Analysis Day 2 Record and Replay Transactions Parameterization Correlation Verification Analyzing Graphs/ Discussion
What is Testing?
A process to ensure the accuracy, completeness and quality of developed software. "... the process of exercising or evaluating a system or system component by manual or automated means to verify that it satisfies specified requirements or to identify differences between expected and actual results ..." . Manual Testing The The part of software testing which requires human input, analysis, or evaluation.
Automation Testing The software testing where the input, analysis etc, are done through automated means. We use test automation tools like QTP , LoadRunner, Silktest, Test Director.
Types of Testing:
Functional Testing- The testing that ignores the internal mechanism of a system or component and focuses solely on the outputs generated in response to selected inputs and execution conditions. It ensures that the program physically works the way it was intended and all required menu options are present. It also ensures that the program confirms to the industry standards relevant to that environment.
Non-functional Testing- Non Functional Testing suggests "HOW WELL" the product behaves. This HOW WELL definition is with reference to ease of use, reliability, performance, security etc.
Performance Testing
Performance testing is testing that is performed to determine how fast some aspect of a system behaves under a particular workload. Performance testing is carried out to prove that an application meets certain performance requirements set down by the customer.
Primarily used to determine: Capacity of existing systems. Benchmarks for future systems. Degradation with various loads.
Scalability (Capacity) Will the application handle the expected user load and beyond?
Stability Is the application stable under expected and unexpected user loads? What happens if user gets disconnected or web server gets down?
Confidence Are you sure that users will have a positive experience on go-live day?
Why LoadRunner?
2: Why LoadRunner?
2: Why LoadRunner?
LoadRunner Solution
2: Why LoadRunner?
LoadRunner Solution
LoadRunner eliminates the need for hundreds of testers and massive resources. Instead, virtual users execute test steps which have been recorded so they can be repeated. These test steps are saved as scripts and are organized as scenarios, eliminating the need to coordinate testing manually.
2: Why LoadRunner?
Scenario: A scenario is a file that defines the scripts to execute, the number of Vusers to run, the goals of the test, the computer that will host the Vusers, and the conditions under which the load test runs.
Controller: The Controller is the machine you designate to manage and maintain your scenarios and allows you to control all the Vusers of the scenario from a single location.
Performance Monitors: Real time monitors capture performance data across all tiers, servers and network resources and display information on the Controller.
Installing LR Components
Installing VuGen
Installing Analysis
Some examples of conceptual goals and their relative priority might include the following: A high-priority example would be the responsiveness of a Search function. Are we able to get search results within a reasonable time? A second example is the system administrator's concern that the Update transaction functions well during heavy usage.
In the initial stages, jotting down immeasurable goals will allow later filtering in order to arrive at more focused goals, as well as to cover all objectives for load testing.
Business Process
A business process is a set of actions or user steps performed within an application to accomplish a business goal.
Heavy Throughput Business processes that may not be mission-critical but are very popular.
Dynamic Data Any business process that relies on dynamic content is more likely to fail during periods of heavy load than one based on static content.
Think Time
LoadRunner Think Time is a measurement of the time that a real user takes to pause between the execution of steps.
Concurrency
A concurrency is a set of users acting upon an application in a similar manner at the same time. Concurrency occurs on three levels: Application Level Business Process Level Transaction Level How many users are active on the system? How many users are buying tickets? How many users are buying tickets now?
Application Concurrency
A Task Distribution Diagram formats the business process and its volume across a time line.
Transactional Concurrency
How many transactions will need to be run per minute if a load test has to be run for two hours with 5000 users, assuming an average length of five minutes?
Question key points: Duration of Load Test: 120 minutes Number of Concurrent Users: 5,000 Average Length of a Transaction: 5 minutes Number of Transactions/ min: ???
Solution: No of transactions performed in 2 hours = by a single user = No of transactions performed in 2 hours = by 5000 users = Number of Transactions/ min = = Duration of Load Test / Average Length of a Transaction 120 / 5 or 24 Transactions No of transactions performed in 2 hours by a single user * Number of Concurrent Users 24 * 5,000 or 120,000 No of transactions performed in 2 hours by 5000 users / Duration of Load Test 120,000 / 120 or 1,000 Transactions / min
User Profile
Profiling Users Helps emulate real world conditions. Provides tuning guidelines for the system. Increases customer satisfaction and revenue.
Peak Load
Business processes with the highest levels of load will be the most important to load test. In this example the peak load for the Search BP is 5000 simultaneous users for the period of 10:00 to 12:00.
System checklist
Benchmarking Run
To validate that there is enough test hardware available in the test environment, benchmark the BPs against the testing hardware. Take a business process and execute a small number of users against the application. Validates the functionality of the BP Potentially exposes unknown data dependencies Establishes the user footprint Evaluate the testing infrastructure against the footprint. Do I have enough hardware to generate the user load? Do I have enough memory? Do I have enough CPUs?
Scenarios
6: Scenarios
Scenarios
A scenario is a file that defines the Vusers to execute, the number of Vusers to run, the goals of the test, the computer that hosts the Vusers, and the conditions under which to run the load test. Elements of Scenario:
6: Scenarios
How many virtual users will execute each script, and how suddenly or gradually should they begin?
6: Scenarios
6: Scenarios
6: Scenarios
6: Scenarios
6: Scenarios
Vuser Groups
6: Scenarios
6: Scenarios
6: Scenarios
6: Scenarios
6: Scenarios
6: Scenarios
6: Scenarios
6: Scenarios
6: Scenarios
6: Scenarios
Simple Scenarios Have a single user script. Assign 100% of Vusers to the script to profile a group of users performing the same action Multiple Script Scenarios Use several scripts. Assign a percentage of the total Vusers to each profile.