Uncategorized

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.

 

Uncategorized

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.

Uncategorized

List Of LoadRunner Books:

LoadRunner Books for reference:

1) Performance & Load Testing

2) An Introduction to LoadRunner – A Powerful Performance Testing Tool by HP

3) Let us Learn & Master LoadRunner 9.0

4) Load Test Planning – Especially with LoadRunner

5) Understanding of Load Testing Tools – Especially HP LoadRunner

6) Introduction to HP LoadRunner

7) Building Scripts for LoadRunner

8) Configuration of Run Time Settings for HP LoadRunner

9) Playing Back Scripts in HP LoadRunner

10) Parameterization – Advanced VUser Scripts in HP LoadRunner

11) Enhancing Vuser Scripts in HP LoadRunner

12) Understanding Correlation in HP LoadRunner

13) How to design a Scenario in HP LoadRunner

14) How to Run a Scenario in HP LoadRunner

15) How to do Analysis in HP LoadRunner

16) Understanding Performance testing – The Performance Testing Tool

17) Understanding Analysis Reports in HP LoadRunner

 

 

Software Testing

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.
Software Testing

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

Software Testing

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.
Software Testing

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.