Google
This blogspace is meant to be a one-stop shop for anybody wanting to learn about HP Load runner.

LoadRunner is HP’s tool for application performance testing.LoadRunner stresses your entire application to isolate and identify potentialclient, network, and server bottlenecks. LoadRunner enables you to test yoursystem under controlled and peak load conditions.

When i started load runner i dont know from where to start. So i thought of posting my experiences to beginners. My intention here is to collate the useful information on Loadrunner scattered all over the web.



Performance Testing


Performance Tests are tests that determine end to end timing (benchmarking) of various time critical business processes and transactions, while the system is under low load, but with a production sized database. This sets ‘best possible’ performance expectation under a given configuration of infrastructure. It also highlights very early in the testing process if changes need to be made before load testing should be undertaken. For example, a customer search may take 15 seconds in a full sized database if indexes had not been applied correctly, or if an SQL 'hint' was incorporated in a statement that had been optimized with a much smaller database. Such performance testing would highlight such a slow customer search transaction, which could be remediated prior to a full end to end load test.

Friday 25 January 2008

Load runner Architecture


Loadrunner works by creating Virtual Users who act like Real time users on client software.
Scripts are recorded by using Vugen (Virtual User script Generator). It generators c Language script code.
By using controller we can design the scenarios. we can specify on controller how many virtual users u want to test the software. The loadrunner generators/injectors are started or stopped by using controller. During the run the status of each machine is monitored by controller.

Tuesday 15 January 2008

Wat is the use of Check points?

Check points or verification points that help your determine whether or not your service produced correct results.

They are two types of check points

text and image

To add a check point go to menu options

Insert-> Add new step-> click on web checks expand pane u can select Text check or Imagecheck

Wat is difference HTML based and URl based scripts and how can we select these recording option in Loadrunner?

The default recording option in LoadRunner is HTML- based script. To change default option from HTML based script to URL based script u need to navigate to Tools-> Recording Options.

Select Recording in General. u can select the desired option(HTML/URL) by selecting the corresponding the radio button. U cannot find GUI based scriptoption in Loadrunner 9.0

HTML based script: Instructs VuGen to record HTML actions in the context of the current Web page

URl based script : instructs VuGen to record all requests and resources from the server

Monday 14 January 2008

how to add transaction Points in load runner?

We can add transaction Points while we record

or we can add add transaction points after recording by
go to menu options-> Insert-> Start transaction-> enter the transaction name and click on button

Thursday 10 January 2008

Most of collegues ask me we have recorded a script and i wud like to know where the run time settings are saved?

The runtime setting are saved in defualt.cfg, located in the Vuser script director

How do we parametrize a value in loadrunner?

Suppose u r testing ur script by entering differnet username and password. when recording the script u have entered a UserName 'sirisha'. Now after recording ur script u can see where 'sirisha'. To parametrize u need to right click on username sirisha that u have entered during recording and select Replace with parameter. A dialog box with Name select or create Parameter is Invoked. U just need to enter the desired File Name in Parameter Name and click on OK button. Now go to menu options and click on Vuser-> Parameter File. U can see a file With name u have created and value sirisha in that file. Just u need to edit the file by clicking and edit notepad and enter the user Name that u desire to test ur application and click on save button.

what is the use of parameterizon in Loadrunner?

paramertzation helps you to test the script with different values and also it reduces the size of script. You can test ur application by using different values which makes ur job pretty easy by simply parameterizing some valid fields.

Monday 7 January 2008

How to start recording in Loadrunner?

Start -> All programs -> Loadrunner -> Applications -> Virtual User generator

Select New Vuser Script or go to menu options (Click on File -> New)

New Virtual User screen is displayed

Verify that ‘all protocols’ is selected in Category Drop down list

Based on Ur application u need to select New Single Protocol script or New Multiple Protocol script
(For ex suppose ur application deals with only web like HTTP/ HTML then u can select web(HTTP/HTML) else if ur application deals with both web and some other software like Oracle NCA u have select New Multiple Protocol Script and u need to select both Oracle NCA & Web(HTTP/HTML))

Click on OK button after u select valid protocol/ protocols

A New Window ‘Start Recording’ dialog box is invoked

Specify the Valid address in URL and Select Vuserint in record to action

When ever u record using LR u need select Vuserint for Login details

Where as in action block u need to record the actions like“ wat u want to test in the application”

In Vsuerend u need to record logout information

Click on ok button and now u can see Loadrunner records the actions that u perform on the application

Load runner 9.0 supports the following protocols

In my previous post I have specified how to start with Load runner testing process. Now we will discuss more abt creating Vuser scripts

Load runner 9.0 supports the following protocols

Action Message Format (AMF), Ajax(Click and script), C Vuser, Citrix_ICA, COM/DCOM, DB2 CLI, Domain Name Resolution (DNS), Enterprise Java Beans (EJB), File Transfer Protocol, i-mode, Informix, Internet Messaging (IMAP), Java Record Play, Java Vuser, Javascript Vuser, Listing Directory Service (LDAP), Media Player (MMS), Microsoft .Net, Microsoft Remote Desktop Protocol, MS Exchange(MAPI), MS SQL Server, Multimedia Messaging service(MMS), ODBC, Oracle (2-tier), Oracle NCA, Oracle Web application 11i, People soft Enterprise, Peoplesoft –Tuxedo, Post Office Protocol (POP3), Real, SAP - Web, SAP (Click and Script) , SAPGUI, Siebel –DB2CLI, SIEBEL – MSSQL, Siebel –Oracle, Siebel –Web, Simple Mail Protocol (SMTP), Sybase CTlib, Sybase DBlib, Terminal emulation (RTE), Tuxedo 6, Tuxedo 7, VB Script Vuser, VB Vuser, VBnet Vuser, Voice XML, WAP, Web( Click and Script), Web(Http/HTML), Web Services, Windows Sockets

Getting started with Loadrunner

Load runner Testing process involes 6 main stages

Planning the test -> Creating Vuser scripts -> Creating Scenario -> Executing Scenario -> Monitoring the Scenario -> Analysing Test results

Before testing any application using Load runner we need to analyse the application. When analysing the application we should become thoroughly familiar with hardware and software components, the system configuration and typical usage model. Because the testing environment you create using load runner should reflect the environment and configuration of the application.