What are the steps for doing load and performance testing using Load Runner?

Note: I need the actual process steps for doing load testing using load runner but not the questions and answers as were given about load runner

Editorial / Best Answer

Charles E Aron  

  • Member Since Oct-2009 | Oct 23rd, 2009


1) Select the load Runner from the Start menu.
2) From the Load testing Tab, click on "Create/Edit Scripts"
3) Once the Virtual User generator is opened, select "New" and select the protocol based on your project requirement or for a sample application select "Web(HTML/HTTP)" protocol from the Available protocols and click "ok"
4) Enter the URL of the application which you are going to test.
5) Give the Working Directory path in which your script need to be saved.
6) In Record to Action you have three options
i) vuser_init -> record the login part
ii) Action -> record the transaction or the body part.
iii) vuser_end -> record the sign off
Note: for your sample login to action and record all the script.
7) Once the url is opened start entering the username and password and do the other transaction process. Once finish, log off and stop the record session by click the stop icon.
8) Correlate the script, parameterize the URL, username and password if required other variables too and check whether the the script runs without any errors
Note: Before running check the run time settings and run for atleast three to five iterations.
9) Create more scripts according to your requirement and check they should run without errors.
10) Open the scenario, pull all the scripts add the number of users you want to run, set the rampup and duration of the run. Runtime settings and Generators you are using to run the load should be given. see that you connected the generators and Start running the scenario.
11) Analyse the graph for the performance.

Showing Answers 1 - 6 of 6 Answers

mohangopi

  • Mar 8th, 2006
 

You must set the environment first, to perform the load test.

Its like,

1. Set Closed user network. ie.,  set up an environment, that the system which are all connected should be, the system where the loadrunner is installed,the application server and the database server.

2. Now you can start up with the normal procedure like, creating scenario, recording scripts, compile it, run the script.

3.  Open controller, take down the script and initialize no of users

3. Run the test , analyse the result.

As simple as that

Gopi...NIIT Ltd.

  Was this answer useful?  Yes

Gopi

  • Mar 8th, 2006
 

Plz let me know, If I am not right

Gopi.

  Was this answer useful?  Yes

Vinayak

  • Apr 3rd, 2006
 

You are perfectly right my dear friend.

  Was this answer useful?  Yes

Subraja

  • Aug 4th, 2006
 

Hello,

I want to know about the 'Analsyising the results ' of Load Runner.How to understand the performance of the Application for which we perform Load Test by means of the Graphs obtained?

Please Anyone Explain me about this

Hi friends

We can follow below process for conducting the Loadtesting by using Loadrunner

1. PlanTest

2.Create VuGen Script

3.Enhance the VuGen script

4.Creating controller scenario

5.Running the Scenario in Controller

6.Analyse the results

Abhishek Singh

  • Oct 10th, 2006
 

  I have not used Load runner before , I am just  Doing R & D but unable to create any thing From Load runner

Please tell option Present on Load runner to Perform these tasks like

1. PlanTest

2.Create VuGen Script

3.Enhance the VuGen script

4.Creating controller scenario

5.Running the Scenario in Controller

6.Analyse the results

seethalakshmi

  • Nov 30th, 2006
 

Hi all,

We know the process, but we need the practical process like, click this start, then procedd by clicking further, we need the steps in practical.  We can get this theory language from all books, but we need the practical flow from beginning to edge.   Please anyone can help us to test the web based registration applciation to test the performance 25 users to register a website and 100 registration for 1 hour.

Please anyone can help me.

regards

seetha

  Was this answer useful?  Yes

srini

  • Jan 10th, 2007
 

using remote access of loadrunner from US  is there any  problem with accuracy

  Was this answer useful?  Yes

Here are the steps to record a test:

1.Select  file->new

2.New virtual user ->select a protocol( for example Web(HTTP/HTML) for web application and click OK

3.Start Recording :Application type:Internet Application,Program to record:microsoft internet explorer,

URL address:http://www.yahoo.com(for example),working directory : which can be found in the properties of  Internet explorer(under general tab ->location).Click OK.

Once you  aredone with recording a test, go to Controller and run your script by editting Run-time setting,etc..and create running scenarios and  monitor graphs(Running Vusers,Transaction response time,no.of hits per second,windows resource monitor etc....)

  Was this answer useful?  Yes

Abhishek

  • Mar 28th, 2007
 

yes u r right my friend. i am saving a user information in the application database while generating the script in load runner, but i am getting an error in execution log saying  sql error. please tell me why is it so?

  Was this answer useful?  Yes

Suman

  • Aug 23rd, 2007
 

hai

i am having some information, i think those details will help u , follow these steps

Select file new
select the http based
select the browser
select ok
Then record the script (insert the transaction points if necessary)
stop the recording

In the Script

Do parametrization if necessary
               Select the word(which u want to parametrize) and right click on that and select replace with parameter and enter the Values over there

save the file ('suman')
selcet ok


In the controller
Add the script .. ('suman')
then select the Manual oriented (here you can select the vusers)

select the load generators for vuser(from which load generator)
(by entering the name or ip address)

Edit the scheduler
Edit the Run time settings according to u r req
run the Scenario


analyse the results

  Was this answer useful?  Yes

If you need steps on how to record i think the load runner documentation is a better way then
forums.
The process given above is standard and applies for almost all the projects.
However performance testing is not just about record and playback.
The way load is being put.
You said above hundred registrations in an hour with 25 users.
Now how many transactions are there and are
you benchmarking the application or the infrastructure.

The process to benchmark an application used:
Prepare the plan
Setup an isolated LAN
Prepare the scripts
Enhance the scripts
Prepare the load scenario with appropriate think times as well as rampup
Run increasing load test to find the peak load
Analyse the results and then move forward

  Was this answer useful?  Yes

1) Select the load Runner from the Start menu.
2) From the Load testing Tab, click on "Create/Edit Scripts"
3) Once the Virtual User generator is opened, select "New" and select the protocol based on
your project requirement or for a sample application select "Web(HTML/HTTP)" protocol from the Available protocols and click "ok"
4) Enter the URL of the application which you are going to test.
5) Give the Working Directory path in which
your script need to be saved.
6) In Record to Action you have three options
i) vuser_init -> record the login part
ii) Action -> record the transaction or the body part.
iii) vuser_end -> record the sign off
Note: for your sample login to action and record all the script.
7) Once the url is opened start entering the username and password and do the other transaction process. Once finish, log off and stop the record session by click the stop icon.
8) Correlate the script, parameterize the
URL, username and password if required other variables too and check whether the the script runs without any errors
Note: Before running check the run time settings and run for atleast three to five iterations.
9) Create more scripts according to
your requirement and check they should run without errors.
10) Open the scenario, pull all the scripts add the number of users
you want to run, set the rampup and duration of the run. Runtime settings and Generators you are using to run the load should be given. see that you connected the generators and Start running the scenario.
11) Analyse the graph for the performance.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions