By default the scripting language used by LoadRunner is C. If there are any Java based applications recorded. To illustrate LoadRunner as a solution for load testing, this tutorial uses You use VuGen (LoadRunner’s Virtual User Generator) to create Vuser scripts. VuGen. Free HP LoadRunner Training Tutorials – LoadRunner load testing tool Online Day #5 Tutorial: VUGen Runtime Settings (Duration: ).

Author: Akishura Vigami
Country: Nepal
Language: English (Spanish)
Genre: Marketing
Published (Last): 14 March 2009
Pages: 496
PDF File Size: 11.4 Mb
ePub File Size: 3.59 Mb
ISBN: 858-5-37028-342-4
Downloads: 36513
Price: Free* [*Free Regsitration Required]
Uploader: Fegor

The tool is designed to generate a specific load on the application. During this phase, it can be determined how the application behaves under different load conditions. This LoadRunner tutorial is suitable for manual tester who have no experience in performance testing.

Before we start using LoadRunner, it is important to have a basic understanding of Performance Testing and why we need to test the performance of any application. It is also helpful to have a brief idea of the various modules in LoadRunner.

Performance Testing is conducted to see how the application behaves under various load conditions. Performance testing can be broken down into the following categories. The entire testing life cycle is depicted in the below diagram. Once the System has been validated for its functionality during the System and Integration testing phase, performance testing is conducted. The above numbers are just staggering. Even with the above numbers, The Company needs to ensure that normal functionality on Facebook should perform as it should.

Would anyone want to wait for 1 hour to log onto Facebook because of the load on the application. So the only way to ensure that the web site behaves as it should under a heavy load is to ensure that proper performance testing is carried out to replicate the high number of users on the application. Amazon has nearly million visitors per month on the site.

Just Imagine if ever the Amazon site were to go down if the load on the system was not accounted for.

HP Loadrunner Tutorial for Beginners

Forbes has predicted that Amazon would lose around 66, USD per minute if ever the site were to down. This is a staggering loss to the company. One can just understand how important it is to conduct a performance test for an application to see how it would behave under various load conditions.

The LoadRunner is a performance vugeen tool which was initially designed by the company Mercury Interactive.

It was later absorbed loarrunner Hewlett Packard when the latter acquired Mercury Interactive in November The most recent version of LoadRunner is LoadRunner is used to simulate the actual user activity on an application. This user activity is multiplied with the help of running virtual users in parallel. In order to test your application, you need to ensure you have the right protocol titorial along with the LoadRunner tool. So for example, if you wanted to test a web application, you would need to have the Web HTTP protocol license.

LoadRunner is designed to work with a wide number of protocols. The entire list of protocols is given below. The LoadRunner architecture is shown below. Note that the Application under test can be of any Infrastructure type. Here we are considering a simple web server and a database server.

VuGen(Virtual User Generator) Script Recording Example in LoadRunner

With these different mix of scenarios and users, it would give an ideal situation to see how the application behaves under various scenarios and user loads. Agents — When you execute virtual users, they take up system memory and CPU utilization. Hence it is not ideal for the Controller machine to execute the virtual users. In an ideal scenario, the virtual users are normally executed from separate machines known as Agents. The Controller is used to manage these agents.


In this way the performance testing environment is separated by having isolated agent machines which will run the user load. Analysis — The Analysis component is used to generate results about the Vusers and the test itself. Ensure the right stakeholders are in place.

In order to run performance tests, all key stakeholders should be in place upfront. Ideally all business critical transactions should be part of the performance test. Normally the exact test transactions would be defined in the Test Planning document as Non-functional test requirements. Below is a sample of how the scenarios would be laid out.

For each scenario, the concurrent users which need to be fired for a load test and Stress test are given.

Secondly the SLA or agreed response time for each scenario is documented. Apart from the graphs which will be generated by Load runner, you would also need to losdrunner the servers which are hosting loarunner application. Hence when the load test is running, ensure that the right monitoring tools on tutlrial servers are running. Below is an example of performance metrics taken from a Windows based environment for application servers. This is a key input.

The actual business transactions cannot run if there is no test input. Ensure the application database has the right test data, else the performance tests might give inaccurate results.

Also ensure that each test scenario picks up different test data each time it is run. An example is given below.

Here we have 2 Virtual users running a scenario. Each virtual user should run with a different user ID so that they can generate varying results. If you run the same scenario for the same user id multiple times, you might get data from a cache, and this might give a wrong indication for the performance test.

Below is a snippet of a load test report which can be generated after a performance test. The table defines the load for 40 and 80 concurrent users. And it gives the server response time, at an average count and 90 percentile count. In the next topic, we will learn how to download and install LoadRunner.

How to use Analysis in LoadRunner? In this article, you will learn What is Performance Testing? Why do need Performance Testing? Load Testing — This category looks at whether your application meets the Service Level Agreements which have been defined when the system is subject to a particular load. For example, suppose you have a login page for an application.

There could be a defined SLA defined saying that this page should always load in 2 seconds. Hence no matter how many users hit the application at one time, this page should always load vugne that defined time frame. Load testing can also be used to determine the breaking point of your application. So it could determine that for a user load of users, the application just fails to load. Stress Testing — This is normally conducted to find issues that would prop up whenever there is a high load on the system.


For example there loarunner be cases wherein the memory heap size may not be enough when an application is subject to a high load. In such cases certain steps may need to be taken to ensure the application can work under loads. Capacity Testing — This is used to determine what the future growth requirement for an application is if the load on the application does increase in the future.

Why do we need Performance Testing? There are currently over 1. VuGen — The VuGen component is used to loadrunjer the exact business transaction within your applications. This component generates a script gutorial as Vuser script by recording the user actions.

Some examples of user steps for an application are given below. Open the login page for the application Log into the application Open a Generate report page Enter the required details to generate the report Generate the Report Controller — Ideally for any application, you will have many Vuser scripts and various settings under which each script needs to run.

The Controller is used to design the load test scenarios and designate how many users will be run against the application. In the Controller you can design the various scenarios which will actually run against the application. You can also use the Controller to start and stop the tests and virtual users which access the application. The Controller can also be used to monitor the performance of each business transaction during the execution of the test.

So if we take the above scenarios discussed in VuGen in context, we can have a different mix of users for each user case scenario. Stakeholders Ensure the right stakeholders are in place.

Business users — These are the users who will define the key transactions that loadrunnerr to be included in the performance test. Application Manager — This tutofial the project manager who is in charge of the application. He is the main stakeholder for any escalations. Test Manager — This is the person who is responsible for the entire testing process. Infrastructure team — Ensure the entire infrastructure team is place to monitor the servers for the application which is being tested.

Introduction to Virtual User Generator – VuGen Tutorial

Defining the Business Transactions Ideally all business critical transactions should be part of the performance test. Define the performance Metrics which will be monitored Apart from the graphs which will be generated by Load runner, you would also need to monitor the servers which are hosting the application. Define the test data This is a key input. An example is given below Here we have 2 Virtual users running a scenario.

Tutorial – 1: How do we record an application using LoadRunner? – Software Testing Genius

Conduct the Performance test The final task for the testing team is to perform the below steps. Create the VuGen scripts as per the defined business processed. Test the scripts to ensure they run properly. Connect the scripts to the test data. Ensure tutrial test scenarios are defined properly in the Controller.

Run the tests during the defined duration.