Various Functionality Of Loadrunner

1)Simultaneous and Concurrent users:

Concurrent Users:

All the vusers in a particular scenario are called Concurrent vusers. They may or may not perform the same tasks.Concurrent users hit the site at exactly the same moment. Concurrent users are the users who have a valid session in the server & they are performing the same operation at any point of time. All the concurrent users would perform login, reports download, etc at the same point of time

Simultaneous Users:

Simultaneous vusers is more to do with rendezvous points. When we set rendezvous points we instruct the system to wait till a certain no of vusers arrive so that they all can do a particular task simultaneously. These vusers performing the same task at the same time are called Simultaneous vusers. Simultaneous users have active connections to the same Web site. Simultaneous users are the users who have a valid session in the server. Each of the users would be performing different actions like one doing login , other viewing the reports, etc.

2) Vugen And Controller:

VuGen is a loadrunner component used to generate vuser script i.e here we record a business operation performed by a single user. The Vugen records the behavior of the client s/w, and automatically generates a script that can be used by the controller to run vusers. VuGen generates a script that contains the actual values used during recording and during script enhancement phase test engineer has to replace the recorded values with parameters is known as parameterizing the script.

The Controller has two sections

  • Design Section – Used to design the load testing scenario
  • Run Section – Used to monitor scenarios which are in execution.

3)Correlation:

  • Sometime, after creating a script, a simple playback fail even though the recording of the same actions succeeded.
  • Many applications use dynamic values that change each time you use the application. For example, some servers assign a unique session ID for every new session. When you try to replay a recorded session, the application creates a new session ID that differs from the recorded session ID.
  • LoadRunner addresses this issue through correlation. Correlation saves the changing values to a parameter.When running the emulation, the Vuser does not use the recorded value—instead, it uses the new value assigned to it by the server.
Advertisements

Explaining Load Runner Specific Features

Loadrunner is a trusted name in the field of software testing. There certain features of Loadrunner which makes it stand apart from other tools present in the market. Some of the Loadrunner specific features are as follows :

  • Think Time: Think time is the amount of time for which the script will not perform any action. While recording the browsing action, if a user doesn’t perform any action for a specific period of time, it is taken into account as think time. While modifying the recorded script think time can be inserted manually.
  • Rendezvous: Sometimes we need to emulate heavy user load on your system. To achieve this, we synchronize Vusers to perform a task at exactly the same moment. You configure multiple Vusers to act simultaneously by creating a rendezvous point. When a Vuser arrives at the rendezvous point, it waits until all Vusers arrive.When all Vusers arrive, the Vusers are released.
  • Parameters: To make some of the dynamic data supplied by the users such as login details, search term should be replaced with parameters and so that the script is not hard-coded and these parameter values are different for some vusers, thus making the load testing more realistic.
  • Correlation: Dynamic variables like cookies, session id etc changes every time we connect with the website.While recording the script these variables values are hard coded. So when we run the script it shows error and the script is not passed as these values should be different every time we connect to that particular site.Correlation helps us overcome this problem.
  • Transaction: Transaction are those those functions in your script that should be monitored with details.Some functions like login, cart etc are important for the website,thus their response time is very important. In that scenario insert transactions to get a detailed summary about those actions

 

Hp Loadrunner Installation

Installation of LoadRunner

Well if you are reading this post, then you must be having a fair idea about what the LoadRunner software is and what it is used for. Now you must be having an urge to try out this software for testing your personal application, software, and website or may be for educational purpose. But before you try out this awesome software you have to get the installation files and also install it on your machine in a correct manner so that you don’t have to Google every now and then to solve out various problems. Well this post is there to help you out with the installation of LoadRunner on your machine.

Since LoadRunner is the most famous testing software currently used in the industry and is made by HP, it is obvious that it doesn’t come cheap. This software cost around $915,200 for 3 years (approx), which is whole lot of money for any individual or even for a testing company. But we can download a 10 day LoadRunner trial version to try out our hands on this software. One can download the trial version from here(http://www8.hp.com/us/en/software-solutions/software.html?compURI=1175451#.UCQSyZ3iaSE). After selecting the option to download, you will be required to fill a form and an email will be sent to your email account containing a link to download the software. The size of the software is around 3.78 GB. After you download the software, you are all ready to install the software but before that you have to make sure that your machine meets the required specifications as mentioned below:

The following prerequisite software needs to be installed:

  • .NET Framework 3.5 SP1
  • Microsoft Data Access Components (MDAC) 2.8 SP1 (or later)
  • Microsoft Windows Installer 3.1
  • Microsoft Core XML Services (MSXML) 6.0
  • Microsoft Visual C++ 2005 SP1 Redistributable Package (x86)
  • Microsoft Visual C++ 2008 Redistributable Package (x86)
  • Web Services Enhancements (WSE) 2.0 SP3 for Microsoft .NET Redistributable Runtime MSI
  • Web Services Enhancements (WSE) 3.0 for Microsoft .NET Redistributable Runtime MSI
  • Strawberry Perl 5.10.

Even if any of the above thing is missing, you don’t have to panic, because the LoadRunner installation wizard will download and install it for you if they are found missing. Now that is a cool feature.

Beyond those requirements there are certain other requirements that also have to be followed for the smooth running of LoadRunner.

The system requirements for VUGEN, CONTROLLER and ANALYSIS can be summed up as follows:

  • The processor can be Intel Core, Pentium, Xeon, AMD or compatible with a minimum speed of 1 GHz and its recommended to have 2 GHz or above.
  • Operating system ranges from Windows XP to Windows 7 with all versions between them, but to run VUGEN for recording purpose it has to be a 32-bit operating system.
  • Memory should be minimum of 2GB and it is recommended to be 4GB or higher.
  • The screen resolution should be around 1024 X 768.
  • LoadRunner only supports Internet Explorer for the recording purposes.
  • A minimum hard disk space of 2GB is required for it.

Similar type of requirements is also necessary for the Load Generator component of the LoadRunner but if you are using the Pentium processor, hyper threading function should be disabled (Details).

If your machine fulfils this requirement then you can further proceed for the installation part. Now unzip the downloaded file to any location of your choice and then search for the setup file. Clicking on it will load the installation wizard and you can follow the on-screen instructions to successfully install the LoadRunner on your machine. After installation start your program and get set to work.

 

Vuser Scripting

The following blog article will guide and help the users in creation of Vuser scripts in LoadRunner

  • Open Virtual user generator.
  • Select file-> new script and solution and name it accordingly. From the protocol portion select web-http/html. Press Create.
  • Now the actions will be recorded for the generation of the script. To start recording press the red circular button from the menu bar. In the start recording window enter the url of the website.
  • Change the application to record to Google Chrome or any browser present in your machine. Press Start recording.
  • Different functions of the website like login, browsing different links, search, logout etc. After the browsing is over stop the recording.
  • LoadRunner will automatically create a script for you and search for the dynamic variables like cookies, session id etc that change every time we connect with the website. It will show all those variables that should be correlated to make script run without any errors.
  • Design studio box list does values and will ask whether we want to perform correlation. Click Correlate button.Correlation will be performed and the dynamic values will be replaced with parameters.
  • You can also create a rendezvous point where you want every vuser to meet there and then proceed further. Right click before the action where you want to perform rendezvous and select insert->rendezvous and name it.
  • One can also create a transaction for the functions which are very important from the functionality point of view. Select the place you want to start transaction. Right click select Insert->Start transaction. Then name your transaction by writing the name within the double quotes provided. Again when you want to end the transaction right click and select Insert->End transaction and then write the name of the transaction you are ending.
  • While logging a username and password is used, to parameterise them to make it dynamic, search for the username and password in the script. Select the value and right click select replace with parameter->create new parameter.
  • In the select or create parameter box write the name of the parameter and select the type of the parameter. Now click on properties. If File is selected you will see a table with one row and column with the value equal to the value used during login. We can add more values by adding new row. Now click close and then OK.
  • Do it similarly for the password or any other values like search term etc.
  • Now replay the script by clicking the green play button. If the script gets passed it means it is error free, you can proceed further else search for the errors and fix them and again replay the script.

Thus in this way we create scripts and modify it with correlated parameters, rendezvous, transactions and user based parameters.

Common Errors While Using Loadrunner

  1. Error -10343: Communication error: Failed to connect to remote host

Solution:

Make sure that you apply the same LoadRunner version and Service Pack on the Controller and Load Generator machines.

Make sure that you can ping the Controller and host machine bidirectionally. You may need to add the IP address and machine name on the host file

  1. Error -29989: Process “lr_bridge.exe” was not created on remote host , reason – communication error.

Solution:

The LoadRunner Agent Process is trying to connect through a port that is busy .LoadRunner Agent Process/service starts itself at port 50500 and 54345 (For monitoring/running vuser over firewall, it is port 443). Do a netstat -an on the machine and check to see if 54345 and 50500 are occupied. If these ports are in used when you start the agent, you will get the above error.

  1. Error -10344: Communication error: Failed to bind socket. A process on the machine is already bound to the same address.

Solution:

You may also get this error during replay if LoadRunner agent of the host machine is connecting back to the controller using a port that is already bound.

  1. ERROR -29987: Process “traceroute_server.exe was not created…” when connecting to a remote host.

Solution:

verify that you are able to ping back and forth between the controller and the load generator machines using both host names as well as ip addresses..

Add the host name and ip address of load generator to the hosts file on the controller. Add the host name and ip address of the controller to the hosts file on the load generator

5.Error -30932: “Failed to open eve file

The Load Generator files may be specified in the Controller options to be shared on a network drive, but they are being saved on a local drive. To check this, in the Controller go to Tools -> Options -> RunTime File Storage and select the “On the current Vuser machine” option

Create Load Test

  • The load test in loadrunner is created with the building up of scripts also known as vugen scripts.
  • The vugen scripts are created from the vugen generator application program that can be started directly from the folder in the start menu or from the loadrunner welcome page interface.
  • When started click on file->new and then a dialog box will open up requesting you to select the protocol required.
  • Choose the protocol you need based upon the application you are testing.  Over here  we will deal with Web (Http and Html) for testing various websites according the performance point of view.
  • After selecting the protocol you will see a  ‘start record ’ button in the task bar. On clicking that another dialog box will open up with different fields. Keeping all other fields intact just write the url of the website to be tested in the required space and click ok.
  • After that a browser will open up (usually Internet Explorer) and navigate the web just the same you want your think the users are going to use your website or the way so that you can cover the parts of the site you want to get tested.(eg. Login, logout, cart function, Search function etc).
  • After you are done with navigating the website click on the stop button from the small control box that will be lying  above the browser to stop recording it.
  • Now you can replay this script by pressing Run button from the task bar or by clicking F5. Different manipulations of the scripts can be done which is explained in ‘building your script’ part.

What are Loadrunner Performance Testing Tool

Various products of loadRunner:

1)HP LoadRunner software for Mobile:

Mobile users are extremely sensitive to the performance and reliability of mobile services  and reliability of mobile services. There is much evidence of dramatically reduced service consumption and associated decrease in revenues due to service-performance issues. HP LoadRunner software for Mobile is a telco-grade solution for predicting system behavior and service performance against real-life load scenarios.

HP LoadRunner for Mobile enables our organization to:

  • Obtain an accurate picture of end-to-end service performance prior to going live.
  • Verify that new or upgraded mobile services meet specified performance requirements.
  • Identify and reduce performance bottlenecks during the deployment and operations lifecycle.

How LoadRunner for Mobile Works?

HP LoadRunner for Mobile emulates thousands of concurrent users to simulate real-life workload. HP LoadRunner for Mobile stresses a service or an application from end to end—applying consistent, measurable and repeatable loads. HP LoadRunner for Mobile captures the end-user response times of key user-interaction sequences with the tested services to levels of performance and reliability can be met.

2)Hp loadrunner for cloud:

HP has recently announced the cloud version of LoadRunner in colloboration with Amazon EC2. LoadRunner  is not just poised to bridge that gap with its on-demand and “pay-as-you-go” policy – to add to that, its in-the-cloud offering going to reduce the burden of permissions required in a company set-up to negotiate a firewall. LoadRunner in the Cloud is based on LoadRunner 9.5 and is immediately available as a beta-test free of charge for US customers. Users will still need to pay for Amazon cloud infrastructure and bandwidth usage.