You are on page 1of 5

LoadRunner TnT » Blog Archive » What happens when the scenario is exe... http://www.loadrunnertnt.

com/concepts/264/

LoadRunner TnT
Performance Testing, LoadRunner Tips & Tricks
Contact Us
Privacy Policy

What happens when the scenario is executed?


Posted: April 21st, 2008 | Author: TnT Admin | Filed under: Concepts | Tags: LoadRunner, Scenario | 6 Comments »

Here, we’ll discuss the basic overview of LoadRunner when the scenario starts execution, during and till the
end. Prior to the scenario execution, the Load Generators, amount of Vusers, designated monitoring machine,
ramp up timing, so on so forth should be already defined, and we will skip the discussion for it.

When the scenario starts executing, the Controller dispatches the Vusers (scripts) to the Load Generators
for execution. The Vusers are then executed on the Load Generator in memory with the pre-defined amount
on behalf of the Controller. These vusers in terms generate the network traffic towards the application.The
data generated by the Load Generator prior Collation process (discussed later) is stored in its default temp
directory. The temp directory of the Controller and Load Generator serves different purposes. For the
Controller, it stores the entire result data of the scenario execution whereas, the Load Generator stores the
data of its own during the scenario execution. This can be configured before the execution under the Load
Generator setup if required.

Note that if your load test stretches a (1) long duration, (2) contain additional logs or (3) you foresee a large
amount of data to be generated, it is advisable to ensure that you have sufficient space for the temp directory
in the Load Generator. It also applies to the Controller temp directory. Either increase the disk size for the
temp folder or direct it to a folder that has a larger space.

During the execution, the real time data of the monitored servers are logged as event files in the Load
Generators, at the same time, they are displayed in the graphs. At the end of the test, they are collated (in the
later section) to be combine as a single result directory.

When the scenario completes, either (1) the Vusers finished execution, (2) you pressed the “Stop” button or
(3) the duration of the load test have reached, the Vusers will gradually exit the scenario. Once all Vusers
totally exited, the Controller goes into a Collation process.

1 of 5 8/3/2010 3:00 PM
LoadRunner TnT » Blog Archive » What happens when the scenario is exe... http://www.loadrunnertnt.com/concepts/264/

Self Service Load Test


Get High-End Self Service Load Testing in
Minutes! Sign Up Today.
BrowserMob.com
Loadrunner
Test and find out your maximum capacity limit.
Get a quote today.
www.apicasystem.com
Performance Testing
Easily create, manage & automate
Performance Testing. Try Now!
AutomationAnywhere.com/Performance
Free SOA Testing Book
40 page, step-by-step guide to improving SOA
testing and quality
web.progress.com/actional

In the Collation process, data regarding the execution (event files) that are stored in the temp directory of the
Load Generator, are been sent back to the Controller to be compiled to one single result data. This is stored in
the default folder of the temp directory in Controller, usually in C:\Documents and Settings with the folder
name res. The actual file that describes the result is stored as .lrr file extension. With this file, you can launch
Analysis to perform analyzing work of the load test.

To illustrate the scenario execution briefly, you can refer to the following diagram (simplified). Click on
illustration to enlarge it.

1. The scenario is started from Controller.

2. Scripts are sent from the Controller to the Load Generators for execution.

2 of 5 8/3/2010 3:00 PM
LoadRunner TnT » Blog Archive » What happens when the scenario is exe... http://www.loadrunnertnt.com/concepts/264/

3. Scripts are executed on the Load Generator in memory.

4. Network traffic from the scripts (vuser) are generated and sent to the application.

5. While the load test is been executed, transaction timing, monitoring data and information regarding the load
test are being created as event files and stored in the temp directory of the Load Generator.

6. When the scenario completes, the event files of each Load Generators are being sent back to the Controller
in the Collation process to compile as a single result directory in the Controller.

Related Posts
4 Points to note for Scenario Execution!
Do you know you can work on the parameter files directly?
Using QTP with LoadRunner for Load Testing
Planning for a Load Test
Monitoring SAP in LoadRunner
Introducing SAPGUI protocol in LoadRunner
How-to configure Oracle Database monitoring
How-to configure Sybase monitoring
How-to record and replay ESRI ArcGIS Desktop (ArcMap)?
Does LoadRunner support JMS recording?

6 Comments on “What happens when the scenario is executed?”

1. 1 peejon said at 11:39 pm on October 30th, 2008:

This is a great site! I’ve just begun using LoadRunner, and this site is a great reference for me! I’d like
to ask about setting up load generators. When testing a client server application, do we need to have the
client installed on the load generator, or on the controller? Or since you’re basically replaying network
traffic from the load generator to the server, is it ok to leave out the client from the load generator
machine?

2. 2 TnT Admin said at 11:39 pm on October 31st, 2008:

That depends on the type of client you are using. For example, if you are using Java clients, then the
LG should have the same version of JVM and JDK installed.

3. 3 Nesh said at 11:39 pm on November 7th, 2008:

Hi, what should i do if i want to send unique data (from parameterized data) to each vuser. thanks Nesh

4. 4 TnT Admin said at 11:40 pm on November 10th, 2008:

Hi Nesh,

I believed that you’ve figure out the problem. Refer to previous comments. Have you reference the
Vuser Guide on setting the unique values in Parameter List? Regards

5. 5 Moos said at 11:40 pm on January 30th, 2009:

3 of 5 8/3/2010 3:00 PM
LoadRunner TnT » Blog Archive » What happens when the scenario is exe... http://www.loadrunnertnt.com/concepts/264/

I was running a test for 2 hours using loadrunner 8.1 after the test was done, the collation was only able
to get the event files from on of the two load generators that i am using. any idea on why does that
happen? is there is a way for me to still get the results or the event files from the generator? any advice
is appreciated Thanks

6. 6 TnT Admin said at 8:47 am on February 18th, 2009:

Hi Nesh,

You can refer to the link below that talks about how to manually retrieve the results back from the
Load Generators.

Manual collation of result set data

You will have to have a valid login to the support website. Hope that helps.

Leave a Reply

www.PowerAdmin.com/ServerMonitor Ads by Google

Tags

Add-Ons Analyze Architecture ArcMap Bottleneck Coding Controller Disk Errors ESRI firefox functions hardware

4 of 5 8/3/2010 3:00 PM
LoadRunner TnT » Blog Archive » What happens when the scenario is exe... http://www.loadrunnertnt.com/concepts/264/

Java JMX Licenses


HTTP/HTML J2EE Diagnostics LoadRunner Memory MMS Monitoring MySQL
network optimizing Oracle performance Ping processor Products Protocols QTP Resources SAP Scenario
Scripting SilkPerformer SiteScope Step Download Timeout Tools Unix up-time Vugen WebLogic Windows
Search for:

© Copyright 2010 | LoadRunner TnT | All Rights Reserved

5 of 5 8/3/2010 3:00 PM

You might also like