HP Loadrunner Introduction

HP Loadrunner is a famous tool for performance testing.It stresses your application to desired limits and identifies potential and problematic bottlenecks in client,network or server.

Loadrunner addresses the above issues in following ways :-

  • It has Vusers which act as virtual users and emulate the actions performed by different real users.As multiple vusers run on the same machine it evens helps in curbing the cost of hardware required.
  • Loadrunner Controller helps in controlling all of the vusers from a single point, thus helping the engineer in controlling the activities in an efficient way.
  • LoadRunner monitors the application performance online, enabling you to fine- tune your system during test execution.
  • It automatically records the performance result of the application. It has wide varieties of results to choose from,as required by the engineer.
  • LoadRunner monitors the network and server resources to help you improve performance.
  • As all of the tests are automated these can be saved and run again and again as and when required.
Advertisements

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.