Load Runner Controller User Guide
Load Runner Controller User Guide
The only warranties for HP products and services are set forth in the express warranty
statements accompanying such products and services. Nothing herein should be construed as
constituting an additional warranty. HP shall not be liable for technical or editorial errors or
omissions contained herein.
The information contained herein is subject to change without notice.
Confidential computer software. Valid license from HP required for possession, use or copying.
Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software
Documentation, and Technical Data for Commercial Items are licensed to the U.S.
Government under vendor's standard commercial license.
HP provides links to external third-party Web sites to help you find supplemental
information. Site content and availability may change without notice. HP makes no
representations or warranties whatsoever as to site content or availability.
Copyright Notices
Trademark Notices
2
Documentation Updates
This guide’s title page contains the following identifying information:
• Software Version number, which indicates the software version.
• Document Release Date, which changes each time the document is updated.
• Software Release Date, which indicates the release date of this version of the software.
To check for recent updates, or to verify that you are using the most recent edition of a
document, go to:
http://h20230.www2.hp.com/selfsolve/manuals
This site requires that you register for an HP Passport and sign-in. To register for an HP
Passport ID, go to:
http://h20229.www2.hp.com/passport-registration.html
Or click the New users - please register link on the HP Passport login page.
You will also receive updated or new editions if you subscribe to the appropriate product
support service. Contact your HP sales representative for details.
3
Support
You can visit the HP Software Support web site at:
http://www.hp.com/go/hpsoftwaresupport
This web site provides contact information and details about the products, services, and
support that HP Software offers.
HP Software Support Online provides customer self-solve capabilities. It provides a fast and
efficient way to access interactive technical support tools needed to manage your business. As
a valued support customer, you can benefit by using the HP Software Support web site to:
• Search for knowledge documents of interest
• Submit and track support cases and enhancement requests
• Download software patches
• Manage support contracts
• Look up HP support contacts
• Review information about available services
• Enter into discussions with other software customers
• Research and register for software training
Most of the support areas require that you register as an HP Passport user and sign in. Many
also require a support contract.
To find more information about access levels, go to:
http://h20230.www2.hp.com/new_access_levels.jsp
To register for an HP Passport ID, go to:
http://h20229.www2.hp.com/passport-registration.html
4
Table of Contents
5
Table of Contents
6
Table of Contents
7
Table of Contents
P A R T I I I: E X E C U T I N G A S C E N A R I O
Chapter 19: Running a Scenario .......................................................281
About Running a Scenario ................................................................281
Running an Entire Scenario ..............................................................283
Controlling Vuser Groups .................................................................284
Controlling Individual Vusers...........................................................291
Manually Releasing Vusers from a Rendezvous ................................293
Manually Adding Vusers to a Running Scenario ..............................294
8
Table of Contents
PA RT I V : W O RK IN G W I T H F I R E W A L L S
Chapter 22: Working with Firewalls in LoadRunner.........................337
About Using Firewalls in LoadRunner ..............................................337
Example: Over Firewall Deployment ................................................340
Setting Up your System to Use Firewalls: Basic Steps .......................341
Installing Over-Firewall Components...............................................342
Initial Configuration of the Over-Firewall System ...........................343
Running Vusers Over a Firewall ........................................................349
Monitoring Over a Firewall ...............................................................350
Configuring LoadRunner Agents Over the Firewall..........................351
Configuring the Controller for Running over a Firewall..................357
Checking Connectivity .....................................................................359
Chapter 23: Configuring Monitors Over a Firewall ..........................363
About Monitoring over a Firewall .....................................................363
Configuring Server Monitor Properties.............................................364
Configuring the Network Delay Monitor over a Firewall.................371
9
Table of Contents
P A R T V : W O RK IN G W I T H D I A G N O S T IC S
Chapter 24: LoadRunner Diagnostics Modules ................................375
About LoadRunner Diagnostics Modules..........................................376
LoadRunner ERP/CRM Diagnostics Types ........................................377
ERP/CRM Diagnostics Module Architecture .....................................378
Working with LoadRunner ERP/CRM Diagnostics ...........................380
Connecting to a Remote Server.........................................................381
Enabling LoadRunner Diagnostics ....................................................385
Viewing Diagnostics Results..............................................................388
Chapter 25: Configuring Siebel Diagnostics.....................................389
Configuring Siebel Diagnostics on the Application and
Web Servers ...................................................................................390
Configuring Diagnostics where the Web Server is Inside a DMZ.....392
Copying Files from the Siebel Application Server to the Mediator ..393
Setting Up the Siebel Diagnostics Module ........................................394
Chapter 26: Configuring Siebel DB Diagnostics...............................399
Preparing the Script ...........................................................................399
Synchronizing Clocks........................................................................400
Enabling Server Logging on the Siebel Server...................................401
Setting Up the Siebel DB Diagnostics Module ..................................402
Chapter 27: Configuring Oracle 11i Diagnostics..............................407
Enabling Server Logging On the Oracle Server .................................407
Selecting the Oracle NCA Application Version.................................409
Setting Up the Oracle 11i Diagnostics Module .................................410
Chapter 28: Configuring SAP Diagnostics ........................................415
SAP Diagnostics Supported Environments .......................................415
SAP Diagnostics Overview.................................................................416
Setting Up the SAP Diagnostics Module ...........................................417
Chapter 29: Configuring J2EE/.NET Diagnostics ..............................421
Specifying the Diagnostics Server Details in the Launcher ..............421
Configuring LoadRunner Scenarios to use HP Diagnostics ..............423
Viewing Diagnostics Data in LoadRunner ........................................426
Analyzing Offline Diagnostics Data ..................................................427
10
Table of Contents
11
Table of Contents
12
Welcome to This Guide
LoadRunner enables you to test your system under controlled and peak load
conditions. To generate load, LoadRunner runs thousands of Virtual Users,
or Vusers, that are distributed over a network. The Vusers can run on UNIX
and Windows-based platforms. Using a minimum of hardware resources,
these Vusers provide consistent, repeatable, and measurable load to exercise
your application just as real users would. LoadRunner’s in–depth reports and
graphs provide the information that you need to evaluate the performance
of your application.
13
Welcome to This Guide
14
Welcome to This Guide
➤ Performance Engineers
➤ Project Manager
This document assumes that you are moderately knowledgeable about
enterprise application development and highly skilled in enterprise system
and database administration.
LoadRunner Documentation
LoadRunner includes a complete set of documentation describing how to
use the product. The documentation is available from the help menu and in
PDF format. PDFs can be read and printed using Adobe Reader, which can be
downloaded from the Adobe Web site (http://www.adobe.com). Printed
documentation is also available on demand.
➤ From the Start menu, click Start > LoadRunner > Documentation and
select the relevant document.
➤ From the Help menu, click Documentation Library to open the merged
help.
15
Welcome to This Guide
LoadRunner Guides
➤ HP Virtual User Generator User Guide. Describes how to create scripts
using VuGen. The printed version consists of two volumes, Volume I -
Using VuGen and Volume II - Protocols, while the online version is a single
volume. When necessary, supplement this user guide with the online HP
LoadRunner Online Function Reference.
➤ HP LoadRunner Controller User Guide. Describes how to create and run
LoadRunner scenarios using the LoadRunner Controller in a Windows
environment.
➤ HP LoadRunner Monitor Reference. Describes how to set up the server
monitor environment and configure LoadRunner monitors for
monitoring data generated during a scenario.
➤ HP LoadRunner Analysis User Guide. Describes how to use the
LoadRunner Analysis graphs and reports after running a scenario to
analyze system performance.
➤ HP LoadRunner Installation Guide. Explains how to install LoadRunner
and additional LoadRunner components, including LoadRunner
samples.
LoadRunner References
➤ LoadRunner Function Reference. Gives you online access to all of
LoadRunner’s functions that you can use when creating Vuser scripts,
including examples of how to use the functions.
➤ Analysis API Reference. This Analysis API set can be used for unattended
creating of an Analysis session or for custom extraction of data from the
results of a test run under the Controller. You can access this reference
from the Analysis Help menu.
16
Welcome to This Guide
HP Software Support accesses the HP Software Support Web site. This site
enables you to browse the Self-solve knowledge base. You can also post to
and search user discussion forums, submit support requests, download
patches and updated documentation, and more. Choose Help > HP Software
Support. The URL for this Web site is www.hp.com/go/hpsoftwaresupport.
Most of the support areas require that you register as an HP Passport user
and sign in. Many also require a support contract.
HP Software Web site accesses the HP Software Web site. This site provides
you with the most up-to-date information on HP Software products. This
includes new software releases, seminars and trade shows, customer support,
and more. Choose Help > HP Software Web site. The URL for this Web site
is www.hp.com/go/software.
17
Welcome to This Guide
18
Part I
Understanding LoadRunner
20
1
Introduction
For example, a typical application testing scenario might depict 1000 users
that log in simultaneously to a system on Monday morning. What is the
response time of the system? Does the system crash? To be able to answer
these questions—and more—a complete application performance testing
solution must:
21
Chapter 1 • Introduction
22
Chapter 1 • Introduction
Using HP LoadRunner
➤ Scenario. Using HP LoadRunner, you divide your application performance
testing requirements into scenarios. A scenario defines the events that occur
during each testing session. Thus, for example, a scenario defines and
controls the number of users to emulate, the actions that they perform, and
the machines on which they run their emulations.
➤ Vusers. In the scenario, LoadRunner replaces human users with virtual users
or Vusers. When you run a scenario, Vusers emulate the actions of human
users working with your application. While a workstation accommodates
only a single human user, many Vusers can run concurrently on a single
workstation. In fact, a scenario can contain tens, hundreds, or even
thousands of Vusers.
➤ Vuser Scripts. The actions that a Vuser performs during the scenario are
described in a Vuser script. When you run a scenario, each Vuser executes a
Vuser script. The Vuser scripts include functions that measure and record
the performance of your application’s components.
23
Chapter 1 • Introduction
During the scenario that loads and monitors the bank server, you want to:
24
Chapter 1 • Introduction
25
Chapter 1 • Introduction
Vuser types are divided into several categories, indicating their use within
common business environments. For example:
For a complete list of the available protocols, refer to the HP Virtual User
Generator User Guide.
GUI Vusers
LoadRunner can integrate functional testing scripts in the form of GUI Vuser
scripts into a load testing scenario. These GUI Vuser scripts are created using
HP Functional Testing software - QuickTest Professional or WinRunner.
You can run only a single GUI Vuser on a Windows-based load generator.
Use Citrix to run multiple GUI Vusers. For additional information on
Windows-based GUI Vusers, see Chapter 18, “Using Functional Testing
Scripts in LoadRunner.”
26
Chapter 1 • Introduction
Vuser Technology
Vusers (except for GUI Vusers) generate load on a server by submitting input
directly to the server. Vusers do not operate client applications—they access
the server using LoadRunner API functions. These API functions emulate the
input from an actual application.
Because Vusers are not reliant on client software, you can use Vusers to test
server performance even before the client software has been developed.
Further, since Vusers do not have a user interface, the amount of system
resources required is minimal. This allows you to run large numbers of
Vusers on a single workstation.
The following example illustrates the use of Vusers: Suppose that you have a
Web-based database server that maintains your customer information. The
information is accessed by numerous customer service personnel who are
located throughout the country. The server receives the queries, processes
the requests, and returns responses via the Web to field personnel.
You want to test the response times of the entire system when numerous
service personnel simultaneously access the server. Using LoadRunner, you
could create several hundred Vusers, each Vuser accessing the server
database. The Vusers enable you to emulate and measure the performance of
your database and Web servers under the load of many users.
You develop a Vuser script to define the actions of a Vuser. A Vuser script
includes functions that control the script execution, specify the input that
the Vuser submits to the server, and measure the server performance.
27
Chapter 1 • Introduction
For the database server example above, you could create a Vuser script that
performs the following actions:
28
2
The LoadRunner Testing Process
You can easily create and run load test scenarios by following the
LoadRunner testing process below.
29
Chapter 2 • The LoadRunner Testing Process
30
Chapter 2 • The LoadRunner Testing Process
In each Vuser script, you determine the tasks that will be:
For more information on creating Vuser scripts, see the HP Virtual User
Generator User Guide.
31
Chapter 2 • The LoadRunner Testing Process
You can also create a scenario using the Percentage Mode, in which you
define the total number of Vusers to be used in the scenario, and the load
generators and percentage of the total number of Vusers to be assigned to
each Vuser script. For more information, see Chapter 10, “Creating a
Manual Scenario Using the Percentage Mode.”
Before you run a scenario, you set the scenario configuration and
scheduling. This determines how all the load generators and Vusers behave
when you run the scenario. For more information, see Chapter 15,
“Configuring a Scenario” and Chapter 11, “Scheduling Scenarios.”
You can run the entire scenario, groups of Vusers (Vuser groups), or
individual Vusers. While a scenario runs, LoadRunner measures and records
the transactions that you defined in each Vuser script. You can also monitor
your system’s performance online. For more information, see Part III,
“Executing a Scenario.”
32
Chapter 2 • The LoadRunner Testing Process
33
Chapter 2 • The LoadRunner Testing Process
34
3
Load Test Planning
35
Chapter 3 • Load Test Planning
36
Chapter 3 • Load Test Planning
37
Chapter 3 • Load Test Planning
For example, the schematic diagram above specified that there are multiple
application clients accessing the system.
For example, suppose 200 employees log on to the accounting system every
morning, and the same office network has a constant background load of 50
users performing various word processing and printing tasks. You could
create a LoadRunner scenario with 200 virtual users signing in to the
accounting database, and check the server response time.
To check how background load affects the response time, you could run
your scenario on a network where you also simulate the load of employees
performing word processing and printing activities.
Task Distribution
In addition to defining the common user tasks, examine the distribution of
these tasks. For example, suppose the bank uses a central database to serve
clients across many states and time zones. The 250 application clients are
located in two different time zones, all connecting to the same Web server.
There are 150 in Chicago and 100 in Detroit. Each begins their business day
at 9:00 AM, but since they are in different time zones, there should never be
more than 150 users signing in at any given time. You can analyze task
distribution to determine when there is peak database activity, and which
activities typically occur during peak load time.
38
Chapter 3 • Load Test Planning
Checking reliability How hard or long can the system work without
errors or failures?
Measuring system capacity How much load can the system handle
without significant performance degradation?
39
Chapter 3 • Load Test Planning
For example:
➤ General Objective. Product Evaluation: choose hardware for the Web server.
➤ Focused Objective. Product Evaluation: run the same group of 300 virtual
users on two different servers, HP and NEC. When all 300 users
simultaneously browse the pages of your Web application, determine which
hardware gives a better response time.
Planning
Development Deployment Production Evolution
and Design
Check HW or Measure
SW upgrades system
capacity
Check
reliability
40
Chapter 3 • Load Test Planning
➤ Measuring end-to-end response time. You can measure the response time
that a typical user experiences by running a GUI Vuser at the front end. GUI
Vusers emulate real users by submitting input to and receiving output from
the client application.
You can run GUI Vusers at the front end to measure the response time across
the entire network, including a terminal emulator or GUI front end,
network, and server.
41
Chapter 3 • Load Test Planning
➤ Measuring network and server response times. You can measure network
and server response time, excluding response time of the GUI front end, by
running Vusers (not GUI) on the client machine. Vusers emulate client calls
to the server without the user interface. When you run many Vusers from
the client machine, you can measure how the load affects network and
server response time.
➤ Measuring GUI response time. You can determine how the client
application interface affects response time by subtracting the previous two
measurements:
GUI response time = end-to-end - network and server
➤ Measuring server response time. You can measure the time it takes for the
server to respond to a request without going across the network. When you
run Vusers on a machine directly connected to the server, you can measure
server performance.
42
Chapter 3 • Load Test Planning
You decide which tasks to measure based on your test objectives and define
transactions for these tasks. Transactions measure the time that it takes for
the server to respond to tasks submitted by Vusers (end-to-end time). For
example, to check the response time of a bank Web server supplying an
account balance, define a transaction for this task in the Vuser script.
43
Chapter 3 • Load Test Planning
Selecting Vusers
Before you decide on the hardware configuration to use for testing,
determine the number and type of Vusers required. To decide how many
Vusers and which types to run, look at the typical usage model, combined
with the testing objectives. Some general guidelines are:
➤ Use one or a few GUI users to emulate each type of typical user connection.
➤ Run multiple Vusers to generate the rest of the load for each user type.
For example, suppose that you have five kinds of users, each performing a
different business process:
30 customers in Europe 2 28
(dial-in ISDN connection)
150 customers _ _
(terminal connection)
6 managers 2 4
44
Chapter 3 • Load Test Planning
Note: The results file requires a few MB of disk space for a long scenario run
with many transactions. The load generators also require a few MB of disk
space for temporary files if there is no NFS. See Chapter 15, “Configuring a
Scenario” for more information about run-time file storage.
45
Chapter 3 • Load Test Planning
80
Check account
Response
60 information
Time
(seconds)
40
Login
20
0
0 10 20 30 40 50
Number of Users
46
Chapter 3 • Load Test Planning
For example, you could set up three different server configurations and run
the same tests on each configuration to measure performance variations.
Checking Reliability
Determine the level of system stability under heavy or continuous work
loads. You can use LoadRunner to create stress on the system: force the
system to handle extended activity in a compressed time period to simulate
the kind of activity a system would normally experience over a period of
weeks or months.
47
Chapter 3 • Load Test Planning
Identifying Bottlenecks
You can run tests that identify bottlenecks on the system and determine
which element is causing performance degradation, for example, file
locking, resource contention, and network overload. Use LoadRunner in
conjunction with the new network and machine monitoring tools to create
load and measure performance at different points in the system. For more
information, see Part VI, “Monitoring a Scenario.”
?
? ?
?
ISDN WAN
Modem Router
Once you determine the current capacity, you can decide if resources need
to be increased to support additional users.
48
4
The Controller at a Glance
49
Chapter 4 • The Controller at a Glance
By default, the Controller opens with the New Scenario dialog box.
Note: To open the New Scenario dialog box on startup, ensure that the
Show at Startup option in the New Scenario dialog box is selected. You can
also select this option in the View menu (View > Show New Scenario
dialog).
50
Chapter 4 • The Controller at a Glance
If the New Scenario dialog box does not open on startup, you can open it by
seelcting File > New or by clicking the New button on the Controller
toolbar.
➤ Manual Scenario. You create the scenario yourself by defining the number of
Vuser groups you want to run, and building a schedule for LoadRunner to
run these groups. You can also create a manual scenario by defining the
total number of Vusers to be used in the scenario, or assigning a percentage
of the total number of Vusers to each script.
➤ Goal-Oriented Scenario. You define the goals you want your test to achieve,
and LoadRunner automatically builds a scenario for you, based on these
goals.
51
Chapter 4 • The Controller at a Glance
Note: You can change the maximum number of scripts displayed in the
Available Scripts list by modifying the following registry key:
HKEY_CURRENT_USER\Software\Mercury Interactive\RecentScripts\
max_num_of_scripts
You can also click the Browse button to locate the script you want to use. To
view the directory path of a script listed in the Available Scripts list, right-
click the script and select Show Paths.
To select a script saved in the Quality Center database, click Quality Center.
To record a new script using VuGen, click Record.
2 Click Add to copy the script you selected to the Scripts in Scenario list.
3 Click Remove to remove a script from the Scripts in Scenario list.
4 To bypass this dialog box the next time you create a new scenario, clear the
Show at startup check box. You will be able to add scripts later on, while
building your scenario.
5 Click OK to close the dialog box.
52
Chapter 4 • The Controller at a Glance
➤ Title bar. Displays the name of the scenario on which you are currently
working.
➤ Status Bar. Displays tool tips for the Controller menu items, as well as the
following, if they are enabled: Quality Center Connection, IP Spoofer, Auto
Collate Results, and Auto Load Analysis.
➤ Design view. This view displays a list of all the Vuser groups/scripts in a
scenario, the load generators, and the number of Vusers assigned to each
group/script. This view also displays basic information about the scenario
schedule (manual scenario) or goal (goal-oriented scenario).
53
Chapter 4 • The Controller at a Glance
➤ Run view. Displays information on the running Vusers and Vuser groups, as
well as online monitor graphs.
In addition, if you select View > Show Output, the Controller opens the
Output window which displays error, warning, notification, debug, and
batch messages generated during scenario execution.
Save a scenario
Open Vugen
Open Analysis
54
Chapter 4 • The Controller at a Glance
Initialize Vusers
Run Vusers
55
Chapter 4 • The Controller at a Glance
2 Click a file in the File Name list or type a file name in the File Name box.
3 Click Open. The File Open dialog box closes and the scenario appears in the
Controller.
56
Chapter 4 • The Controller at a Glance
Saving a Scenario
The Save command saves the current scenario.
To save a scenario:
1 Select File > Save, or click the Save button. The Save Scenario dialog box
opens the first time you save a scenario.
2 Type a scenario name in the File Name text box. By default, scenario files
have the extension .lrs.
3 Click Save. The scenario is saved in the location you specified.
Closing a Scenario
Closing a scenario closes all the Controller windows. To close the scenario,
select File > Close. If you made changes to the scenario, a Save Changes
message appears. Click Yes to save the changes you made. All open windows
and icons in the Controller close.
57
Chapter 4 • The Controller at a Glance
Running a Scenario
Once you have designed your scenario, you are ready to run it. You can
control the Vusers and Vuser groups and monitor their performance online
using the Run view of the Controller.
Scenario
Groups
pane
Scenario
Status
window
Online
Monitors
graph
58
Chapter 4 • The Controller at a Glance
During scenario execution, you use the Scenario Groups pane in the Run
view to monitor the actions of all the Vusers and Vuser groups in the
scenario. The Status field of each Vuser group displays the current state of
each Vuser in the group.
You can also manipulate individual Vusers within the Vuser groups you
have defined by selecting a group and clicking the Vusers button. The Vusers
dialog box appears, with a list of the ID, Status, Script, Load Generator, and
Elapsed Time (since the beginning of the scenario) for each of the Vusers in
the group.
In addition, you can view a synopsis of the running scenario in the box in
the upper-right corner of the Run view.
59
Chapter 4 • The Controller at a Glance
You can detach the Scenario Status window from the Run view, thereby
enlarging the Scenario Groups pane.
While the scenario runs, the Vusers and load generators send error,
notification, warning, debug, and batch messages to the Controller. You can
view these messages in the Output window (View > Show Output).
For more information on the Output window, see “Viewing the Output
Window” on page 305.
You use the online monitors and online monitor graphs to monitor Vuser
status, transactions, system resources, database server resources, Web server
resources, Web application server resources, network delay, streaming media
resources, firewall server resources, ERP/CRM server resources, Java
performance, J2EE & .NET diagnostics, application deployment resources,
middleware performance, application component resources, and
infrastructure resources while running a scenario. For more information on
online monitors, see Chapter 30, “Online Monitoring.”
60
Part II
Designing a Scenario
62
5
Creating Manual Scenarios
You can build a manual scenario by creating groups and specifying the
scripts, the load generators, and the number of Vusers included in each
group. You can also build a manual scenario using the Percentage Mode,
which allows you to define the total number of Vusers to be used in the
scenario, and assign load generators and a percentage of the total number of
Vusers to each script.
This chapter describes how to create a manual scenario using the Vuser
Group Mode. For information on creating a manual scenario using the
Percentage Mode, see Chapter 10, “Creating a Manual Scenario Using the
Percentage Mode.”
63
Chapter 5 • Creating Manual Scenarios
If you chose to create a regular manual scenario, each script you selected in
the New Scenario dialog box is assigned to a Vuser group. To each Vuser
group you then assign a number of virtual users. You can instruct all Vusers
in a group to run the same script on the same load generator, or you can
assign different scripts and load generators to the various Vusers in a group.
Once you create your Vuser groups, you select or build a schedule for your
scenario. See Chapter 11, “Scheduling Scenarios” for more information on
creating a scenario schedule.
64
Chapter 5 • Creating Manual Scenarios
➤ Manual Scenario. Select this method if you want to build a manual scenario.
You build a manual scenario by creating groups and specifying the script,
the load generator, and the number of Vusers included in each group.
➤ Use the Percentage Mode to distribute the Vusers among the scripts.
Select this option if you want to build a manual scenario by specifying a
number of Vusers to be distributed among the selected Vuser scripts.
➤ Goal Oriented Scenario. Select this method to have LoadRunner build a
scenario for you. In a goal-oriented scenario, you define the goals you want
your test to achieve, and LoadRunner automatically builds a scenario for
you, based on these goals.
65
Chapter 5 • Creating Manual Scenarios
Choosing a Script
Select a script from the Available Scripts list. Scripts that have been selected
appear in the Scripts in Scenario pane.
➤ Available Scripts. Displays, by default, a list of the fifty most recently used
scripts.
Note: You can change the maximum number of scripts displayed in the
Available Scripts list by modifying the following registry key:
HKEY_CURRENT_USER\Software\Mercury Interactive\RecentScripts\
max_num_of_scripts
66
Chapter 5 • Creating Manual Scenarios
Vuser groups are used to organize the Vusers in a scenario into manageable
groups. You create Vuser groups that contain Vusers with shared or similar
characteristics. For example, you can create a Vuser group for all Vusers that
run the same Vuser script.
67
Chapter 5 • Creating Manual Scenarios
The Scenario Groups pane lists all enabled and disabled Vuser Groups, their
paths, the number of Vusers assigned to each group, and the load
generators.
The Service Level Agreement pane lists all the service level agreements
(SLAs) defined for the scenario. For more information in SLAs, see
Chapter 12, “Defining Service Level Agreements.”
➤ Define the group name, Vuser quantity, load generators, and scripts for the
Vuser group
➤ Add one or more load generators to the Vuser group and configure the load
generators
➤ Add and configure one or more scripts to the Vuser group
➤ Enable or disable a Vuser group for the scenario
➤ Remove a Vuser group from the scenario
➤ Schedule the Vuser group/scenario
➤ Define service level agreements for the scenario
➤ Run the scenario
➤ Stop the scenario
➤ Reset the scenario
➤ Configure scenario result settings
68
Chapter 5 • Creating Manual Scenarios
2 In the Group Name box, enter a name for the Vuser group.
3 From the Vuser Quantity box, select the number of Vusers that you want to
create in the group.
69
Chapter 5 • Creating Manual Scenarios
4 Select a load generator from the Load Generator Name list. To use a load
generator that does not appear, select Add from the Load Generator Name
list. The Add New Load Generator dialog box opens:
Type the name of the load generator in the Name box. In the Platform box,
select the type of platform on which the load generator is running.
By default, LoadRunner stores temporary files on the load generator during
scenario execution, in a temporary directory specified by the load
generator’s TEMP or TMP environment variables. To override this default for
a specific load generator, type a location in the Temporary Directory box.
To allow the load generator to take part in the scenario, check Enable load
generator to take part in the scenario.
Click More to expand the dialog box and show the Add Load Generator
tabs. For information on configuring settings for each load generator, see
“Configuring Additional Load Generator Settings” on page 92.
Click OK to close the Add New Load Generator dialog box.
5 Select a script from the script list.
To use a script that does not appear, click Browse. Browse to select the path
and file name of the new script.
Note: If a script uses Unique file parameterization, running more than one
Vuser group with that script in the same scenario may cause unexpected
scenario results. For more information about Unique file parameterization,
see the HP Virtual User Generator User Guide.
6 Click OK to close the Add Group dialog box. The new group’s properties
appear in the Scenario Groups pane.
70
Chapter 5 • Creating Manual Scenarios
➤ Group Name. Enter the name of the new group you want to add. The name
is limited to a maximum of 55 characters.
➤ Vuser Quantity. Select the number of Vusers you want to add to the group.
➤ Load Generator Name. Select the name of the load generator for the new
group. Choose a previously existing load generator from the list or create a
new load generator by choosing Add. The Add New Load Generator dialog
box opens.
➤ Select Script. Displays the available scripts in the current directory. The list
contains all scripts that you previously added to the scenario.
➤ Script Name. Select the script you want the Vuser group you are creating
to use. The script appears in the Script Name column.
➤ Script Path. Displays the script directory's path.
➤ Browse. Select the path and file name of a script from a different
directory. To use a VB Vuser script, select the .usr file.
Note: When you specify the location of a script, you can specify a
location that is relative to the current scenario directory. For details, see
“Using Relative Paths for Scripts” on page 130.
➤ Record. Opens the Virtual User Generator so that you can begin
recording a script. For more information on recording scripts, see the HP
Virtual User Generator User Guide.
Note: While a scenario is running, you can add Vuser groups to the
scenario and enable them. However, if you add a Vuser group after all the
Vusers in the scenario have started running, the new group will not run
in the scenario.
71
Chapter 5 • Creating Manual Scenarios
72
Chapter 5 • Creating Manual Scenarios
73
Chapter 5 • Creating Manual Scenarios
➤ Group Name. Displays the current group name. To modify the name, type a
new name in the Group Name box.
➤ Load Generator Name. Displays the name of the selected Vuser’s load
generator. To specify a different load generator, select one from the Load
Generator Name list. Select Add from the Load Generator Name list to
specify a new load generator.
➤ Vuser Quantity. Displays the number of Vusers in the group.
➤ Script. Displays details of the selected script.
➤ Name. Displays the name of the script.
➤ Path. Displays the script directory’s path.
➤ Type. Displays the type of script.
➤ View Script. Opens the Virtual User Generator, so that you can edit the
script. For more information on editing scripts, see the HP Virtual User
Generator User Guide.
➤ Run-Time Settings. Opens the Run-Time Settings dialog box, enabling
you to edit the script run-time settings you previously set using VuGen. If
you did not set run-time settings for a script in VuGen, the default
VuGen settings are displayed for all but the Log and Think Time tabs,
which display the default Controller settings. For information on the
run-time settings, see the HP Virtual User Generator User Guide.
➤ Refresh. Click this button and select Script to update the script details in the
scenario, if you make any changes to a script while the Controller is
running. Select Run-Time Settings to restore the initial run-time settings, if
you modify the run-time settings from the Controller.
74
Chapter 5 • Creating Manual Scenarios
Note: To run Visual C++ Vusers on a remote load generator, you must add
the .dll of the Vuser to the files used by script list.
75
Chapter 5 • Creating Manual Scenarios
2 To change the script for an individual Vuser, select a different script in the
Script column. Alternatively, you can click the Details button, and select a
different script from the script list in the Vuser Information dialog box.
3 To change the load generator on which a Vuser runs, select a different load
generator in the Load Generator column. Alternatively, you can click the
Details button, and select a different load generator from the Load
Generator Name list in the Vuser Information dialog box.
To use a load generator that does not appear, in the Load Generator Name
list select <Add..> and add a new load generator using the Add New Load
Generator dialog box.
76
Chapter 5 • Creating Manual Scenarios
Choose the scenario group from the list at the top of the dialog box.
➤ Show the Selected Vusers. Opens a Run-Time Viewer for each selected Vuser.
➤ Hide the Selected Vusers. Closes the Run-Time Viewers that were opened.
➤ Open Vuser Log. Displays a log containing run-time information about the
Vuser that is refreshed, by default, every 1000 milliseconds.
➤ Close Vuser Log. Closes the Vuser log.
➤ ID. Displays the Vuser’s ID number.
➤ Status. Displays the Vuser’s status. The possible statuses are:
Status Description
Ready The Vuser already performed the init section of the script
and is ready to run.
Error A problem occurred with the Vuser. Check the Status field
on the Vuser dialog box or the output window for a
complete explanation of the error.
77
Chapter 5 • Creating Manual Scenarios
Status Description
Exiting The Vuser has finished running or has been stopped, and is
now exiting.
Stopped The Vuser stopped when the Stop command was invoked.
78
Chapter 5 • Creating Manual Scenarios
Note: Pausing a Vuser group will affect its transaction response time.
➤ Show Vuser. Opens the Run-Time Viewer and displays the Vuser executing
its script.
➤ Hide Vuser. Closes the Run-Time Viewer showing the Vuser executing its
assigned script.
➤ Show Vuser Log. Displays a log containing run-time information about the
Vuser that is refreshed, by default, every 1000 milliseconds.
➤ Hide Vuser Log. Closes the Vuser script log.
79
Chapter 5 • Creating Manual Scenarios
➤ Filter Vusers. Filters the Vusers displayed in the Vusers dialog box by status.
You can also select the filter option you want to use from the filter selector
at the top of the Vusers dialog box.
➤ Sort Vusers. Sorts the Vusers in the group by ID, Status, Script, Load
Generator, or Elapsed Time.
➤ Group Name. Displays the name of the group to which the selected Vuser
belongs.
➤ Vuser Name. Displays the name of the selected Vuser.
➤ Load Generator Name. Displays the name of the selected Vuser’s load
generator. To specify a different load generator, select one from the Load
Generator Name list. Select Add to specify a new load generator.
➤ Select Script. Displays the available scripts in the current directory.
➤ Script Name. Select the script you want the Vuser you selected to use. The
script appears in the Script Name column.
➤ Script Path. Displays the script directory’s path.
➤ Browse. Select a script from a different directory. To select a VB Vuser
script, browse to locate the .usr file.
➤ Record. Opens VuGen so that you can begin recording a script. For more
information on recording scripts, see the HP Virtual User Generator User
Guide.
➤ Run-Time Settings. Opens the Run-Time Settings dialog box, enabling
you to edit the script run-time settings you previously set using VuGen. If
you did not set run-time settings for a script in VuGen, the default
VuGen settings are displayed for all but the Log and Think Time tabs,
which display the default Controller settings. For information on the
run-time settings, see the HP Virtual User Generator User Guide.
➤ Parameter List. Opens the Parameter List in VuGen. For information
about the Parameter List, see the HP Virtual User Generator User Guide.
80
Chapter 5 • Creating Manual Scenarios
Note: You can activate additional Vusers while the scenario is running,
using the Run/Stop Vusers dialog box. For more information, see “Manually
Adding Vusers to a Running Scenario” on page 294.
2 From the Group Name box, select the name of the Vuser group.
3 From the Quantity to add box, select the number of Vusers that you want to
add to the group.
81
Chapter 5 • Creating Manual Scenarios
➤ Group Name. Enter the name of the group to which you want to add a
Vuser.
➤ Load Generator Name. Select the name of the load generator for the new
Vuser. Choose a previously existing load generator from the list or create a
new load generator by choosing Add. The Add New Load Generator dialog
box opens.
➤ Quantity to add. Select the number of Vusers you want to add to the group.
➤ Select Script. Displays the available scripts in the current directory.
➤ Script Name. Select the script you want the Vuser you are creating to use.
The script appears in the Script Name column.
➤ Script Path. Displays the script directory’s path.
➤ Browse. Select a script from a different directory. To use a VB Vuser script,
select the .usr file.
Note: When you specify the location of a script, you can specify a
location that is relative to the current scenario directory. For details, see
“Using Relative Paths for Scripts” on page 130.
➤ Record. Opens VuGen so that you can begin recording a script. For more
information on recording scripts, see the HP Virtual User Generator User
Guide.
82
Chapter 5 • Creating Manual Scenarios
The Run-Time Settings dialog box displays the settings you previously set
using VuGen. If you did not set run-time settings for a script in VuGen, the
default VuGen settings are displayed for all but the Log and Think Time
tabs, which display the default Controller settings.
Note: Several protocols, such as Web and Java, have specific settings.
For information on each specific run-time setting, see the HP Virtual User
Generator User Guide.
83
Chapter 5 • Creating Manual Scenarios
Modifying the run-time settings for the new Vuser will modify the run-time
settings for all the Vusers in the group. If a group contains more than one
Vuser type, then you can modify the shared run-time settings, as described
in “Modifying Run-Time Settings for Multiple Scripts” below.
Note: If you modify the run-time settings from the Controller, LoadRunner
runs the script using the modified settings. To restore the initial settings,
click the Refresh button and select Run-Time Settings.
Note: If one of the selected scripts does not support shared run-time
settings, then you will only have the option of modifying each script’s
individual run-time settings. Shared RTS mode will be disabled for GUI or
Astra LoadTest Vusers.
84
Chapter 5 • Creating Manual Scenarios
➤ Shared RTS. Opens one window containing all of the run-time settings in
blank mode. In this mode, you set only the options that you would like to
modify for all selected scripts. All other run-time settings remain
unchanged.
➤ Individual RTS. Opens a separate window for each selected script. In this
mode, you modify each script’s settings individually.
All Run-Time Setting buttons will be disabled, for example the Change and
Advanced buttons in the Browser Emulation node.
85
Chapter 5 • Creating Manual Scenarios
86
6
Defining Load Generators
This chapter describes how to add a load generator to your scenario and
how to set properties specific to each load generator.
87
Chapter 6 • Defining Load Generators
You can also indicate which load generators will run Vusers in the scenario.
For example, if a load generator is unavailable for a particular scenario run,
you can exclude it temporarily instead of removing it entirely from your list
of load generators.
You select which load generators will take part in the scenario by using the
Enable and Disable commands. Disabling a load generator temporarily
removes it from the list. Enabling a load generator reinstates it. Disabling
load generators is particularly useful if you want to isolate a specific
machine to test its performance.
88
Chapter 6 • Defining Load Generators
2 Click Add in the Load Generators dialog box. The Add New Load Generator
dialog box opens.
➤ Name. Type the name of the load generator you want to add in the Name
box.
➤ Platform. Select the type of platform on which the load generator is
running.
89
Chapter 6 • Defining Load Generators
90
Chapter 6 • Defining Load Generators
2 Click Connect to change the Status of the load generator from Down to
Ready. When the load generator is connected, the button automatically
changes to Disconnect. To change the Status of the load generator from
Ready to Down, click Disconnect.
3 To disable a load generator, select the load generator and click Disable. The
load generator name changes from blue to gray, and the load generator is
disabled. To enable a load generator, select the load generator and click
Enable. The load generator name changes from gray to blue, and the load
generator is enabled.
4 To view details of a load generator, select the load generator and click
Details. The Load Generator Information dialog box opens with information
about the load generator you selected.
5 To remove a load generator, select it from the list and click Delete.
Status Description
91
Chapter 6 • Defining Load Generators
➤ Connect. Instructs the Controller to connect the load generator for the
scenario. When the load generator is connected, the button automatically
changes to Disconnect.
➤ Add. Opens the Add Load Generator dialog box.
➤ Delete. Deletes the load generator. The load generator can be deleted only
when it is disconnected.
➤ Reset. Attempts to reset a failed connection.
➤ Details. Opens the Load Generator Information dialog box.
➤ Disable/Enable. Instructs the Controller to disable or enable the load
generator. When a load generator is disabled, its Name, Status, Platform, and
Details appear in gray.
Note: The Controller monitors a Windows load generator’s CPU usage and
automatically stops loading Vusers on a load generator when it becomes
overloaded. You can monitor the status of a machine’s CPU usage using the
icons in the Load Generator dialog box. When the CPU usage of a load
generator becomes problematic, the icon to the left of the load generator
name contains a yellow bar. When the machine becomes overloaded, the
icon contains a red bar.
You can configure global settings for all load generators participating in the
scenario, using the Options dialog box. For more information, see
Chapter 15, “Configuring a Scenario.”
92
Chapter 6 • Defining Load Generators
➤ Name. Type the name of the load generator you want to add in the Name
box.
➤ Platform. Select the type of platform on which the load generator is
running.
➤ Temporary directory. Type a location, on the load generator, where the
Controller can store temporary files.
➤ Enable load generator to take part in the scenario. Select to include the load
generator in the scenario.
93
Chapter 6 • Defining Load Generators
Status Tab
In the Load Generator Information dialog box, select the Status tab to
display details of the Load Generator Status.
94
Chapter 6 • Defining Load Generators
95
Chapter 6 • Defining Load Generators
Note:
➤ If the load generator is localhost, then LoadRunner stores the scripts and
results on a shared network drive, and the options for setting the
location are all disabled.
➤ If you are monitoring over the firewall, the Run-Time File Storage settings
are not relevant.
For information about setting the network location for the results, see
Chapter 16, “Preparing to Run a Scenario.”
96
Chapter 6 • Defining Load Generators
➤ Login as.
➤ Name. If the load generator is UNIX-based, set the login information for
the load generator. By default, LoadRunner uses your Windows user
name for the UNIX login. In other words, if your Windows login is
lrunner, the Controller will log on to the load generator as lrunner. To log
on to a UNIX-based load generator using a different login name, select
the Name check box and specify the desired UNIX login name. Using
this option, you can log on to the Windows Controller as bill and
connect to the UNIX load generator as mike. However, you should make
sure that mike allows bill to log on using his name. This can be done by
adding the line “+ bill” at the beginning of mike's .rhosts file.
➤ Use lower case for login names. Instructs LoadRunner to use lower case
names during login to avoid case-sensitive issues with the UNIX
operation system.
➤ Local User (Expert mode only). For information on this setting available
in Expert mode, see Appendix C, “Working in Expert Mode.”
➤ Shell Settings. Specify the UNIX shell settings for the remote UNIX load
generator. By default, the HP LoadRunner Controller connects remotely to
the UNIX load generator using rsh (remote shell). You can also connect to
the UNIX load generator without using RSH.
➤ Don’t use RSH. Select this check box to connect to the remote load
generator without using RSH. In this case, you need to activate the agent
daemon on the load generator manually. See “Connecting to a UNIX
Load Generator Without Using RSH” on page 98.
To connect using RSH, clear this check box, and ensure that:
➤ RSH is enabled on the load generator.
➤ the agent daemon is not already running on the load generator.
To stop the agent daemon, run the following command from the
<LR_root>/bin directory: m_daemon_setup -remove
➤ Default shell. Select the default shell on the UNIX load generator: csh (C
Shell—the default), bsh (Bourne Shell), or ksh (Korn Shell).
To work with the load generator, your UNIX startup configuration file
needs to include specific environment variables. See “Setting
Environment Variables” on page 99.
97
Chapter 6 • Defining Load Generators
Note: If you are monitoring or running Vusers over the firewall, the UNIX
Environment settings are not relevant.
m_daemon_setup -install
98
Chapter 6 • Defining Load Generators
2 In the Controller, in the Generators > Load Generator Information > UNIX
Environment tab, select the Don’t use RSH option. Connect as usual.
3 To stop the agent daemon, run the following command from the
<LR_root>/bin directory:
m_daemon_setup -remove
➤ For C shell users, the startup configuration file is the .cshrc file
➤ For Bourne and Korn shell users, the startup configuration file is the
.profile file.
For example:
source /opt/HP/HP_LoadGenerator/env.csh
99
Chapter 6 • Defining Load Generators
In the Load Generator Information dialog box, select the Run-Time Quota
tab to specify the maximum number of Vuser types that the load generator
will initialize or stop simultaneously.
➤ Vuser Quota
➤ Number of Vusers that may be initialized at one time - <current load
generator>. Select the maximum number of Vusers that the current load
generator can initialize simultaneously.
➤ Limit the number of users that may be stopped at one time to. Select the
maximum number of Vusers that the current load generator can stop
simultaneously.
100
Chapter 6 • Defining Load Generators
➤ Defaults. Sets the number of Vusers that may be initialized or stopped at one
time to 50.
You can set run-time quotas for an entire scenario using the Run-Time
Settings tab in the Options dialog box. For information on setting quotas
globally for an entire scenario, see Chapter 15, “Configuring a Scenario.”
In the Load Generator Information dialog box, select the Vuser Limits tab to
modify the maximum number of GUI, RTE, and other Vusers that a load
generator can run.
➤ Available Types. Select the types of Vusers you want the load generator to
run.
101
Chapter 6 • Defining Load Generators
➤ Maximum Active. Select the maximum number of Vusers of each type for
the load generator to run.
➤ Defaults. Sets GUI-WinRunner to 1, RTE to 1000, and Other Vusers to 5000.
Note: The maximum number of active Vusers that you specify must not
exceed the number of Vusers that you are licensed to run. To check your
Vuser licensing limitations, in the HP LoadRunner launcher window (Start >
Programs > LoadRunner > LoadRunner), select Configuration > LoadRunner
License.
Security Tab
In the Load Generator Information dialog box, select the Security tab to
enable monitoring or running Vusers over a firewall.
102
Chapter 6 • Defining Load Generators
Note: If you select the Enable firewall option, the Temporary directory
option for storing temporary files is disabled. Any location in the Temporary
directory box is erased.
Note: If the load generator is connected, you cannot change values in the
Security tab. To disconnect a load generator, select the load generator in the
Load Generators dialog box and click Disconnect. The load generator status
changes to Down, and you can change the settings.
103
Chapter 6 • Defining Load Generators
Note: This tab can only be viewed when the load generator is connected.
104
7
Configuring Terminal Services Settings
105
Chapter 7 • Configuring Terminal Services Settings
Important: Only users with administrator privileges can connect from the
Controller to a local load generator via a terminal services session.
Important: This feature is not supported if the Controller and the load
generators connect over a firewall.
106
Chapter 7 • Configuring Terminal Services Settings
107
Chapter 7 • Configuring Terminal Services Settings
Note: You must open a Terminal Client session for each terminal that you
want to run Vusers on during the scenario.
108
Chapter 7 • Configuring Terminal Services Settings
Important: This feature is not supported if the load generator is located over
a firewall. To configure terminal services on a load generator over a firewall,
see “Configuring Terminal Sessions Over A Firewall” on page 111.
109
Chapter 7 • Configuring Terminal Services Settings
Note: If this feature is not enabled, you need to insert each of the 3
terminals as separate load generators: my_machine, my_machine:1, and
my_machine:2.
3 Enter information about the terminals and the Vusers that you want to use:
a Number of terminals. Enter the number of terminals you want to use in
your scenario. You must open a terminal client session for each terminal
on which you want to run Vusers during the scenario.
b Maximum number of Vusers per terminal. Enter the maximum number
of Vusers that you want to run in a terminal session. The maximum
number of Vusers depends on the Vuser type used in the script. For GUI
Vusers, the maximum is one Vuser for each terminal session.
Alternatively, clicking Defaults sets the number of terminals to 2, and the
maximum number of Vusers per terminal to 50.
4 Select one of the following connection options:
➤ Connect to existing Terminal Services Sessions. Enables connection to
existing (open) terminal sessions.
Note: If you select this option, you must open a terminal client session
manually for each terminal that you want to run Vusers on during the
scenario.
110
Chapter 7 • Configuring Terminal Services Settings
111
Chapter 7 • Configuring Terminal Services Settings
c Click OK.
4 Create one or more terminal sessions on the load generator console
machine.
5 For each terminal session, run the Agent Configuration as you did for the
console above. For each session, specify a different Local Machine Key name
in the Firewall Agent > Settings box, for example, machine_ofw_1,
machine_ofw_2, ..., machine_ofw_n.
Note: If you stop the agent on a terminal session, you must reconfigure the
settings for that particular terminal session before restarting the agent.
6 When selecting the load generators for the load test in the Controller, select
the local machine key for each individual virtual load generator used.
112
8
Configuring WAN Emulation Settings
This chapter describes how to run a scenario using WAN Emulation and how
to configure the WAN Emulation settings.
113
Chapter 8 • Configuring WAN Emulation Settings
114
Chapter 8 • Configuring WAN Emulation Settings
115
Chapter 8 • Configuring WAN Emulation Settings
3 In the Load Generator Information dialog box, select the WAN Emulation
tab to configure WAN Emulation settings for your scenario.
Note:
116
Chapter 8 • Configuring WAN Emulation Settings
6 Click WAN Emulation Settings to open the WAN Emulation settings dialog
box.
➤ For information on some of the typical network emulation settings, see
“Typical Network Emulation Settings” below.
➤ For detailed information on configuring the WAN Emulation settings via
the 3rd party software components, see the relevant 3rd party software
documentation.
Latency
The Latency value you define represents the time, in milliseconds, that it
takes an IP packet to cross the WAN. This is usually affected by geographical
distance, the available bandwidth, the network load on the route between
the two ends, and whether this is a terrestrial link or not.
Packet Loss
The Packet Loss value you define represents the chance of losing IP packets
while data travels through a WAN. Packets can get lost due to link faults or
due to extreme network load.
Bandwidth
The Bandwidth value you define represents your network’s capacity to
transfer data over the WAN.
117
Chapter 8 • Configuring WAN Emulation Settings
Emulated Locations
To receive more meaningful results, you can configure your WAN Emulation
to emulate conditions unique to specific geographic locations. For example,
London and New York.
To view the results for location individually in Analysis, you can group the
results of the scenario by the emulated location name. In other words, for
any graph in Analysis, all the results of the ’New York based’ load generators
can be grouped together, as can all the results of the ’London based’ load
generators, and so on.
For example, in the image below, you can group metrics according to load
generators that were defined with the LA-NY location, as well as load
generators where no WAN Emulation was defined.
118
Chapter 8 • Configuring WAN Emulation Settings
Note: In cases where you have to configure more than one load generator
per location, make sure that each load generator designated for a specific
location is configured with the same settings.
If a load generator is connected over a firewall, you must add the monitors
manually using the Monitor Over Firewall component. For more
information, see Chapter 23, “Configuring Monitors Over a Firewall.”
119
Chapter 8 • Configuring WAN Emulation Settings
Note: The number of machines that may excluded at any one time,
including those that are excluded by default, might be limited by the WAN
emulation software.
120
Chapter 8 • Configuring WAN Emulation Settings
➤ Add: Opens the Add Host dialog box. Enter the name or IP address of the
machine you want to exclude from WAN Emulation. This button is disabled
during run time.
➤ Edit: Select the host name or IP address that you want to modify in the
Exclude Hosts list, and make changes to the host in the Edit Hosts dialog
box.
➤ Remove: Removes a host name or IP address from the Exclude Hosts list. We
recommend that you type machine IPs only.
121
Chapter 8 • Configuring WAN Emulation Settings
122
Chapter 8 • Configuring WAN Emulation Settings
➤ Once the scenario has started, check that WAN Emulation is running in one
of the following ways:
➤ Check for a confirmation message in the notification messages of the
Output window. The message should contain the following text:
WAN Emulation started on host <host name> with the following configuration
<config>
➤ Ping the load generator from your machine and check that the latency
and packet loss behavior is as defined. Your machine must not be
excluded from WAN Emulation to do this.
➤ If you kill the LR_Bridge.exe or magentproc.exe processes on a load
generator to stop a load test, manually stop the WAN Emulation as well.
123
Chapter 8 • Configuring WAN Emulation Settings
124
9
Configuring Scripts
Once you select a script for a Vuser or Vuser group, you can edit the script,
or view the details of the script you selected, from the Vusers or Group
Information dialog boxes.
125
Chapter 9 • Configuring Scripts
3 Click Run-Time Settings to set the script’s run-time settings (optional). For
details, see “Configuring Vuser Run-Time Settings” on page 83.
Note: If you modify the run-time settings from the Controller, LoadRunner
runs the script using the modified settings. To restore the initial settings,
click the Refresh button and select Run-Time Settings.
4 To edit the script, click View Script. The script generation tool, VuGen,
opens. For more information on editing scripts, see the HP Virtual User
Generator User Guide.
Note: If you use VuGen to make changes to a script while the Controller is
running, click the Refresh button and select Script to update the script
details in the scenario.
126
Chapter 9 • Configuring Scripts
5 Click More to expand the Group Information dialog box and view
additional script information.
6 In the Command Line box, type any command line options to use when
running the script. For example: -x value -y value
For information about passing command line argument values to a script,
see the HP Virtual User Generator User Guide.
7 To see the rendezvous points included in the selected script, click the
Rendezvous tab.
127
Chapter 9 • Configuring Scripts
8 To see the list of Vusers associated with the selected script, click the Vusers
tab.
If you have not yet created Vusers, the box will be empty.
9 To see the list of files used by the script, click the Files tab.
By default, this list shows all files in the script’s directory (only after your
script has been added to the script list). These files include the configuration
settings file, the init, run, and end portions of the script, the
parameterization definitions file, and the .usr file. To add a file to the list,
click Add and add the file name. You can delete the files that you add, but
not the other files listed.
Note: To run Visual C++ Vusers on a remote load generator, you must add
the .dll of the Vuser to the Files used by script list.
128
Chapter 9 • Configuring Scripts
2 To view details of a script, click Details. The script’s name and path are
displayed in the Vuser Information dialog box. To select a different script,
click the Browse button and select the path and file name of the new script.
To select a VB Vuser script, browse to locate the .usr file.
Note: When you specify the location of a script, you can specify a location
that is relative to the current scenario directory. For details, see “Using
Relative Paths for Scripts” on page 130.
129
Chapter 9 • Configuring Scripts
3 To edit a script, right-click the script in the Vusers dialog box, and select
View Script. The script generation tool, VuGen, opens. For more
information on editing scripts, see the HP Virtual User Generator User Guide.
4 To modify the run-time settings you specified while recording a script using
VuGen, right-click the script in the Vusers dialog box, and select Run-Time
Settings.
Note: Modifying the run-time settings for one Vuser modifies the run-time
settings for all the Vusers in the group that are using the same script.
If you highlight more than one script, you can modify the run-time settings
in shared mode, as described in “Modifying Run-Time Settings for Multiple
Scripts” on page 84.
For details about each run-time setting, see the HP Virtual User Generator User
Guide.
You can specify a path relative to the current scenario directory by typing
either of the following notations at the start of the script path:
Notation Description
130
Chapter 9 • Configuring Scripts
.\scripts\user1.usr
%\scripts\user1
Note: When specifying a relative path, you can include standard DOS
notation (.\ and ..\) inside the path, as shown in the following example:
M:\LR\my_tests\..\..\test.usr.
You can instruct the Controller to store the script on a shared network drive
(see Chapter 15, “Configuring a Scenario”). If you configure the Controller
to save the script to a network drive, you must ensure that the Vuser load
generator recognizes the drive. The Script window contains a list of all the
Vuser scripts and their paths. A script’s path is based on the Controller load
generator’s mapping of that location. If a Vuser load generator maps to the
script’s path differently, path translation is required. Path translation
converts the Controller load generator’s mapping to the Vuser load
generator’s mapping. For more information see Appendix B, “Performing
Path Translation.”
131
Chapter 9 • Configuring Scripts
132
10
Creating a Manual Scenario Using the
Percentage Mode
You build a manual scenario in the Percentage mode by defining the total
number of Vusers to be used in the scenario, and assigning load generators
and a percentage of the total number of Vusers to each script. This chapter
describes how to create a manual scenario in the Percentage mode.
133
Chapter 10 • Creating a Manual Scenario Using the Percentage Mode
When you create a new scenario, you can access the Percentage Mode
directly by selecting Use the Percentage Mode to distribute the Vusers
among the scripts in the New Scenario dialog box. You can also convert a
scenario created in the Vuser Group Mode to the Percentage Mode by
choosing Scenario > Convert Scenario to the Percentage Mode.
➤ If you defined multiple scripts for a Vuser group, the number of Vuser
scripts created in the Percentage Mode will equal the number of scripts
defined for the group.
➤ <All Load Generators> will be assigned to all Vuser scripts created in the
Percentage Mode. If you defined multiple load generators for a Vuser
group, the Vusers you assign to the scripts in the Percentage Mode will be
distributed evenly among the load generators you previously assigned to
the group.
➤ All Vuser group schedule settings will be lost. All profiles will contain
scenario schedule settings only.
134
Chapter 10 • Creating a Manual Scenario Using the Percentage Mode
The Scenario Scripts pane lists all enabled and disabled Vuser scripts, their
paths, the load generators, and the percentage of the total number of Vusers
assigned to each script.
135
Chapter 10 • Creating a Manual Scenario Using the Percentage Mode
The Service Level Agreement pane lists all the service level agreements
(SLAs) defined for the scenario. For more information on SLAs, see
Chapter 12, “Defining Service Level Agreements.”
Note: The Vuser Group settings are not available for the Percentage mode.
136
Chapter 10 • Creating a Manual Scenario Using the Percentage Mode
The % column indicates the percentage of the total number of Vusers that is
automatically distributed to each Vuser script. During scenario execution,
each script runs the percentage of Vusers assigned to it. The Load Generators
column automatically contains <All Load Generators> for each Vuser script.
Note: If you defined multiple load generators for a Vuser group, the Vusers
you assign to the scripts in the Percentage Mode will be distributed evenly
among the load generators you previously assigned to the group.
137
Chapter 10 • Creating a Manual Scenario Using the Percentage Mode
138
Chapter 10 • Creating a Manual Scenario Using the Percentage Mode
7 Click More to expand the dialog box and show the Add Load Generator
tabs. For information on configuring settings for each load generator, see
“Configuring Additional Load Generator Settings” on page 92.
8 Click OK to close the Add Load Generator dialog box. LoadRunner adds the
new load generator to the Load Generator Name list. To include the new
load generator in your scenario, select it from the Load Generator Name list,
and click OK.
Repeat the above procedure for each load generator you want to add to your
scenario.
Note: The Controller monitors a Windows load generator’s CPU usage and
automatically stops loading Vusers on the overloaded load generator, and
distributes them among other load generators taking part in the scenario.
For more information, see “Load Balancing” on page 209.
You can monitor the status of a machine’s CPU usage using the icons in the
Load Generators dialog box. When the CPU usage of a load generator
becomes problematic, the icon to the left of the load generator name
contains a yellow bar. When the machine becomes overloaded, the icon
contains a red bar.
139
Chapter 10 • Creating a Manual Scenario Using the Percentage Mode
Configuring Scripts
You can add a script to the Scenario Scripts list using the Add Script dialog
box. Once you have added the script to the list, you can view the details of
the script you selected, edit the script, enable/disable it, or change its run-
time settings.
To add a script:
1 On the Scenario Scripts pane toolbar, click the Add Scripts button, or right-
click within a column and select Add Script. The Add Script dialog box
opens.
Note: When you specify the location of a script, you can specify a location
that is relative to the current scenario directory. For details, see “Using
Relative Paths for Scripts” on page 130.
3 Click Open to select the files. The Open Test dialog box closes, and the new
script name appears in the Add Script dialog box.
140
Chapter 10 • Creating a Manual Scenario Using the Percentage Mode
4 Click OK to close the Add Script dialog box and enter the new script
information in the Scenario Scripts window.
Note: While a scenario is running, you can add Vuser scripts to the scenario
and enable them. However, if you add a script after all the Vusers in the
scenario have been ramped up, the new script will not run in the scenario.
141
Chapter 10 • Creating a Manual Scenario Using the Percentage Mode
Note: If you modify the run-time settings from the Controller, LoadRunner
runs the script using the modified settings. To restore the initial settings,
click Refresh and select Run-Time Settings.
142
Chapter 10 • Creating a Manual Scenario Using the Percentage Mode
4 To edit the script, click View Script. The script generation tool, VuGen,
opens. For more information on editing scripts, see the HP Virtual User
Generator User Guide.
Note: If you use VuGen to make changes to a script while the Controller is
running, click Refresh and select Script to update the script details in the
scenario.
5 Click More to expand the Script Information dialog box and view additional
script information.
6 In the Command Line box, type any command line options to use when
running the script. For example, -x value -y value
For information about passing command line argument values to a script,
see the HP Virtual User Generator User Guide.
143
Chapter 10 • Creating a Manual Scenario Using the Percentage Mode
7 To see the rendezvous points included in the selected script, click the
Rendezvous tab.
8 To see the list of Vusers associated with the selected script, click the Vusers
tab.
9 To see the list of files used by the script, click the Files tab. By default this list
shows all files in the script’s directory (only after your script has been added
to the script list). These files include the configuration settings file, the init,
run, and end portions of the script, the parameterization definitions file,
and the .usr file. To add a file to the list, click Add and add the file name.
Note: You can delete the files that you add, but not the other files listed.
To delete a script:
1 Select the script.
2 On the Scenario Scripts pane toolbar, click the Remove Script button, or
right-click the script and select Remove Script.
To disable a script:
Clear the box to the left of the Vuser script name. The color of the script
entry changes to gray, indicating that the script will not take part in the
scenario. To enable the Vuser script, select the check box again.
144
Chapter 10 • Creating a Manual Scenario Using the Percentage Mode
145
Chapter 10 • Creating a Manual Scenario Using the Percentage Mode
Note: You can also convert a scenario in the Vuser Group Mode to the
Percentage Mode. For more information, see “About Creating a Manual
Scenario Using the Percentage Mode” on page 134.
LoadRunner displays a warning that you are about to convert your Manual
scenario from Vuser Group Mode to Percentage Mode, or vice versa. If you
want to convert your scenario, click Yes. If you want to remain in the
current mode, click No.
➤ Always show this dialog box before converting the scenario. Clear this box
if you do not want to be prompted with the current warning. To restore the
current warning, select Scenario > Show Convert Scenario Warning.
When converting your scenario from Percentage Mode to Vuser Group
Mode, note the following:
146
11
Scheduling Scenarios
147
Chapter 11 • Scheduling Scenarios
After you create a scenario, you schedule the scenario to start running at a
specified time. You can limit the execution duration of the scenario or of a
Vuser group within the scenario.
You can also stipulate how many Vusers to start and stop running within a
certain time frame. You can specify whether LoadRunner should start or
stop running all Vusers in a scenario simultaneously, or only a certain
number of Vusers within a specified amount of time.
148
Chapter 11 • Scheduling Scenarios
Scheduler at a Glance
You configure a schedule for a manual scenario in the Design tab, in the
Scenario Schedule pane.
When creating group schedules, you can copy a Vuser group’s schedule
settings to other Vuser groups.
149
Chapter 11 • Scheduling Scenarios
Scheduling By Scenario
When you run a scenario, LoadRunner runs all the Vuser groups enabled in
the scenario. The schedule defined for running the scenario is applied to all
the Vuser groups concurrently, and LoadRunner applies each action
proportionately to all the Vusers groups.
For example, take a scenario that includes 3 enabled Vuser groups, where
Group1 contains 10 Vusers, Group2 contains 20 Vusers, and Group3
contains 30 Vusers, giving a total of 60 Vusers. When scheduling by
scenario, if the schedule instructs LoadRunner to load 30 Vusers when it
starts running, LoadRunner loads a proportional number of Vusers from
each group—that is, 5 from Group1, 10 from Group2, and 15 from Group3,
totalling 30 Vusers.
The same principle applies when viewing the scenario in Percentage mode.
150
Chapter 11 • Scheduling Scenarios
151
Chapter 11 • Scheduling Scenarios
152
Chapter 11 • Scheduling Scenarios
Start Group
The Start Group action defines when to start running a Vuser group. This
action is available for group schedules only.
Note: By default, the Start Group action appears as the first action in the
Actions grid when you select Schedule by: Group. It is always followed by
the Initialize action. It cannot be deleted.
Options Description
Start immediately after the scenario LoadRunner starts running the selected
begins Vuser group as soon as the scenario
(Default) starts running. (See “Scheduling a
Scenario Start Time” on page 162.)
Start <00:00:00> (HH:MM:SS) after the After the scenario starts running,
scenario begins LoadRunner waits the specified time
(in hours, minutes, and seconds),
before it starts running the selected
Vuser group.
Start when group <group name> LoadRunner starts running the selected
finishes Vuser group immediately after the
Vuser group specified in this option
has finished running.
153
Chapter 11 • Scheduling Scenarios
Initialize
The Initialize action instructs LoadRunner to prepare the Vusers so that they
are in the Ready state and can run.
Note: By default, the Initialize action appears in the Actions grid for all
schedule types. It cannot be deleted.
Options Description
Initialize all Vusers simultaneously LoadRunner initializes all the Vusers in the
scenario or selected Vuser group together,
before running them.
Initialize each Vuser just before it LoadRunner initializes each Vuser in the
runs scenario or selected Vuser group just before
(Default) it starts running.
Note: This option is not available for
Group schedules when the Wait for all
groups to initialize option is selected. See
“Initializing All Vuser Groups Before a
Run” on page 161.
If you select this option, if any of the Vuser groups in the scenario are set to
Initialize each Vuser just before it runs, the Scheduler automatically changes
this setting to Initialize all Vusers simultaneously.
For more information, see “Initializing All Vuser Groups Before a Run” on
page 161.
154
Chapter 11 • Scheduling Scenarios
Start Vusers
The Start Vusers action instructs LoadRunner to start running Vusers.
Options Description
Note:
➤ LoadRunner starts running Vusers only when they have reached the
Ready state.
➤ In a Basic schedule, LoadRunner always runs all the Vusers, whether
simultaneously or gradually. In a Real-world schedule, you can select
how many Vusers to run.
➤ While a scenario is running, you can add Vuser groups/scripts to a
scenario and enable them. When starting the Vusers gradually, if you add
a Vuser group after all the Vusers in the scenario have started running,
the new group starts running immediately.
155
Chapter 11 • Scheduling Scenarios
Duration
The Duration action instructs LoadRunner to continue running the scenario
in the current state, for the specified amount of time.
Options Description
Run until completion The scenario runs until all the Vusers
have finished running.
Note: In a Real-world schedule, this
option is available after the first time
the Vusers start running only.
Run for XX days and <00:00:00> The scenario runs in its current state
(HH:MM:SS) for the specified amount of time (in
days, hours, minutes, and seconds)
before continuing with the next
action.
The default Duration period is
5 minutes.
156
Chapter 11 • Scheduling Scenarios
Stop Vusers
The Stop Vusers action instructs LoadRunner to stop the running Vusers.
Options Description
157
Chapter 11 • Scheduling Scenarios
To create a schedule:
1 Define the schedule’s properties.
a In the Schedule Definition area, click the New Schedule button. The
Schedule Name box displays a new schedule, Schedule <x>.
(Optional) You can rename the schedule by typing a different name, and
clicking the Save New Name button.
158
Chapter 11 • Scheduling Scenarios
Note: When switching from one run mode to another, all existing actions
for the schedule are replaced by the default set of actions for the new run
mode.
Run Mode
Schedule by
Real-world Schedule Basic Schedule
Scenario All enabled Vuser groups run All enabled Vuser groups run
together on one schedule. The together on one schedule, each
scenario runs according to a according to its own run-time
user-defined group of actions settings. You can schedule the
that emulate a true-to-life Vusers to start and stop running
schedule of events. You can simultaneously or gradually,
schedule how many Vusers to and you can specify how long
start running at a time, how they should run before
long to run the Vusers, and stopping.
how many Vusers to stop
running at a time.
Group Each enabled Vuser group runs Each enabled Vuser group runs
(Not according to its own defined according to its own schedule,
applicable schedule that emulates a each according to its own run-
when true-to-life schedule of events time settings. For each Vuser
viewing for that Vuser group. You can group, you can schedule how
scenario in schedule when to start many Vusers in the group to
Percentage running the Vuser group, how start and stop running
mode) many Vusers to run at a time, simultaneously or gradually,
how long to run the Vusers, and you can specify how long
and how many Vusers to stop they should run before
running at a time. stopping..
159
Chapter 11 • Scheduling Scenarios
Note: Schedule by Group only. You can copy schedule settings from one
Vuser group to another. For more information, see “Copying Group
Schedule Settings” on page 163.
a Start Group (Schedule by Group only). Set the group’s schedule to start:
➤ Immediately upon starting the scenario run
➤ After the specified amount of time has elapsed
➤ After a specified group has finished running
b Initialize. Set the Vusers that will run in the scenario to initialize before
they run as follows:
➤ Initialize all the Vusers at the same time
➤ Initialize a specified number of Vusers at given time intervals
➤ Initialize each Vuser just before it starts running
Note: Schedule by Group only. You can set all the Vusers in all the
enabled Vuser groups to initialize before any of them start running. For
more information, see “Initializing All Vuser Groups Before a Run” on
page 161.
160
Chapter 11 • Scheduling Scenarios
If the Initialize action of any of the Vuser groups in the scenario is set to
Initialize each Vuser just before it runs, a message prompts you to change
the Initialize action to Initialize all Vusers simultaneously. Click Yes to
change the Initialize action setting.
161
Chapter 11 • Scheduling Scenarios
Note: When the scenario starts running, the selected scenario schedule
starts running.
2 Specify when, after the Start Scenario command has been issued, to start
running the scenario. Select one of the following options:
➤ Without delay. Starts running the scenario immediately. This option is
selected by default.
➤ With a delay of <00:00:00> (HH:MM:SS). Starts running the scenario after
the specified time interval (in hours, minutes, and seconds) has passed.
➤ At <00:00:00> (HH:MM:SS) on <date>. Starts running the scenario on the
specified date, at the specified time.
3 Click OK to save your settings.
162
Chapter 11 • Scheduling Scenarios
In the Schedule Name box, select the schedule whose properties you want
to modify, and follow the instructions described in “Creating Scenario
Schedules” on page 158.
When you switch from one schedule run mode to another (basic to
real-world or vice versa), all existing actions for the schedule are replaced by
the default set of actions for the run-mode.
Deleting Schedules
To delete a schedule, in the Schedule Name box, select the schedule that
you want to delete, and click the Delete Schedule button. The schedule is
removed from the list.
163
Chapter 11 • Scheduling Scenarios
Note: You can also modify schedule actions in the Interactive Schedule
graph. For more information, see “Managing Schedules From the Interactive
Schedule Graph” on page 175.
164
Chapter 11 • Scheduling Scenarios
Note: You can also add schedule actions in the Interactive Schedule graph.
For more information, see “Managing Schedules From the Interactive
Schedule Graph” on page 175.
Note: A new action is always added after the action selected in the
Actions grid.
165
Chapter 11 • Scheduling Scenarios
Note: You can add a Start Vusers, Stop Vusers, or Duration action. For details
about each action type, see “Understanding Schedule Actions” on page 152.
166
Chapter 11 • Scheduling Scenarios
Note: You can also edit schedule actions in the Interactive Schedule graph.
For more information, see “Managing Schedules From the Interactive
Schedule Graph” on page 175.
Note: You can edit all types of actions. For details about each action type,
see “Understanding Schedule Actions” on page 152.
2 Click the Edit Action button or double-click the action. The Edit Action
dialog box opens.
167
Chapter 11 • Scheduling Scenarios
Note: You can also delete schedule actions from the Interactive Schedule
graph. For more information, see “Managing Schedules From the Interactive
Schedule Graph” on page 175.
168
Chapter 11 • Scheduling Scenarios
You can also watch the progress of a running schedule during a scenario
run. You can pause the schedule during the run to modify settings, and
resume running the schedule when you are ready.
169
Chapter 11 • Scheduling Scenarios
170
Chapter 11 • Scheduling Scenarios
171
Chapter 11 • Scheduling Scenarios
172
Chapter 11 • Scheduling Scenarios
2 Click the Show Selected Group button. Only the selected Vuser group is
displayed in the graph.
To view all of Vuser groups again, click the Show All Groups button.
Note: All the options available in the interactive graph pane are also
available in the full-view graph window.
173
Chapter 11 • Scheduling Scenarios
174
Chapter 11 • Scheduling Scenarios
Note: Basic schedules can be viewed but not modified in the interactive
schedule graph. To modify a basic schedule, you must edit the actions in the
Actions grid.
To switch the between Edit and View modes, click the Edit/View Mode
button.
175
Chapter 11 • Scheduling Scenarios
Adding an Action
You add schedule actions in the graph by splitting an action into two
actions, or appending a new action after the last action in the graph.
Tip: Selecting the action in the Actions grid highlights the corresponding
line in the graph.
3 Click the Split Action button. The selected line is split in two. The original
action in the Actions grid is split into two equivalent actions, each
representing half of the original action. For example,
➤ Splitting a Duration action of 5 minutes results in two Duration actions
of 2.5 minutes each
➤ Splitting a Start Vusers action that starts 20 Vusers results in two
Start Vusers actions, each starting 10 Vusers
176
Chapter 11 • Scheduling Scenarios
Editing an Action
You can edit a schedule action in the graph by dragging the endpoint of the
line representing it from one location to another.
Note: Alternatively, you can double-click the line in the graph to open the
Edit Action dialog box, and modify the action as described in “Editing
Schedule Actions” on page 167.
Action Modification
Start Vusers ➤ To increase the number of Vusers to start running, drag the
diamond-shaped endpoint upwards.
➤ To decrease the number of Vusers to start running, drag the
diamond-shaped endpoint downwards.
Start Vusers ➤ To increase the time interval between starting Vusers, drag
the diamond-shaped endpoint to the right.
➤ To decrease the time interval between starting Vusers, drag
the diamond-shaped endpoint to the left.
Note: A vertical line indicates that the Vusers start running
simultaneously.
177
Chapter 11 • Scheduling Scenarios
Action Modification
Stop Vusers ➤ To decrease the number of Vusers to stop running, drag the
diamond-shaped endpoint upwards.
➤ To increase the number of Vusers to stop running, drag the
diamond-shaped endpoint downwards.
Stop Vusers ➤ To increase the time interval between stopping Vusers, drag
the diamond-shaped endpoint to the right.
➤ To decrease the time interval between stopping Vusers, drag
the diamond-shaped endpoint to the left.
Note: A vertical line indicates that the Vusers stop running
simultaneously.
Tip: To fine-tune any of the details of the selected action line, use the arrow
keys on your keyboard.
Deleting an Action
You can delete a schedule action from the schedule graph.
178
Chapter 11 • Scheduling Scenarios
Important: The scenario schedule may run a few seconds ahead of the
scenario run.
At any point during the run, you can pause the schedule, and resume
running the schedule.
179
Chapter 11 • Scheduling Scenarios
Vusers added to a scenario or Vuser group which has finished running are
not affected by schedule settings and run according to the scenario run-time
settings.
180
12
Defining Service Level Agreements
Service level agreements (SLAs) enable you to define goals for your load test
scenario. During a scenario run, the Controller measures the performance
and collects data. Analysis compares this data against thresholds defined in
the SLAs.
181
Chapter 12 • Defining Service Level Agreements
Note: You can define and edit SLAs in the Controller or in Analysis.
For details about viewing SLA information in Analysis reports, refer to the
HP LoadRunner Analysis User Guide.
182
Chapter 12 • Defining Service Level Agreements
When creating SLAs for these measurements, you can also specify load
criteria to take into account when comparing the data.
➤ To define SLAs for Average Transaction Response Time, see “SLAs for Average
Transaction Response Time” below.
➤ To define SLAs for Errors per Second, see “SLAs for Errors Per Second” on
page 187.
➤ To set the time intervals which Analysis uses for evaluating the SLA, see
“Selecting a Tracking Period” on page 190.
Note: To set the time intervals that Analysis uses for evaluating the SLA, see
“Selecting a Tracking Period” on page 190.
183
Chapter 12 • Defining Service Level Agreements
➤ If you are working in the Controller: In the Design tab, in the Service
Level Agreement pane, click New.
The Service Level Agreement wizard opens.
2 Complete the SLA Wizard steps, as described in the following sections.
Under SLA status determined per time intervals over a timeline, select
Average Transaction Response Time.
Transactions—Select Transactions
From the Available Transactions list, select the transactions that you want to
evaluate as part of your SLA and click Add.
Note: You can select multiple transactions using the CTRL key.
The transactions you selected are displayed in the Selected Transactions list.
Note: In the next wizard step (Thresholds page), you will set different
thresholds per each of these load value ranges.
➤ In the Load Criteria box, select the relevant load criteria that you want to
use—for example, Running Vusers.
To define an SLA without load criteria, select None in the Load Criteria box.
184
Chapter 12 • Defining Service Level Agreements
➤ In the Less than box, set the lower load value range by entering a maximum
value for this range. This range is between 0 and the maximum value you
entered, but does not include the maximum value.
➤ To set in-between load value ranges, select Between from the Greater than
or equal to/Between combo box and enter minimum and maximum values
for the range. The minimum value is included in the range and the
maximum value is not.
➤ To set the upper load value range, select Greater than or equal to from the
Greater than or equal to/Between combo box and enter the minimum
value for this range. The minimum value is included in this range.
Note: Valid load value ranges are consecutive—there are no gaps in the
range—and span all values from zero to infinity.
➤ If you defined load criteria in the previous step, you set thresholds for
each transaction per the defined load value ranges.
➤ If you did not define load criteria, you set a single threshold for each
transaction.
185
Chapter 12 • Defining Service Level Agreements
Enter the relevant thresholds (per load criteria, if defined) in the table
displayed at the top the page.
If you want to apply one set of threshold values to all transactions, enter the
threshold values in the table displayed at the bottom of the page and click
Apply to all transactions. These values are applied to all the transactions in
the table at the top of the page.
Tip: After you apply one set of threshold values to all transactions, you can
manually modify the thresholds of individual transactions in the table at
the top of the page.
186
Chapter 12 • Defining Service Level Agreements
Finish
If you want to define another SLA after you save the current one, select
Define another SLA.
Note: For details about viewing SLA information in Analysis reports, refer to
the HP LoadRunner Analysis User Guide.
Note: To set the time intervals that Analysis uses for evaluating the SLA, see
“Selecting a Tracking Period” on page 190.
187
Chapter 12 • Defining Service Level Agreements
Under SLA status determined at time intervals over a timeline, select Errors
per Second.
Note: In the next wizard step (Thresholds page), you will set different
thresholds per each of these load value ranges.
➤ In the Load Criteria box, select the relevant load criteria that you want to
use—for example, Running Vusers.
To define an SLA without load criteria, select None in the Load Criteria box.
➤ In the Less than box, set the lower load value range by entering a maximum
value for this range. This range is between 0 and the maximum value you
entered, but does not include the maximum value.
➤ To set in-between load value ranges, select Between from the Greater than
or equal to/Between combo box and enter minimum and maximum values
for the range. The minimum value is included in the range and the
maximum value is not.
188
Chapter 12 • Defining Service Level Agreements
➤ To set the upper load value range, select Greater than or equal to from the
Greater than or equal to/Between combo box and enter the minimum
value for this range. The minimum value is included in this range.
Note: Valid load value ranges are consecutive—there are no gaps in the
range—and span all values from zero to infinity.
➤ If you defined load criteria in the previous step, enter threshold values
per the defined load value ranges, in the table provided.
➤ If you did not define load criteria, enter the maximum threshold value in
the Threshold box.
Note: If Errors per Second exceeded the maximum threshold value during a
particular time interval during the run, LoadRunner Analysis displays an
SLA status of Failed for that time interval.
189
Chapter 12 • Defining Service Level Agreements
Finish
If you want to define another SLA after you save the current one, select
Define another SLA.
Note: For details about viewing SLA information in Analysis reports, refer to
the HP LoadRunner Analysis User Guide.
190
Chapter 12 • Defining Service Level Agreements
Analysis sets the tracking period to the nearest multiple of the scenario’s
aggregation granularity that is greater than or equal to the value (X) that
you selected.
Assume for example that you select a tracking period of X=10, and
assume that the aggregation granularity for the scenario is 6. The
tracking period is set to the nearest multiple of 6 that is greater than or
equal to 10, that is, Tracking Period = 12.
For this option, Analysis uses the following formula:
3 Click OK.
191
Chapter 12 • Defining Service Level Agreements
In the Threshold box, enter the minimum threshold value for your
measurement.
Note: If the measurement value fell below this minimum threshold value
during the run, LoadRunner Analysis displays an SLA status of Failed for the
entire run.
Finish
If you want to define another SLA after you save the current one, select
Define another SLA.
Note: For details about viewing SLA information in Analysis reports, refer to
the HP LoadRunner Analysis User Guide.
192
Chapter 12 • Defining Service Level Agreements
Details View the details of the SLA selected in the Service Level
Agreement pane. The Service Level Agreement - details
dialog box opens, displaying a summary of the details
for the selected SLA. For more information, see
“Understanding the Service Level Agreement - Details
Dialog Box” on page 193.
Advanced Adjust the tracking period for SLAs that are evaluated
per time interval over a timeline. See “Selecting a
Tracking Period” on page 190.
If you defined load criteria as part of your SLA, the threshold values are
displayed per the defined load value ranges.
For information about defining a new SLA, see About Defining Service Level
Agreements.
193
Chapter 12 • Defining Service Level Agreements
194
13
Creating a Goal-Oriented Scenario
195
Chapter 13 • Creating a Goal-Oriented Scenario
196
Chapter 13 • Creating a Goal-Oriented Scenario
The Controller attempts to reach the goal you defined using a minimum
number of Vusers. If it cannot reach this goal using the minimum number
of Vusers, the Controller increases the number of Vusers until the maximum
number you defined is reached. If your goal cannot be reached with the
maximum number of Vusers you specified, increase this number and
execute your scenario again.
If the scenario does not reach the maximum transaction response time that
you defined, your server is capable of responding within a reasonable period
of time to the number of customers you want to be able to serve
simultaneously. If the defined response time is reached after only a portion
of the Vusers has been executed, or if you receive a message that the defined
response time will be exceeded if the Controller uses the maximum number
of Vusers defined, you should consider revamping your application and/or
upgrading your server software and hardware.
197
Chapter 13 • Creating a Goal-Oriented Scenario
The Scenario Scripts pane lists all enabled and disabled Vuser scripts, their
paths, the percentage of the total target assigned to each script, and the load
generators. For more information on the Scenario Scripts pane, see
“Assigning Properties to Scripts” on page 207.
198
Chapter 13 • Creating a Goal-Oriented Scenario
The Scenario Goal pane displays information regarding the goal profile: its
name, the goal you define, a minimum and maximum number of Vusers,
the duration of the scenario, and the load behavior.
You can define five types of goals in a goal-oriented scenario: the number of
virtual users, the number of hits per second (Web Vusers only), the number
of transactions per second, the number of pages per minute (Web Vusers
only), or the transaction response time you want your scenario to reach. For
more information on defining goal types, see “Defining Scenario Goals” on
page 200.
The Service Level Agreement pane lists the service level agreements defined
for the scenario. For more information, see Chapter 12, “Defining Service
Level Agreements.”
199
Chapter 13 • Creating a Goal-Oriented Scenario
2 Select a Goal Profile Name. To enter a new name, click New, type the new
goal profile name in the New Goal Profile dialog box, and click OK. The new
goal profile name appears in the selector.
3 In the Define Scenario Goal box, select a Goal Type as described in
“Understanding the Edit Scenario Goal Dialog Box” on page 201.
Note: VuGen automatically defines each Init, Action, and End unit as a
transaction. In addition, you can insert a static transaction in your script
using the Start Transaction and End Transaction functions.
200
Chapter 13 • Creating a Goal-Oriented Scenario
4 In the Scenario Settings tab, specify how long you want to run your
scenario after the target is achieved, and whether to continue the scenario if
the target cannot be reached. For more information, see “Understanding the
Scenario Settings Tab” on page 203.
5 Select the Load Behavior tab, and specify how and when you want the
Controller to reach your target. For more information, see “Understanding
the Load Behavior Tab” on page 204.
6 Select Do not change recorded think time if you want LoadRunner to run
the scenario using the think time recorded in your script.
7 Click OK to close the Edit Scenario Goal dialog box. The scenario target
information you entered appears in the Scenario Goal window.
Note: When you run a goal-oriented scenario, the goal you defined is
displayed in the appropriate graph, along with the scenario results. This
enables you to compare the results with your target goal.
201
Chapter 13 • Creating a Goal-Oriented Scenario
Note: If you select this option, you may need to increase the number of
Vusers in your scenario in order to reach your target.
➤ Load Preview. Displays a graph of the goal and load behavior you defined.
202
Chapter 13 • Creating a Goal-Oriented Scenario
➤ Run Time.
➤ Run for X (HH:MM:SS) after the target has been achieved. Select the
amount of time you want your scenario to run after reaching the target.
➤ If target cannot be reached. Select one of the following two options:
➤ Stop scenario and save results. Instructs the Controller to stop the
scenario and save the scenario results, if the target you defined cannot be
reached.
➤ Continue scenario without reaching goal. Instructs the Controller to
continue running the scenario, even if the target you defined cannot be
reached.
➤ Receive notification. Instructs the Controller to send you an error
message indicating that the target cannot be reached.
203
Chapter 13 • Creating a Goal-Oriented Scenario
204
Chapter 13 • Creating a Goal-Oriented Scenario
Note: The last load behavior option is not available for the Transactions per
Second goal type.
205
Chapter 13 • Creating a Goal-Oriented Scenario
If the goal has not been reached once the Controller has launched the
maximum number of Vusers, LoadRunner attempts to reach the defined
target once more by recalculating the target number of hits, transactions, or
pages per Vuser, and running the maximum number of Vusers
simultaneously.
➤ the Controller has twice attempted to reach the goal using the maximum
number of Vusers specified, and the goal could not be reached.
➤ no pages per minute or hits/transactions per second were registered after
the first batch of Vusers was run.
➤ the number of pages per minute or hits/transactions per second did not
increase after the Controller ran a certain number of Vuser batches.
➤ all the Vusers that were run failed.
➤ there were no available load generators for the type of Vusers you
attempted to run.
206
Chapter 13 • Creating a Goal-Oriented Scenario
207
Chapter 13 • Creating a Goal-Oriented Scenario
208
Chapter 13 • Creating a Goal-Oriented Scenario
8 Click OK to close the Add Load Generator dialog box. LoadRunner adds the
new load generator to the Load Generator Name list. To include the new
load generator in your scenario, select it from the Load Generator Name list,
and click OK.
Repeat the above procedure for each load generator you want to add to your
scenario.
Load Balancing
Load balancing evenly distributes the load generated by Vusers among the
requested load generators, ensuring an accurate load test.
209
Chapter 13 • Creating a Goal-Oriented Scenario
You can monitor the status of a machine’s CPU usage using the icons in the
Load Generators dialog box. When the CPU usage of a load generator
becomes problematic, the icon to the left of the load generator name
contains a yellow bar. When the machine becomes overloaded, the icon
contains a red bar.
Configuring Scripts
You can add a script to the Scenario Scripts list using the Add Script dialog
box. Once you have added a script to the list, you can view the details of the
script you selected, edit the script, or change its run-time settings.
To add a script:
1 In the Scenario Scripts pane, click the Add Script button, or right-click
within a column and select Add Script. The Add Script dialog box opens.
210
Chapter 13 • Creating a Goal-Oriented Scenario
Note: When you specify the location of a script, you can specify a location
that is relative to the current scenario directory. For details, see “Using
Relative Paths for Scripts” on page 130.
3 Click Open to select the files. The Open Test dialog box closes, and the new
script name appears in the Add Script dialog box.
4 Click OK to close the Add Script dialog box and enter the new script
information in the Scenario Scripts pane.
211
Chapter 13 • Creating a Goal-Oriented Scenario
Note: Several protocols, such as Web and Java, have specific settings.
212
Chapter 13 • Creating a Goal-Oriented Scenario
For information on configuring the run-time settings, see the HP Virtual User
Generator User Guide.
Note: If you modify the run-time settings from the Controller, LoadRunner
runs the script using the modified settings. To restore the initial settings,
click Refresh and select Run-Time Settings.
3 To edit the script, click View Script. The script generation tool, VuGen,
opens. For more information on editing scripts, see the HP Virtual User
Generator User Guide.
Note: If you use VuGen to make changes to a script while the Controller is
running, click Refresh and select Script to update the script details in the
scenario.
213
Chapter 13 • Creating a Goal-Oriented Scenario
4 Click More to expand the Script Information dialog box and view additional
script information.
5 In the Command Line box, type any command line options to use when
running the script. For example: -x value -y value
For information about passing command line argument values to a script,
see the HP Virtual User Generator User Guide.
6 To see the rendezvous points included in the selected script, click the
Rendezvous tab.
7 To see the list of Vusers associated with the selected script, click the Vusers
tab. If you have not yet created Vusers, the box will be empty.
214
Chapter 13 • Creating a Goal-Oriented Scenario
8 To see the list of files used by the script, select the Files tab. By default, this
list shows all files in the script’s directory (only after your script has been
added to the script list). These files include the configuration settings file,
the init, run, and end portions of the script, the parameterization
definitions file, and the .usr file. To add a file to the list, click Add and add
the file name.
Note: You can delete the files that you add, but not the other files listed.
To delete a script:
In the Scenario Scripts pane, click the Remove Script button, or right-click
the script and select Remove Script.
To disable a script:
Click the check box to the left of the Vuser script name. The color of the
script entry changes to gray, indicating that the script will not take part in
the scenario. To re-enable the Vuser script, click the same box again.
215
Chapter 13 • Creating a Goal-Oriented Scenario
216
14
Using Rendezvous Points
LoadRunner allows you to check your system’s response under specific load.
To do this, you can use rendezvous points to cause multiple Vusers to
perform tasks at exactly the same time, thereby creating intense user load on
the server.
217
Chapter 14 • Using Rendezvous Points
You define rendezvous points in the Vuser script. For information about
inserting rendezvous points into Vuser scripts, see the HP Virtual User
Generator User Guide.
Using the Controller, you can influence the level of server load by selecting:
The following procedure outlines how to control load peaks on the server:
1 Create the Vuser scripts, inserting the necessary rendezvous points.
2 Create a scenario.
When you add a Vuser group to a scenario, LoadRunner scans the group’s
associated script for the names of the rendezvous points and adds them to
the list in the Rendezvous Information dialog box (Scenario > Rendezvous).
If you create another Vuser group that runs the same script, the Controller
adds the new Vusers to the rendezvous and updates the list.
218
Chapter 14 • Using Rendezvous Points
➤ Rendezvous Policy
➤ Enabling and Disabling of Rendezvous Points
➤ Enabling and Disabling of Vusers
219
Chapter 14 • Using Rendezvous Points
220
Chapter 14 • Using Rendezvous Points
221
Chapter 14 • Using Rendezvous Points
Note: This option interferes with the scheduling of your scenario. If you
select this option, your scenario will not run as scheduled.
4 Enter a timeout value in the Timeout between Vusers box. After each Vuser
arrives at the rendezvous point, LoadRunner waits up to the maximum
timeout period you set for the next Vuser to arrive. If the next Vuser does
not arrive within the timeout period, the Controller releases all the Vusers
from the rendezvous.
Each time a new Vuser arrives, the timer is reset to zero. The default timeout
is thirty seconds.
5 Click OK to save your settings and close the Policy dialog box.
222
Chapter 14 • Using Rendezvous Points
To disable a rendezvous:
1 In the Rendezvous box, select the rendezvous you want to disable.
2 Click the Disable Rendezvous button. The button changes to Enable
Rendezvous and the rendezvous becomes disabled.
To enable a rendezvous:
1 In the Rendezvous box, select the disabled rendezvous that you want to
enable.
2 Click the Enable Rendezvous button. The button changes to Disable
Rendezvous and the rendezvous becomes enabled.
223
Chapter 14 • Using Rendezvous Points
224
Chapter 14 • Using Rendezvous Points
3 Click the Disable Vuser button below the Vusers box. The disabled Vusers
change from black to gray and will not take part in the rendezvous.
To enable a Vuser, select it and click Enable Vuser.
➤ Current Status. The number of Vusers that arrived at the rendezvous point
out of the total number of Vusers assigned to the rendezvous.
➤ Time. The time at which the Vusers at the rendezvous point were released.
➤ Reason. The reason the Vusers at the rendezvous point were released. The
possible reasons are Timeout or Arrived.
225
Chapter 14 • Using Rendezvous Points
226
Chapter 14 • Using Rendezvous Points
➤ Vusers. Lists the Vusers that are associated with the rendezvous points.
➤ Enable Vuser/Disable Vuser. Enables or disables a Vuser from taking part
in the rendezvous.
➤ Policy. Opens the Policy dialog box, enabling you to set how many Vusers
are released from a rendezvous at a time, as well as the amount of time the
Controller waits before releasing Vusers from a rendezvous.
➤ Timeout. Enter the timeout value (in seconds). After each Vuser arrives at
the rendezvous point, LoadRunner waits up to the number of timeout
seconds specified for the next Vuser to arrive. If the next Vuser does not
arrive within the timeout period, the Controller releases all the Vusers
from the rendezvous. Each time a new Vuser arrives, the timer is reset to
zero. The default timeout is thirty seconds. You set a timeout for each
rendezvous point.
➤ Status Information
➤ Current Status. Displays the number of Vusers that arrived at the
rendezvous point out of the total number of Vusers assigned to the
rendezvous.
➤ Time. Displays the time at which the rendezvous was released.
➤ Reason. Displays the reason for the release of the Vusers from the
rendezvous point. The possible reasons are Timeout or Arrived.
➤ Release. Releases all Vusers currently waiting at the selected rendezvous
point. If you want the scenario to continue even though all the Vusers
did not reach the rendezvous, click this button.
➤ Reset. Resets the Status Information, removing the information currently
displayed.
227
Chapter 14 • Using Rendezvous Points
228
15
Configuring a Scenario
You can configure how load generators and Vusers behave when you run a
scenario so that the scenario accurately emulates your working
environment.
The settings described in this chapter apply to all the load generators in a
scenario. To change the settings for individual load generators, see
Chapter 5, “Creating Manual Scenarios.” If the global scenario settings differ
from those of an individual load generator, the load generator settings
override them.
229
Chapter 15 • Configuring a Scenario
The settings discussed in this chapter are unrelated to the Vuser run-time
settings. These settings, which apply to individual Vusers or scripts, contain
information about logging, think time, and the network, the number of
iterations, and the browser. For information on setting the run-time
settings, see the HP Virtual User Generator User Guide.
For information on setting the options for online monitors, see Chapter 30,
“Online Monitoring.”
The LoadRunner Expert mode allows you to configure additional settings for
the LoadRunner agent and other LoadRunner components. For more
information, see Appendix C, “Working in Expert Mode.”
230
Chapter 15 • Configuring a Scenario
231
Chapter 15 • Configuring a Scenario
The command timeouts are the maximum time limits for various
LoadRunner commands. When a command is issued by the Controller, you
set a maximum time for the load generator or Vuser to execute the
command. If it does not complete the command within the timeout
interval, the Controller issues an error message.
Note: LoadRunner recognizes the fact that the number of active Vusers
influences the timeout values. For example, 1000 Vusers trying to
initialize will take much longer than 10 Vusers. LoadRunner adds an
internal value, based on the number of active Vusers, to the specified
timeout value.
232
Chapter 15 • Configuring a Scenario
➤ Vuser
➤ Init. Enter the timeout value for the Initialize command. The default
time limit is 180 seconds.
➤ Run. Enter the timeout value for the Run command. The default time
limit is 120 seconds.
➤ Pause. Enter the timeout value for the Pause command. The default
time limit is 120 seconds.
➤ Stop. Enter the timeout value for the Stop command. The default time
limit is 120 seconds.
➤ Update Vuser elapsed time every. Specifies the frequency at which
LoadRunner updates the value displayed in the Elapsed Time column in the
Vusers dialog box. The default is 4 seconds.
For example:
If you select a Vuser and click the Initialize button, LoadRunner checks
whether the Vuser reaches the READY state within 180 seconds (the default
Init timeout period); if it does not, the Controller issues a message indicating
that the Init command timed out.
233
Chapter 15 • Configuring a Scenario
234
Chapter 15 • Configuring a Scenario
➤ Vuser Quota. To prevent your system from overloading, you can set quotas
for Vuser activity. The Vuser quotas apply to Vusers on all load generators.
➤ Number of Vusers that may be initialized at one time - all load
generators. Sets the maximum number of Vusers that the load generator
can initialize at a time (when you send an Initialize command).
➤ When stopping Vusers. Lets you control the way in which Vusers stop
running when you click the Stop button.
Select one of the following options:
➤ Wait for the current iteration to end before stopping. Instructs
LoadRunner to allow a Vuser to complete the iteration it is running
before stopping. The Vusers move to the GRADUAL EXITING status and exit
the scenario gradually.
➤ Wait for the current action to end before stopping. Instructs
LoadRunner to allow a Vuser to complete the action it is running before
stopping. The Vusers move to the GRADUAL EXITING status and exit the
scenario gradually.
➤ Stop immediately. Instructs LoadRunner to stop running the Vusers
immediately. The Vusers move to the EXITING status and exit the scenario
immediately.
➤ Use random sequence with seed. Allows LoadRunner to use a seed number
for random sequencing. Each seed value represents one sequence of random
values used for test execution. Whenever you use this seed value, the same
sequence of values is assigned to the Vusers in the scenario. This setting
applies to parameterized Vuser scripts using the Random method for
assigning values from a data file. It will also affect the random percentage of
recorded think time (see information on the Run-Time Settings dialog box
in the HP Virtual User Generator User Guide).
Enable this option if you discover a problem in the test execution and want
to repeat the test using the same sequence of random values.
235
Chapter 15 • Configuring a Scenario
Note: The run-time file storage settings that are described in this chapter
apply to all the load generators in a scenario. You can change the settings for
individual load generators as described in “Defining Load Generators” on
page 87.
Vuser Script files When you run a Vuser, the Controller sends a copy
of the associated Vuser script to the Vuser load
generator. The script is stored in the load generator’s
temporary run-time directory.
236
Chapter 15 • Configuring a Scenario
By default, the On the current Vuser machine option is selected. This means
that all run-time files—including result files and script files—are stored on
the Vuser load generators. The only exception is for Vusers running on the
local load generator (Controller machine), where you must use the shared
drive option.
2 To store script and result files on a shared network drive, click On a shared
network drive. To set the exact location on the network drive, see
Chapter 16, “Preparing to Run a Scenario.”
3 Click OK to close the dialog box.
237
Chapter 15 • Configuring a Scenario
Note: If you select to save result files on the Vuser load generators, you
must collate the results before you can perform any analysis. You can
wait for LoadRunner to collate the results when you launch HP
LoadRunner Analysis, or you can collate results by choosing
Results > Collate Results. Alternatively, select Results > Auto Collate
Results to automatically collate the results at the end of each scenario
run.
238
Chapter 15 • Configuring a Scenario
If you specify that all Vusers access their Vuser scripts directly at some
shared location, no transfer of script files occurs at run time. This alternative
method may be useful in either of the following situations:
➤ The file transfer facility does not work.
➤ The Vuser script files are large and therefore take a long time to transfer.
Remember that Vuser script files are transferred only once during a
scenario.
This alternate method often necessitates path translation. For details, see
Appendix B, “Performing Path Translation.”
239
Chapter 15 • Configuring a Scenario
These include:
240
Chapter 15 • Configuring a Scenario
241
Chapter 15 • Configuring a Scenario
242
16
Preparing to Run a Scenario
Before you run a scenario, you specify a location for the scenario results and
other run-time related settings.
Although most of the pre-scenario settings are optional, using them can
enhance the testing process. These values are scenario-specific—you can set
different values for each LoadRunner scenario.
243
Chapter 16 • Preparing to Run a Scenario
LoadRunner allows you to give descriptive names to each result set. This is
especially useful for cross results analysis, in which LoadRunner
superimposes the results of several scenario runs in a single graph and lets
you compare the results of multiple scenario runs. The descriptive graph
names enable you to distinguish between the results of the multiple runs.
In the example below, the results of two scenario runs are superimposed.
The result sets are res12, and res15.
For more details on cross result graphs, see the HP LoadRunner Analysis User
Guide.
244
Chapter 16 • Preparing to Run a Scenario
Note: You can also use HP’s Web-based test management program, Quality
Center, to store results to a project. For information, see Chapter 17,
“Managing Scenarios Using Quality Center.”
2 In the Results Name box, enter a name for the results. Avoid using the same
name with different paths, since the names will appear identical on the
graphs.
3 In the Directory box, type the full path of the results directory. If you are
using the default file storage setting (local machine), specify a directory in
which to store all of the collated results after the scenario run. If you
specified a shared network drive as the file storage method, specify the
directory to which Vuser groups should write during scenario execution.
4 Select the appropriate check box for subsequent executions:
➤ Automatically create a results directory for each scenario execution
➤ Automatically overwrite existing results directory without prompting for
confirmation
5 Click OK to save the results directory setting.
245
Chapter 16 • Preparing to Run a Scenario
➤ Results Name. Specify a name for the results. The Controller saves the results
using the name that you specify.
➤ Directory. Specify a location in the file system where the Controller will save
the results. Click Browse to find the desired location. The Controller creates
a subdirectory in the results directory. All results are saved within this
subdirectory.
➤ Results Path. Displays the specified location for the results.
➤ Automatically create a results directory for each scenario execution.
Instructs LoadRunner to create a unique results directory for each scenario
execution. By default, the result names are res1, res2, res3, and so forth.
➤ Automatically overwrite existing results directory without prompting for
confirmation. Instructs LoadRunner to automatically overwrite previous
result sets, without prompting the user.
➤ Quality Center (only when connected to Quality Center). Enables you to
save the results to a Quality Center test set.
➤ File System (only when connected to Quality Center). Displays the default
LoadRunner directory path.
246
Chapter 16 • Preparing to Run a Scenario
Directory/File Description
247
Chapter 16 • Preparing to Run a Scenario
Directory/File Description
*.def files Definition files for graphs that describe the online
and other custom monitors
remote_results.txt Contains the file paths for the host event files
*.usp files Contain the script's run logic, including how the
actions sections run
When you generate analysis graphs and reports, the Analysis engine copies
all of the scenario result files (.eve and .lrr) to a database. Once the database
is created, Analysis works directly with the database and does not use the
result files.
248
Chapter 16 • Preparing to Run a Scenario
Collating Results
When you run a scenario, by default all Vuser information is stored locally
on each load generator. After scenario execution, the results are
automatically collated or consolidated—results from all of the load
generators are transferred to the results directory. You set the location of the
results directory as described in “Specifying a Results Location” on page 244.
Note: If you have selected to store all the scenario results directly to a shared
network drive, then collation of the results is not required. See “About
Configuring a Scenario” on page 229 for details on changing how results are
stored.
Note: If you are using the diagnostics modules, results must be collated even
if the load generator is localhost.
249
Chapter 16 • Preparing to Run a Scenario
➤ General Status. The Collate Results files display the status and file size of the
Event, Diagnostics, and Log files.
Note: The file size shown is before compression. After compression, the
result files are smaller in size.
250
Chapter 16 • Preparing to Run a Scenario
Note: You can choose to disable log file collation. For more information, see
“Options - General Settings” on page 490.
The log and result directories are only deleted from a load generator once
LoadRunner successfully collates the results from the machine. You can
therefore close the Controller after saving a scenario, and collate the results
once you reopen the scenario in the Controller.
If collation fails due to a lack of disk space, select Results > Collate
Results > Recollate. LoadRunner attempts to collate the results again,
without compressing the .eve file.
Note: If you enabled the Auto Load Analysis option in the Results menu,
Analysis may open during a lengthy collation process, displaying Analysis
summary data.
251
Chapter 16 • Preparing to Run a Scenario
You can open the Summary Information dialog box from Scenario >
Summary Information.
➤ Scenario Path. Displays the name and location of the scenario definition file
(.lrs).
➤ Author. Enter the name of the scenario’s author.
➤ Subject. Enter a subject name or short title for the scenario.
➤ Description. Enter a description of the scenario.
252
17
Managing Scenarios Using Quality Center
In order for the Controller to access a Quality Center project, you must
connect it to the Web server on which Quality Center is installed. You can
connect to either a local or remote Web server.
For more information on working with Quality Center, see the Quality
Center User Guide.
253
Chapter 17 • Managing Scenarios Using Quality Center
Next, you select the project you want to access. The project stores the
scenarios and results that you created in the Controller.
Note: Quality Center projects are password protected, so you must provide a
user name and a password.
254
Chapter 17 • Managing Scenarios Using Quality Center
3 In the Server URL box, type the URL address of the Web server where
Quality Center is installed.
Note: You can select a Web server accessible via a Local Area Network (LAN)
or a Wide Area Network (WAN).
4 To automatically reconnect to the Quality Center server the next time you
open the Controller, select the Reconnect to server on startup check box.
5 Click Connect. The Quality Center Connection dialog box opens.
255
Chapter 17 • Managing Scenarios Using Quality Center
256
Chapter 17 • Managing Scenarios Using Quality Center
257
Chapter 17 • Managing Scenarios Using Quality Center
Note: To open a scenario directly from the file system, click the File System
button. (To return to the Open from Quality Center Project dialog box, click
the Quality Center button.)
258
Chapter 17 • Managing Scenarios Using Quality Center
3 Click the relevant subject in the test plan tree. To expand the tree and view
sublevels, double-click closed folders. To collapse the tree, double-click open
folders.
Note that when you select a subject, the scenarios that belong to the subject
appear in the Test Name list.
4 Select a scenario from the Test Name list. The scenario appears in the read-
only Test Name box.
5 Click OK to open the scenario. The Controller loads the scenario and
displays its name in the title bar.
259
Chapter 17 • Managing Scenarios Using Quality Center
To save a scenario directly in the file system, click the File System button.
The Save Scenario dialog box opens. (From the Save Scenario dialog box,
you may return to the Save Scenario to Quality Center Project dialog box by
clicking the Quality Center button.)
3 Select the relevant subject in the test plan tree. To expand the tree and view
a sublevel, double-click a closed folder. To collapse a sublevel, double-click
an open folder.
4 In the Test Name box, enter a name for the scenario. Use a descriptive name
that will allow you to identify the scenario easily.
5 Click OK to save the scenario and close the dialog box.
The next time you start Quality Center, the new scenario will appear in
Quality Center’s test plan tree.
260
Chapter 17 • Managing Scenarios Using Quality Center
261
Chapter 17 • Managing Scenarios Using Quality Center
262
Chapter 17 • Managing Scenarios Using Quality Center
3 Click Browse. The Open Test from Quality Center Project dialog box opens
and displays the test plan tree.
4 Select the script and click OK. The Script Path field displays [TD], the full
subject path, and the script name.
For example:
[TD]\Subject\System\test_qc
5 Click OK to close the Add Group dialog box. The script is displayed in the
Scenario Groups pane.
263
Chapter 17 • Managing Scenarios Using Quality Center
3 Click Browse. The Open Test from Quality Center Project dialog box opens
and displays the test plan tree.
4 Select the script and click OK. The Script Path field displays [TD], the full
subject path, and the script name.
For example:
[TD]\Subject\System\test_qc
5 Click OK to close the Add Script dialog box. The script appears in the Script
Path column in the Scenario Scripts pane.
264
18
Using Functional Testing Scripts in
LoadRunner
Using LoadRunner you can test and monitor how your application’s
functionality is affected by heavy load. LoadRunner can integrate functional
testing scripts in the form of GUI Vuser scripts into a load testing scenario.
These GUI Vuser scripts are created using HP Functional Testing software -
HP QuickTest Professional or HP WinRunner.
265
Chapter 18 • Using Functional Testing Scripts in LoadRunner
LoadRunner can integrate these functional testing scripts into a load testing
scenario in the form of GUI Vuser scripts. These scripts, that have already
been designed and debugged in QuickTest or WinRunner, can be used as the
basis of your load test.
266
Chapter 18 • Using Functional Testing Scripts in LoadRunner
For example, a human user sits at a machine, operates applications using the
keyboard and the mouse, and reads information on the machine’s monitor.
Similarly, a GUI Vuser runs on its own machine and operates applications. A
GUI Vuser can be programmed to read and act on information that appears
on its machine’s display.
Suppose that you have a bank server that services many automatic teller
machines (ATMs). You could create a GUI Vuser script that:
The actions of each GUI Vuser are described in a GUI Vuser script. You use
QuickTest and WinRunner to create GUI Vuser scripts.
You monitor and manage GUI Vusers using the LoadRunner Controller. For
instance, you can use the Controller to run, pause, or view Vusers, and to
monitor scenario status.
Note: You cannot use VuGen to run a GUI Vuser script. You use the
Controller to run a GUI Vuser script as part of a scenario; you use
WinRunner or QuickTest to run a GUI Vuser script in standalone mode.
267
Chapter 18 • Using Functional Testing Scripts in LoadRunner
268
Chapter 18 • Using Functional Testing Scripts in LoadRunner
➤ Limitations
➤ Including Transactions
➤ Adding Statements
➤ Designing Tests for LoadRunner
Limitations
QuickTest offers several features that are designed specifically for integration
with LoadRunner. Some QuickTest features, however, may not be available
when they are integrated with LoadRunner. For more information about
specific limitations, see the QuickTest readme.
Including Transactions
To measure the performance of the server, you define transactions. A
transaction represents an action or a set of actions that you are interested in
measuring. You define transactions within your Vuser script by enclosing
the appropriate sections of the script with start and end transaction
statements.
269
Chapter 18 • Using Functional Testing Scripts in LoadRunner
For example, you can define a transaction that measures the time it takes for
the server to process a request to view the balance of an account and for the
information to be displayed at the ATM.
Adding Statements
You can use the Services object and its associated methods to insert
statements that are specifically relevant to performance testing. These
include Abort, GetEnvironmentAttribute, LogMessage,
SetTransactionStatus, ThinkTime, UserDataPoint, StartTransaction and
EndTransaction. For more information on these methods, see the QuickTest
documentation.
➤ The QuickTest tests you use with LoadRunner should be simple tests,
designed to pinpoint specific operations.
➤ LoadRunner cannot run nested action iterations.
➤ Do not include references to external actions or other external resources,
such as an external Data Table file, environment variable file, shared object
repositories, and so forth.
➤ Include transactions in your QuickTest test since LoadRunner only provides
performance information for data that is included within a transaction.
270
Chapter 18 • Using Functional Testing Scripts in LoadRunner
Note: Some WinRunner features may not be available when they are
integrated with LoadRunner.
271
Chapter 18 • Using Functional Testing Scripts in LoadRunner
For example, you could record a user entering an account number into an
ATM and then withdrawing fifty dollars. These actions are automatically
transcribed into a script in HP’s Test Script Language (TSL).
GUI Vuser scripts are written in TSL—HP’s Test Script Language. TSL is a
high-level C-like programming language. It combines the power and
flexibility of a conventional programming language with functions designed
specifically for testing. For additional information about TSL, see the TSL
Online Reference (available from the WinRunner Help menu).
This section presents a basic Vuser script, created in WinRunner. The script
starts an ATM application (mratm.exe), enters an account number, deposits
fifty dollars, and then closes the application.
The first section of the script starts an application and moves it to a new
location on the screen. The system function starts the ATM application. The
win_move function moves the ATM application to a specified location on
the screen.
272
Chapter 18 • Using Functional Testing Scripts in LoadRunner
Next, the Vuser enters an account number into the ATM. The set_window
function activates the ATM window. The edit_set function instructs the
Vuser to enter the account number into the ATM’s account field.
After entering the account number, the Vuser enters the amount it wants to
deposit and presses the deposit button. The edit_set function enters the
amount to be deposited in the amount field. The button_press function tells
the Vuser to press the ATM’s Deposit button.
The final section of the test tells the Vuser to close the ATM application. The
menu_select_item function selects the Exit command from the File menu.
273
Chapter 18 • Using Functional Testing Scripts in LoadRunner
You insert rendezvous points into Vuser scripts to emulate heavy user load
on the server. Rendezvous points instruct Vusers to wait during test
execution for multiple Vusers to arrive at a certain point, so that they may
simultaneously perform a task. For example, to emulate peak load on the
bank server, you can insert a rendezvous point instructing 100 Vusers to
deposit cash into their accounts at the same time.
After recording a basic Vuser script using WinRunner, you manually insert:
274
Chapter 18 • Using Functional Testing Scripts in LoadRunner
Function Description
275
Chapter 18 • Using Functional Testing Scripts in LoadRunner
error_message <message>;
In the following example, the Vuser script sends a message when a fatal
error occurs during script execution.
output_message (message);
276
Chapter 18 • Using Functional Testing Scripts in LoadRunner
For example, you could program statements into a Vuser script to return the
ID of each active Vuser currently using an application, and print this
information to a file.
Function Description
my_host_name = get_host_name();
print("my local load generator name is:" & my_host_name) > vuser_file;
For more information about these functions, see the TSL Online Reference
(available from the WinRunner Help menu).
After recording a basic Vuser script, you insert statements into the script that
measure the performance of the server (transactions), and create a
synchronized user load (rendezvous points). For more details about GUI
Vusers, see your HP LoadRunner Online Function Reference.
277
Chapter 18 • Using Functional Testing Scripts in LoadRunner
➤ You can run only one GUI Vuser concurrently per machine.
➤ Ensure that QuickTest and WinRunner are closed before running the
scenario.
➤ In the Run-Time Settings for script dialog box, only the General categories
and sub-categories (General, Iterations, Miscellaneous, Think Time) are
relevant for QuickTest and WinRunner tests. The Replay options are not
relevant.
To add a GUI Vuser script to a LoadRunner scenario:
1 Navigate to the folder containing the test script.
➤ For a new scenario, click Browse in the New Scenario dialog box.
➤ When adding the script to an existing scenario, click Browse in the Add
Group/Add Script dialog box. The Open Test dialog box opens.
2 In the Files of Type box select the appropriate file type.
➤ For WinRunner, select GUI Scripts.
➤ For QuickTest, select QuickTest Tests.
3 Navigate to the appropriate script and add it to your scenario.
278
Part III
Executing a Scenario
280
19
Running a Scenario
➤ records the durations of the transactions you defined in the Vuser scripts
➤ performs the rendezvous included in the Vuser scripts
➤ collects error, warning, and notification messages generated by the
Vusers
281
Chapter 19 • Running a Scenario
You can run an entire scenario unattended, or you can interactively select
the Vuser groups and Vusers that you want to run. When the scenario starts
running, the Controller first checks the scenario configuration information.
Next, it invokes the applications that you selected to run with the scenario.
Then, it distributes each Vuser script to its designated load generator. When
the Vuser groups are ready, they start executing their scripts.
While the scenario runs, you can monitor each Vuser, view the error,
warning, and notification messages generated by the Vusers, and stop both
Vuser groups and individual Vusers. You can instruct LoadRunner to allow
an individual Vuser or the Vusers in a group to complete the iterations they
are running before stopping, to complete the actions they are running
before stopping, or to stop running immediately. For more information, see
“Configuring Scenario Run-Time Settings” on page 234.
You can also activate additional Vusers while the scenario is running, using
the Run/Stop Vusers dialog box. For more information, see “Manually
Adding Vusers to a Running Scenario” on page 294.
The scenario ends when all the Vusers have completed their scripts, when
the duration runs out, or when you terminate it.
282
Chapter 19 • Running a Scenario
2 Select Scenario > Start, or click Start Scenario. The Controller starts
initializing the Vusers and distributing them to their designated load
generators, where they begin to execute their Vuser scripts.
Note: The Controller begins running the scenario according to the start time
set in the Scenario Start dialog box.
283
Chapter 19 • Running a Scenario
If you have not specified a results directory for the scenario, the Set Results
Directory dialog box opens.
During scenario execution, you can manipulate individual Vusers and Vuser
groups. This is described in “Controlling Vuser Groups” below and
“Controlling Individual Vusers” on page 291.
3 Select Scenario > Stop, or click Stop to terminate the scenario. If you
selected the Stop immediately option in the Run-Time Settings tab of the
Options dialog box, all of the Vusers in the scenario move to the Exiting
status.
If you selected the Wait for the current iteration to end before exiting or
Wait for the current action to end before exiting options in the Run-Time
Settings tab of the Options dialog box, the Vusers in the scenario move to
the Gradual Exiting status and exit the scenario gradually. To stop the Vusers
immediately, click Stop Now.
4 Select Scenario > Reset, or click Reset to reset all Vusers to their pre-scenario
Down status.
284
Chapter 19 • Running a Scenario
Note: You can instruct LoadRunner to randomly run only one Vuser in a
group by right-clicking the Vuser group and selecting Run One Vuser Until
Complete. A Vuser script log opens, displaying run-time information about
the Vuser. For more information about the Vuser log, see “Viewing the Vuser
Script Log” on page 311.
Note: Pausing a Vuser group will affect its transaction response time.
To pause a Vuser:
1 Select the Vuser group or groups that you want to pause.
2 Select Pause Vusers from the right-click menu. The Vusers groups
temporarily stop script execution.
285
Chapter 19 • Running a Scenario
Note: If the Vusers are not in the Run state, the Gradual Stop option is
disabled.
286
Chapter 19 • Running a Scenario
➤ Scenario Groups pane. Displays each Vuser group and its current status.
You can perform the following actions on individual Vuser groups in the
scenario by right-clicking a group in the Scenario Groups window:
➤ Reset IDs. Resets the IDs of the Vusers in the group.
➤ Initialize Vusers. Distributes the Vusers in the group to their designated
load generators so that they are ready to execute their script. The Vuser
group’s status changes from Down to Pending to Initializing to Ready. If a
Vuser group fails to initialize, the Vuser group status changes to Error.
By initializing all of the Vusers in a group before running them, you can
ensure that they all begin executing the scenario at the same time.
➤ Run Vusers Until Complete. The selected Vusers until complete. If you
run Vusers in the Down or Error state, LoadRunner initializes and then
runs the Vusers.
➤ Run One Vuser Until Complete. Instructs the Controller to randomly run
one of the Vusers in the Vuser group until it completes running. The
Vuser Log opens, displaying run-time information about the Vuser.
➤ Pause Vusers. Temporarily pauses running the Vusers group. The status of
the Vuser group changes from Running to Paused.
287
Chapter 19 • Running a Scenario
Note: This option is only available when the Vuser group is in the Run
state, if you selected the Wait for the current iteration to end before
exiting or Wait for the current action to end before exiting options in
the Run-Time Settings tab of the Options dialog box.
288
Chapter 19 • Running a Scenario
➤ Start Scenario. Instructs the Controller to start initializing the Vusers in the
scenario and distributing them to their designated load generators, where
they begin to execute their Vuser scripts.
Note: The Controller begins running the scenario at the time stipulated in
the Scenario Start dialog box.
➤ Stop. Instructs the Controller to stop running the scenario. If you selected
the Stop immediately option in the Run-Time Settings tab of the Options
dialog box, all of the Vusers in the scenario move to the Exiting status. If you
selected the Wait for the current iteration to end before exiting or Wait for
the current action to end before exiting options in the Run-Time Settings
tab of the Options dialog box, the Vusers in the scenario move to the
Gradual Exiting status and exit the scenario gradually.
➤ Stop Now. Instructs the Controller to stop running the scenario
immediately.
➤ Reset. Resets all the Vuser groups in the scenario to their pre-scenario DOWN
status.
➤ Vusers. Opens the Vusers dialog box, enabling you to view the status of each
of the Vusers in a Vuser group.
➤ Run/Stop Vusers. Opens the Run/Stop Vusers dialog box, enabling you to
activate additional Vusers.
➤ Pause/Resume Scheduler. Pauses or resumes the scenario schedule.
(Displayed during scenario execution only.)
289
Chapter 19 • Running a Scenario
Note: You can detach the Scenario Status window from the Run view by
clicking the button in the upper-right corner. This enlarges the Scenario
Groups window.
➤ Graphs. To view a list of the available graphs, select View > Show Available
Graphs. To hide the graph tree view, select View > Hide Available Graphs, or
click the X button in the top right corner of the Available Graphs list.
To display a graph, click it in the left pane and drag it to the right pane. By
default, four graphs are displayed. To customize your online graph display,
select View > View Graphs and select the number of graphs you want to
view. You can view up to 16 graphs simultaneously. To display only one
graph, double-click the graph in the right pane. To return to the previous
view, double-click the graph again. Below the graphs, a legend displays the
statistics of the selected graph: color, scale, measurement/status, machine,
maximum, minimum, and average values, standard deviation, and last.
You can perform the following actions on a graph by using the Monitors
menu or right-clicking the graph:
➤ Graph configuration
➤ Graph duplication
➤ Freeze/Release graph
➤ Export graph to HTML
➤ Overlay graphs
290
Chapter 19 • Running a Scenario
291
Chapter 19 • Running a Scenario
292
Chapter 19 • Running a Scenario
➤ To view the Vuser script log, click the Vuser log button. A script log, such
as the following, appears.
➤ To close the Vuser script log, click the Close button. For more
information on the Vuser script log, see page 311.
2 Click Close to close the Vusers dialog box.
293
Chapter 19 • Running a Scenario
➤ If you are running a scenario in the Vuser Group Mode, you control the
number of new Vusers that can be added to each Vuser Group, and the load
generators on which these additional Vusers will run.
➤ If you are running a scenario in the Percentage Mode, you control the
number of new Vusers that can be distributed among the Vuser scripts
according to the percentage you define, and the load generators on which
these additional Vusers will run.
Note: If you are running a scenario or Vuser group using Schedule Builder
settings, these settings will be applied to all Vusers that are manually added
to the scenario or Vuser group during the scenario run. For more
information, see “Adding Vusers to a Scheduled Scenario During a Run” on
page 180.
294
Chapter 19 • Running a Scenario
If you are in the Percentage Mode, the Run/Stop Vusers dialog box displays
the Vuser scripts included in the scenario.
2 If you are in the Vuser Group Mode, enter the number of Vusers you want to
run for each group in the Quantity column.
If you are in the Percentage Mode, enter the number of Vusers and the
percentage in which you want these Vusers to be distributed among the
checked Vuser scripts. LoadRunner automatically distributes the number of
Vusers you entered.
3 To disable a Vuser group/script, clear the check box to the left of the
group/script name. A group/script will automatically appear disabled if it is
disabled in the Design view.
Note: If you disable a Vuser group in the Vuser Group Mode, no Vusers will
be distributed to it. If you disable a Vuser script in the Percentage Mode, no
Vusers will be distributed to it, and the unused percentage of the Vusers will
not be distributed among the remaining scripts, unless you define a zero
percent value for the disabled script.
295
Chapter 19 • Running a Scenario
4 To change the load generator on which the Vuser group/script will run,
select a different load generator from the Load Generator column.
To use a load generator that does not appear, select Add from the Load
Generator Name list. The Add New Load Generator dialog box opens. Add
the name, platform, and temporary directory of the new load generator and
click OK.
If you are in the Percentage Mode, you can select more than one load
generator to run the Vuser script. From the Load Generator Name list, select
the load generators and click OK. To use all the load generators in the list,
click the All Generators button.
Note: If you defined more than one load generator for a script, the added
Vusers are proportionally distributed among the defined load generators.
296
Chapter 19 • Running a Scenario
The number of Vusers that are distributed among the checked scripts is 15.
The % column indicates that 60% of these Vusers are distributed to the
script flights2002, and 20% to both travel and test1. In accordance with
these percentages, the # column indicates that nine Vusers are distributed to
flights2002 and three to travel and test1.
Note: The unused percentage of the Vusers from the disabled test1 script are
not distributed among the remaining scripts, because a percentage value has
been defined for this script.
When an action (Init, Run, Stop) is selected from the Run/Stop Vusers dialog
box, the Controller runs only the number of Vusers that appear in the #
column. In this example, nine Vuser are initialized, run, or stopped in the
flights2002 script, and three in the travel script.
297
Chapter 19 • Running a Scenario
All Vusers distributed to the flights2002 script are run on the localhost load
generator. For the travel script, Vusers are proportionally distributed among
all defined load generators.
➤ Specify a quantity of Vusers for every group. Enter the number of Vusers
you want to run for each group in the Quantity column "#" (Vuser Group
Mode).
➤ Distribute X Vusers among the checked scripts. Enter the number of Vusers
you want to distribute by percentage among the checked Vuser scripts.
LoadRunner automatically distributes the number of Vusers you entered
(Percentage Mode).
➤ Run/Stop Vusers table.
➤ Group/Script Name. Displays the names of the Vuser groups or scripts
running in the scenario.
➤ %. Indicates the percentage of Vusers distributed to each Vuser script
(Percentage mode only).
➤ #. Indicates the number of Vusers distributed to each Vuser script.
➤ Load Generators. Indicates the load generators on which the Vusers will
be run. If more than one load generator is defined for a script, the added
Vusers are proportionally distributed among the defined load generators.
298
Chapter 19 • Running a Scenario
Note: To disable a Vuser group/script, clear the check box to the left of the
group/script name. A group/script will automatically appear disabled if it is
disabled in the Design view.
If you disable a Vuser script, no Vusers will be distributed to it. However, 100
percent of the Vusers will not be distributed among the remaining scripts,
unless you define a 0 percent value for the disabled script.
➤ Init. Distributes the Vusers that you added to their designated load
generators so that they are ready to execute their scripts. The Controller first
initializes the Vusers in your scenario that have not yet been run, on the
load generators defined in the current dialog box. It then adds additional
Vusers, as required, to reach the quantity defined in the current dialog box.
➤ Run. Select one of the following options:
➤ Run Initialized. Runs the Vusers in the scenario that have already been
initialized on the load generators defined in the current dialog box. The
Controller runs only those Vusers that have already been initialized,
regardless of their quantity.
➤ Run New. Runs the number of Vusers you specified. The Controller first
runs the Vusers in your scenario that have not yet been run, on the load
generators defined in the current dialog box. It then adds additional
Vusers, as required, to reach the quantity defined in the current dialog
box.
➤ Stop. Stops the Vusers that are running on the load generators defined in
the current dialog box. The Controller stops the Vusers according to the
settings you defined in the “Configuring Scenario Run-Time Settings” on
page 234.
299
Chapter 19 • Running a Scenario
300
20
Viewing Vusers During Execution
During scenario execution, you can view the actions that are performed by
Vusers.
➤ On the Controller load generators, you can view the Output window,
monitor Vuser performance online, and check the status of Vusers executing
the scenario.
➤ On remote machines, you can view the Agent summary with information
about the active Vusers.
301
Chapter 20 • Viewing Vusers During Execution
The Status field of each Vuser group displays the current state of each Vuser
in the group. The following table describes the possible Vuser statuses
during a scenario:
Status Description
Ready The Vuser already performed the init section of the script
and is ready to run.
Error A problem occurred with the Vuser. Check the Status field
on the Vuser dialog box or the output window for a
complete explanation of the error.
Exiting The Vuser has finished running or has been stopped, and is
now exiting.
Stopped The Vuser stopped when the Stop command was invoked.
302
Chapter 20 • Viewing Vusers During Execution
You can also view a synopsis of the running scenario in the box in the
upper-right corner of the Run view.
Note: You can detach the Scenario Status window from the Run view by
clicking the button in the upper-right corner. This enlarges the Scenario
Groups pane.
The following table describes the runtime information that can be viewed
during a scenario:
Elapsed Time Indicates how much time has elapsed since the
beginning of the scenario
303
Chapter 20 • Viewing Vusers During Execution
Transactions
You can view details of individual transactions in the Transactions dialog
box. To open the Transactions dialog box, in the Scenario Status window
click the Show Snapshot button to the right of Passed Transactions or Failed
Transactions.
Detail Description
304
Chapter 20 • Viewing Vusers During Execution
Detail Description
LoadRunner clears the messages in the Output window at the start of each
scenario execution. If you reset a scenario, messages remain in the Output
window unless you instruct LoadRunner to delete messages from the Output
window upon reset. For more information, see “Options - Output Settings”
on page 494.
305
Chapter 20 • Viewing Vusers During Execution
306
Chapter 20 • Viewing Vusers During Execution
For example, if you drill down on the Vusers column, the Output window
displays all the messages with the code you selected, grouped by the Vusers
that sent the messages.
The message type, the message code, and the column that you selected to
drill down on, are displayed above the grid.
You can drill down further on the entries displayed in blue. When you drill
down on a Vuser, the Vuser log opens. When you drill down on a load
generator, the Load Generators dialog box opens, displaying the load
generator you selected. When you drill down on a script (or Action or Line
Number), VuGen opens, displaying the script you selected.
307
Chapter 20 • Viewing Vusers During Execution
Note: To limit the number of rows displayed when you drill down, open the
wlrun7.ini file in any text editor, and locate the following line:
MaxOutputUIRowsToShow=0
Change the 0 (no limit) to the number of rows you want to view.
When new messages arrive in the Output window, the Refresh button is
enabled. Click Refresh to add the new log information to the Filtered tab
view.
To move between the various drill down levels, click the Previous view and
Next view buttons in the upper-left corner of the Output window.
Summary Tab
The Summary tab displays summary information about the messages sent
during scenario execution. To view details of each message, Vuser, script,
and load generator associated with an error code, click the blue link in the
respective column.
308
Chapter 20 • Viewing Vusers During Execution
➤ Details. Displays the full text of the selected output message in the Output
window.
➤ Remove all messages. Clears all log information from the Output window.
➤ Export the view: Saves the Output view to a specified file.
➤ Freeze/Resume. Stops updating the Output window with messages. To
instruct LoadRunner to resume updating the Output window, click Resume.
The newly updated log information is displayed in a red frame.
➤ Message Code. Displays the code assigned to all similar messages. The
number in parentheses indicates the number of different codes displayed in
the Output window.
➤ Sample Message Text. Displays an example of the text of a message with the
specified code.
➤ Total Messages. Displays the total number of sent messages with the
specified code.
309
Chapter 20 • Viewing Vusers During Execution
➤ Vusers. Displays the number of Vusers that generated messages with the
specified code.
➤ Scripts. Displays the number of scripts whose execution caused messages
with the specified code to be generated.
➤ Generators. Displays the number of load generators from which messages
with the specified code were generated.
➤ Help. Displays an icon if there is a link to troubleshooting for this message.
Note: To sort the log information, click the appropriate column header. The
messages are sorted in descending/ascending order.
Filtered Tab
The Filtered tab displays a drilled down view by Vuser, message, script, or
load generator. For example, if you drill down on the Vusers column, the
Filtered tab displays all the messages with the code you selected, grouped by
the Vusers that sent the messages.
➤ Previous view/Next view. Enables you to move between the various drill
down levels.
➤ <Type of Message> Icon. Displays an icon indicating the type of message by
which the current Output view is filtered.
➤ Active Filter. Displays the category or categories by which the current
Output view is filtered.
➤ Viewed by. Displays the name of the column on which you selected to drill
down.
➤ Export the view. Saves the Output view to a specified file.
Refresh. Adds new log information that arrived in the Output window to
the Filtered tab view.
310
Chapter 20 • Viewing Vusers During Execution
311
Chapter 20 • Viewing Vusers During Execution
Note: If you disabled the logging feature in the Run-Time Settings Log tab,
the Vuser script log will contain output only if your script contains the
lr_output_message or lr_message function. If you selected the Send
messages only when an error occurs option in the Log tab, the Vuser script
log will contain output only if there are script errors.
➤ Show Text View. Displays the run-time information in text format. To revert
to the tree view, click the same button again.
➤ Show Tree View. Displays the run-time information in tree format. To revert
to the text view, click the same button again.
➤ Display. Displays a snapshot of the Web page where an error occurred, when
the error is highlighted in the Vuser log.
Note: To view a snapshot of the Web page where an error occurred, you
must select the Activate snapshot on error option in the General tab of the
Run-Time Settings dialog box before running the scenario.
➤ Find Text. Enter the text you want to search for in the Vuser log.
➤ Expand Node. Expands the node so that you can view additional run-time
information details about the Vuser. To revert to the collapsed tree view,
click this button again.
➤ Collapse Node. Collapses the node. To revert to the expanded tree view,
click this button again.
312
Chapter 20 • Viewing Vusers During Execution
Note: You can change the default refresh settings in the “Options - Output
Settings” on page 494.
➤ Copy. Enables you to copy text from the Vuser log. Right-click the selected
text in the Vuser log, and select Copy.
➤ Copy path from status bar. Enables you to copy the path of the Vuser log.
Right-click the path in the status bar, and select Copy path from status bar.
➤ Vuser Log message icons.
➤ Start User Script. Indicates the start of the virtual user script.
➤ Start Iteration. Indicates the start of an iteration.
➤ End Iteration. Indicates the end of an iteration.
➤ Start/End Transaction. Indicates the start or the end of a transaction.
➤ Action. Displays the name and description of an action.
➤ Notifications. Provides action information.
➤ Errors. Indicates that the Vuser encountered a problem, but test
execution continued. Displays the error code and a description of the
error.
313
Chapter 20 • Viewing Vusers During Execution
314
Chapter 20 • Viewing Vusers During Execution
The Agent window opens at the start of the scenario. You can minimize and
restore it at any time.
315
Chapter 20 • Viewing Vusers During Execution
316
21
Secure Host Communication
317
Chapter 21 • Secure Host Communication
A host is in secure mode when it has a security key and security is enforced.
318
Chapter 21 • Secure Host Communication
Note:
Security keys Load test runs over Load test runs over Load test runs over
match secure channel secure channel non-secure channel
Security keys Load test does no Load test does not Load test runs over
do not match run run non-secure channel
319
Chapter 21 • Secure Host Communication
After initial security configuration, you can update security settings locally
or simultaneously across all the hosts in the LoadRunner / Performance
Center system from a remote location using the Host Security Manager. For
details, see “Remote Security Configuration” on page 322.
320
Chapter 21 • Secure Host Communication
3 If you selected Enforce secure communication, you must provide the host
with a security key. This security key must match the security key on other
machines with which it needs to communicate.
In the Security Key box, enter the host security key. The key must be 6 - 16
characters long.
4 Enter the key a second time for confirmation.
5 Click OK to save the security settings and close the utility.
>source ./env.csh
321
Chapter 21 • Secure Host Communication
The utility lists all the hosts in the LoadRunner / Performance Center
system, as well as the MI Listeners required to connect to the hosts that are
over a firewall, where applicable.
Using Host Security Manager, you can update the security key on all the
hosts, or update the security mode on selected hosts.
322
Chapter 21 • Secure Host Communication
➤ Performance Center users. On the Administration Site server, select Start >
Programs > Performance Center > Tools > Host Security Manager.
Host Security Manager stores this key as a master key for communicating
securely with the hosts. If the master key and security key on a particular
host do not match, Host Security Manager cannot update security settings
on that host.
323
Chapter 21 • Secure Host Communication
When you open Host Security Manager for the first time, you are prompted
for the master key.
If you do not enter the key at this point, or you will be prompted for it again
when you try to update the security settings.
324
Chapter 21 • Secure Host Communication
Last Key Update The last time the security key was updated
Key Update Status The status of the last security key update
Last Security Mode Update The last time the security mode was updated
Security Mode Update Status The status of the last security mode update
Tip: You can sort the details in ascending or descending order by clicking the
heading of the column by which you want to sort. Click the column
heading again to reverse the sort order.
Note: Every time you use Host Security Manager to update security settings,
make sure that the list of hosts is updated, that is hosts that were added to
the system must be added to the list of hosts, and those deleted, should be
deleted from the list.
325
Chapter 21 • Secure Host Communication
LoadRunner Users
To register a host with Host Security Manager you must:
Tip: To select multiple hosts, hold down the CTRL key on your keyboard
while selecting the relevant hosts.
326
Chapter 21 • Secure Host Communication
Tip: To select multiple hosts, hold down the CTRL key on your keyboard
while selecting the relevant hosts.
Note: You must provide Host Security Manager with a master security key
before you can update the security settings. See “Setting Up the Master
Security Key” on page 323.
327
Chapter 21 • Secure Host Communication
If the update was unsuccessful, see “Update Errors” on page 331, for possible
reasons.
328
Chapter 21 • Secure Host Communication
4 When Host Security Manager has finished updating all the hosts, click
Close.
Host Security Manager displays the time and status of the security key
update for each host.
Tip: To select multiple hosts, hold down the CTRL key on your keyboard
while selecting the relevant hosts.
2 Click Update Security Mode. The Update Security Mode dialog box opens,
listing the selected hosts.
3 In the Security mode box, select the security mode with which to update the
hosts. The mode can be:
➤ Non-secure. Allows non-secure communication.
➤ Secure. Enforces secure communication.
329
Chapter 21 • Secure Host Communication
4 Click Update.
Host Security Manager attempts to update the security mode on the selected
hosts. As it updates each host, it displays the update status, Updated or
Failed, before moving on to the next host.
If the update was unsuccessful, see “Update Errors” on page 331, for possible
reasons.
5 When Host Security Manager has finished updating the selected hosts, click
Close.
Host Security Manager displays the time and status of the security mode
update for each host.
330
Chapter 21 • Secure Host Communication
Update Errors
When updating security settings, if the master security key in
Host Security Manager does not match the security key of the host it is
trying to update, the update will not succeed. The following dialog box
opens:
331
Chapter 21 • Secure Host Communication
Host The host (name/IP address) on which the update operation was
performed
Tip: You can sort the details in ascending or descending order by clicking the
heading of the column by which you want to sort. Click the column
heading again to reverse the sort order.
➤ To clear the History log, in the History window click Clear All.
➤ To close the History log, in the History window click Close.
332
Chapter 21 • Secure Host Communication
333
Chapter 21 • Secure Host Communication
Troubleshooting
Verify that the load test cannot run due to a security mismatch by trying to
run the same load test with the same hosts from a local Controller.
If a Security Key Mismatch error is displayed in the error log, then the keys
do not match, and you need to align the security keys on all the machines.
Troubleshooting
When trying to run a load test over secure channels, if the security keys on
the Controller and load generator do not match the load test run fails, and
the status of the load generators changes to Resource Failure. To re-enable
the load generators, you must manually reset the status on each affected
load generator to Operational.
Troubleshooting
Click Continue to close the message window.
334
Part IV
Working with Firewalls
336
22
Working with Firewalls in LoadRunner
You can set up your LoadRunner system to run Vusers and monitor servers
over a firewall.
For example, you can specify that there is no access to any port from the
outside world, with the exception of the mail port (25), or you can specify
that there is no outside connection from any ports to the outside except
from the mail port and WEB port (80). The port settings are configured by
the system administrator.
337
Chapter 22 • Working with Firewalls in LoadRunner
338
Chapter 22 • Working with Firewalls in LoadRunner
The Controller uses a symbolic name for the agent, and provides the MI
Listener machine’s name. If there has been a connection from the agent
with the same symbolic name to this MI Listener, the connection is made
between the Controller and the agent. Once you have a connection with the
agent, you can run or monitor Vusers over a firewall.
339
Chapter 22 • Working with Firewalls in LoadRunner
➤ the agent on the load generator machine and the Controller, enabling
the Controller to run Vusers over a firewall.
➤ the agent on the Monitor Over Firewall machine and the Controller,
enabling the Controller to monitor the servers that are located over a
firewall.
340
Chapter 22 • Working with Firewalls in LoadRunner
Note: You can connect the Controller to load generators over a firewall or
Monitor Over Firewall machines without using the MI Listener and
LoadRunner agent. To do so, open port 54345 on a firewall in the load
generator/Monitor Over Firewall machine’s LAN and in the Controller’s LAN
to allow incoming and outgoing data.
341
Chapter 22 • Working with Firewalls in LoadRunner
The following flow chart provides a general outline of the steps that you
need to carry out to set up your system to use firewalls.
342
Chapter 22 • Working with Firewalls in LoadRunner
Note: You can also use the Controller machine as the MI Listener without
the need for a separate installation. When acting as the MI Listener, the
Controller machine cannot have Vusers running on it. In this case, the
Controller must be a pure Controller and not a Controller + Load
Generator.
➤ Monitor Over Firewall component. Used to monitor the servers that are
located over a firewall. You install the Monitors over Firewall component
on a dedicated machine. For installation instructions, refer to the HP
LoadRunner Installation Guide.
For information about configuring the Monitor Over Firewall machine,
see “Monitoring Over a Firewall” on page 350.
343
Chapter 22 • Working with Firewalls in LoadRunner
➤ TCP Configuration
The TCP configuration requires every LoadRunner agent machine behind
the customer’s firewall to be allowed to open a port in the firewall for
outgoing communication.
TCP Configuration
Running Vusers
Customer Server
Load Generators
with Agent
Customer Server
configuration
Controller
Internet
Customer Server
Monitoring
MI Listener
Firewall Firewall
Customer Server
Monitor Over
Firewall Machine
with Agent
configuration
Customer Server
344
Chapter 22 • Working with Firewalls in LoadRunner
➤ HTTPS Configuration
In the HTTPS configuration, only one machine (the proxy server) is
allowed to open a port in the firewall. Therefore, it is necessary to tunnel
all outgoing communications through the proxy server.
345
Chapter 22 • Working with Firewalls in LoadRunner
TCP Configuration
The LoadRunner agent attempts to establish a connection with the MI
Listener using port 443, at intervals specified in the Connection Timeout
field in the Agent Configuration dialog box. To enable this connection,
allow an outgoing connection for HTTPS service on the firewall for port 443.
The agent can then connect to the MI Listener, and the MI Listener can
connect back to the agent. From this point on, the agent listens to
commands from the MI Listener.
HTTPS Configuration
The LoadRunner agent attempts to establish a connection with the MI
Listener, using the proxy port specified in the Proxy Port field, and at
intervals specified in the Connection Timeout field in the Agent
Configuration dialog box. When the connection is established, the proxy
server connects to the MI Listener. To enable this connection, allow an
outgoing connection for HTTPS service on the firewall for port 443. The
proxy server can then connect to the MI Listener, and the MI Listener can
connect back to the agent through the proxy server. From this point on, the
agent listens to commands from the MI Listener.
346
Chapter 22 • Working with Firewalls in LoadRunner
Notes:
347
Chapter 22 • Working with Firewalls in LoadRunner
Check Client Certificates False Select True to request that the client
send an SSL certificate when
connecting, and to authenticate the
certificate.
Note: Ensure that no Web Servers are running on the MI Listener or Monitor
over Firewall machine. These servers use port 443 and will not allow the
access required by the listening and monitoring processes.
348
Chapter 22 • Working with Firewalls in LoadRunner
Important: Before you configure your system to run Vusers over the firewall,
ensure that you have completed the configuration steps described in “Initial
Configuration of the Over-Firewall System” on page 343.
349
Chapter 22 • Working with Firewalls in LoadRunner
Important: Before you configure your system to monitor your servers over a
firewall, ensure that you have completed the configuration steps described
in “Initial Configuration of the Over-Firewall System” on page 343.
You select the type of monitors to run and the server whose resources you
want to monitor, add the measurements to monitor for each server, and
specify the frequency with which you want the monitored measurements to
be reported.
For detailed information about how to use the Monitor Configuration tool,
see Chapter 23, “Configuring Monitors Over a Firewall.”
350
Chapter 22 • Working with Firewalls in LoadRunner
351
Chapter 22 • Working with Firewalls in LoadRunner
352
Chapter 22 • Working with Firewalls in LoadRunner
353
Chapter 22 • Working with Firewalls in LoadRunner
Enter the setting and continue according to the menu instructions. Set each
option according to the “Agent Configuration Settings” on page 355.
6 Restart the agent for the configuration changes to take effect.
Note: When the LoadRunner agent is configured to run over a firewall, and
the agent is connected to the MI Listener, a file called
<local_machine_key>_connected_to_MI_Listener is created in the temporary
directory of the LoadRunner agent machine. The file is removed when the
LoadRunner agent disconnects from the MI Listener.
For more information about running the LoadRunner agent, see “UNIX
Shell” on page 506.
354
Chapter 22 • Working with Firewalls in LoadRunner
355
Chapter 22 • Working with Firewalls in LoadRunner
356
Chapter 22 • Working with Firewalls in LoadRunner
357
Chapter 22 • Working with Firewalls in LoadRunner
3 Select the Load Generator, and click Details to display the Load Generator
Information.
4 In the Security tab, enter the MI Listener machine's name in the MI Listener
field. This is the same name that you entered in the MI Listener Name
setting of the Agent Configuration dialog box. In this example, the MI
Listener is bunji.
5 In the Firewall Settings section, select one of the following options:
➤ Enable running Vusers over Firewall. To run Vusers over the firewall.
➤ Enable Monitoring over Firewall. To monitor Vusers over the firewall.
6 Click OK to return to the Load Generators dialog box.
7 Select the load generator and click Connect.
Note: Remember that you cannot change the temporary directory on the
host running or monitoring Vusers over the firewall.
358
Chapter 22 • Working with Firewalls in LoadRunner
Checking Connectivity
To run Vusers or monitor servers over a firewall, you must be able to
establish a connection between the LoadRunner agent, MI Listener, and the
Controller machine.
Check Solution
To check that the Firewall There should be a traffic light on the right
service was activated on the side of the LoadRunner Agent icon on the
agent machine: machine running/ monitoring Vusers over a
firewall. If there is no traffic light, this
indicates that the ‘FirewallServiceActive=1’ is
not set in the [FireWall] section of the Agent
Settings. See “Configuring LoadRunner
Agents Over the Firewall” on page 351.
To check that port 443 is open: On the agent machine, open a Command
Prompt window, and type the following:
telnet <MI_Listener_IP>443.
For example: telnet 111.111.111.1111 443.
If port 443 is open, a new Telnet window will
open. If port 443 is not open, contact your
network administrator.
359
Chapter 22 • Working with Firewalls in LoadRunner
Check Solution
To check connectivity between If there is a red light on the right side of the
the agent and the MI Listener, LoadRunner Agent icon when running the
when running the LoadRunner LoadRunner agent as a service, do the
agent as a service: following:
➤ Check that port 443 is open. See the
troubleshooting tip above.
➤ Check that the Agent Settings and Agent
Configuration are correctly set. See
“Configuring LoadRunner Agents Over the
Firewall” on page 351.
➤ Run the agent as a Process. Launch <
Installation>\Launch_service\bin\magent
proc.exe. If this works, this indicates an
authentication issue with the LoadRunner
Agent Service. Browse to the Service >
LoadRunner Agent Service, and change the
properties of this service to System User
Account or provide the user name and
password of someone who has
administrative privileges on this machine.
360
Chapter 22 • Working with Firewalls in LoadRunner
Check Solution
To check connectivity between ➤ Check that you entered the servers that
the agent and the Controller, you want to monitor in the Monitor
when monitoring over a Configuration dialog box. (See
firewall “Configuring Server Monitor Properties”
on page 364).
➤ Start the LoadRunner Agent Process on the
Monitor Over Firewall machine. (See
“Configuring LoadRunner Agents Over the
Firewall” on page 351).
➤ On the Controller, enter the name of the
Monitor Over Firewall machine in the
Load Generators dialog box, and click
Connect. After about a minute, data should
start streaming in from the Monitor Over
Firewall machine through the MI Listener
to the Controller. (See “Monitoring Over a
Firewall” on page 350).
➤ If no data arrives at the Controller, try
connecting the Controller to the MI
Listener as if the Listener were used as a
load generator. This will help identify the
cause of the problem. Examine the log file
on the Monitor Over Firewall machine by
right-clicking the LoadRunner Agent icon.
There should be no error messages.
➤ Start the MI Listener, and then manually
start the LoadRunner Agent Process by
running <
installation>\launch_service\bin\magnetp
roc.exe on the Monitor Over Firewall
machine. Allow the Monitor Over Firewall
machine sufficient time to connect to the
MI Listener, then connect the Controller to
the Monitor Over Firewall machine. If the
LoadRunner Agent Process crashes, either
restart the agent or reboot the Monitor
Over Firewall machine.
361
Chapter 22 • Working with Firewalls in LoadRunner
362
23
Configuring Monitors Over a Firewall
To monitor servers over a firewall, you need to configure the Monitor Over
Firewall machine. On the Monitor Over Firewall machine, you use the
Server Monitor configuration tool to select which servers to monitor and to
define specific measurements that LoadRunner collects for each monitored
server.
Important: Before you configure your system to monitor your servers over a
firewall, ensure that you have completed the configuration steps described
in “Initial Configuration of the Over-Firewall System” on page 343.
After you have set up your LoadRunner system to work with firewalls, you
need to configure the monitor settings on the Monitor Over Firewall
machine.
363
Chapter 23 • Configuring Monitors Over a Firewall
You use the Server Monitor configuration tool to select which servers to
monitor and to define specific measurements that LoadRunner collects for
each monitored server. For more information, see “Configuring Server
Monitor Properties” below.
You configure the server monitor properties from the Monitor Over Firewall
machine, using the Monitor Configuration dialog box. You can select the
type of monitors to run and the server whose resources you want to
monitor, add the measurements to monitor for each server, and specify the
frequency with which you want the monitored measurements to be
reported.
364
Chapter 23 • Configuring Monitors Over a Firewall
365
Chapter 23 • Configuring Monitors Over a Firewall
2 Click the Add Server button. The New Monitored Server Properties dialog
box opens.
3 In the Monitored Server box, type the name or IP address of the server
whose resources you want to monitor.
366
Chapter 23 • Configuring Monitors Over a Firewall
4 From the Available Monitors list, select the monitors appropriate for the
server being monitored.
Note: Data can only be viewed for the monitors that are enabled with your
LoadRunner license key. To preview your license key information, select
Start > Programs > LoadRunner. HP LoadRunner opens. Click the License
button to display the LoadRunner license information.
5 Click OK to close the New Monitored Server Properties dialog box. The
Monitored Servers list is displayed in the Monitor Configuration dialog box.
367
Chapter 23 • Configuring Monitors Over a Firewall
After you configure one or more server machines to monitor, you add
measurements to monitor for each server. If LoadRunner added default
measurements, you can edit them as required.
368
Chapter 23 • Configuring Monitors Over a Firewall
369
Chapter 23 • Configuring Monitors Over a Firewall
2 In the Monitored Server box, type the name or IP address of the clone server
you want to create.
3 The Available Monitors list displays the monitors that were selected for the
server being cloned. Select additional appropriate monitors for the clone
server.
4 Click OK to close the Clone Monitored Server Properties dialog box. The
cloned server is displayed in the Monitored Servers list.
5 Click Apply to save your settings.
370
Chapter 23 • Configuring Monitors Over a Firewall
In the Monitor the network delay from machine section, enter the server
name or IP address of the source machine according to the following format:
where source machine local key is the Local Machine Key that you chose
when configuring the LoadRunner agent on the source machine. (See
“Agent Configuration Settings” on page 355.)
371
Chapter 23 • Configuring Monitors Over a Firewall
372
Part V
Working with Diagnostics
374
24
LoadRunner Diagnostics Modules
375
Chapter 24 • LoadRunner Diagnostics Modules
376
Chapter 24 • LoadRunner Diagnostics Modules
377
Chapter 24 • LoadRunner Diagnostics Modules
➤ SAP Diagnostics. SAP Diagnostics enables you to pinpoint the root cause of a
certain problem (i.e. DBA, Network, WAS, Application, OS/HW) quickly and
easily, and engage with the relevant expert only, without having to present
the problem to a whole team of people. For more information, see
Chapter 28, “Configuring SAP Diagnostics.”
378
Chapter 24 • LoadRunner Diagnostics Modules
Note: For Siebel DB Diagnostics, it may take a long time to copy the files
from the application server to the Mediator, and then from the Mediator to
the results directory. During the first copying stage, the Summary Data
Processing window is displayed. To minimize copying time in the second
stage (if you are not working over a firewall), we recommend using localhost
as the Mediator machine. This reduces the time it takes to copy the
Siebel DB Diagnostics files to the results directory, since the diagnostics files
are already on the Controller machine.
379
Chapter 24 • LoadRunner Diagnostics Modules
380
Chapter 24 • LoadRunner Diagnostics Modules
When working on a remote WINDOWS server, the Mediator first tries to add
a connection to that machine with the details supplied by the user. This
configuration should give administrator permissions to the remote
machine.
To solve this conflict you may select one of the following solutions:
net use
381
Chapter 24 • LoadRunner Diagnostics Modules
To remove a connection, remove the mount, and, from the Command line,
run the following command:
➤ You may use your own created connection to the log directory by supplying
the UNC-path to the log directory and marking the OS as WINDOWS.
When the Mediator runs, it will not try to create a connection, but rely on
the given UNC-path instead.
382
Chapter 24 • LoadRunner Diagnostics Modules
If you cannot run this command from the DOS command prompt either,
then contact your UNIX administrator. For more information about RSH
commands, see “UNIX Shell” on page 506.
➤ No output should be generated after executing the RSH command. Due
to a bug in the RCP UNIX command, you should not generate output
from the .login, .profile, and .cshrc files (for example, by echo, or in any
other way, including commands that generate output indirectly, such as
biff). Where an existing user generates output in the RSH step that
cannot be deleted, you should create a new user that does not generate
output, and who has permissions to run RSH and RCP commands on the
server machine.
The Mediator uses the 'PuTTY' suite which is free implementation of SSH.
You can find the following PuTTY tools in the bin directory of the
installation:
Using the Import command from the Conversions menu of PuTTYgen, you
can load private key in OpenSSH's format and ssh.com's format and save it
back out as a PuTTY-format key. For more information, please see the PuTTY
User Manual which resides in the bin directory of the installation.
383
Chapter 24 • LoadRunner Diagnostics Modules
Before using the secured shell through the Mediator, please verify the
following:
384
Chapter 24 • LoadRunner Diagnostics Modules
385
Chapter 24 • LoadRunner Diagnostics Modules
4 To enable and configure online and offline diagnostics, click the Configure
button next to J2EE/.NET Diagnostics (Max. Vuser Sampling: 100%).
To configure J2EE/.NET Diagnostics, see Chapter 29, “Configuring
J2EE/.NET Diagnostics.”
386
Chapter 24 • LoadRunner Diagnostics Modules
387
Chapter 24 • LoadRunner Diagnostics Modules
➤ Online and Offline Diagnostics. Click the Configure button to enable and
configure the online and offline diagnostics module as follows:
➤ J2EE/.NET Diagnostics. Provides online and offline J2EE & .NET
Diagnostic graphs. In the online diagnostics, you can view the entire
chain of activity on the server side of the system. You can break down
J2EE/.NET layers into components and methods to enable you to
pinpoint the exact location where time is consumed. You can also view
the transaction chain of calls and call stack statistics to track the
percentage of time spent for each part of the transaction. The maximum
percentage of Vusers for which diagnostics data can be collected is 100%.
After a scenario run, you can use the J2EE & .NET Diagnostics graphs to
analyze server performance and generate reports. For more information,
refer to the HP Diagnostics User Guide.
You can use the Analysis diagnostics graphs and reports to view the
performance data and drill down to pinpoint problem areas in any layer of
the application.
388
25
Configuring Siebel Diagnostics
Siebel Diagnostics enable you to break down Siebel transactions into layers,
areas, sub-areas, servers, and scripts. You can also view the transaction chain
of calls and call stack statistics to track the percentage of time spent for each
part of the transaction. Siebel-Web Vusers support Siebel Diagnostics.
389
Chapter 25 • Configuring Siebel Diagnostics
SIEBEL_SarmMaxMemory= <bytes>
SIEBEL_SarmMaxFileSize = <bytes>
390
Chapter 25 • Configuring Siebel Diagnostics
Notes:
where:
This command generates a list of all the Siebel application servers and their
IDs. Keep a record of the server IDs, since this information is required in the
Siebel Server Configuration dialog box. For more information, see step 9 of
“Setting Up the Siebel Diagnostics Module” on page 394.
391
Chapter 25 • Configuring Siebel Diagnostics
To enable the NBT protocol between the client (over firewall machine) and
the file server, use the following port configuration:
Note: CIFS over TCP 445 (direct SMB over TCP/IP) is optional with Windows
2000 and above (since it is a more secure way of communicating with the
file server). To enable CIFS over TCP/IP, you must disable the NetBIOS over
TCP/IP protocol using the operating system configuration.
392
Chapter 25 • Configuring Siebel Diagnostics
➤ sarmanalyzer.exe ➤ sslcshar.dll
➤ sslcver.dll ➤ sslcosa.dll
➤ sslcsym.dll
➤ sarmanalyzer.exe ➤ sslcosa.dll
➤ libarm.dll ➤ sslcosd.dll
➤ msvcp70.dll ➤ sslcrsa.dll
➤ msvcr70.dll ➤ sslcscr.dll
➤ sslcacln.dll ➤ sslcshar.dll
➤ sslccore.dll ➤ sslcsrd.dll
➤ sslcevt.dll ➤ sslcsym.dll
➤ sslcos.dll ➤ sslcver.dll
393
Chapter 25 • Configuring Siebel Diagnostics
Notes:
➤ The settings that you configure are per scenario. All scripts in the
scenario will run under the same diagnostics configuration.
➤ To ensure that valid diagnostics data is generated, manually define the
transactions in the Vuser script rather than using automatic transactions.
Make sure to disable the following options in the Run-Time Settings’
General : Miscellaneous node: Define each action as a transaction and
Define each step as a transaction.
394
Chapter 25 • Configuring Siebel Diagnostics
3 In the Offline Diagnostics section, click the Configure button next to Siebel
Diagnostics (Max. Vuser Sampling: 10%).
The Siebel Configuration dialog box opens.
4 Select Enable Siebel Diagnostics. This enables all the other fields in the
dialog box.
395
Chapter 25 • Configuring Siebel Diagnostics
8 Click Add to add Siebel servers. The Siebel Server Configuration dialog box
opens.
396
Chapter 25 • Configuring Siebel Diagnostics
➤ Servers.
➤ Server Name. The name of the Siebel server.
➤ Server ID. The Siebel server ID (for Siebel application servers only).
➤ Platform. The platform of the Siebel server.
➤ Log Directory. The Siebel server directory where Siebel log files (*.SARM)
are written.
➤ Add. Opens the Siebel Server Configuration dialog box enabling you to
enter Siebel server information.
➤ Delete. Deletes a server from the server list.
➤ Details. Displays information for a selected server.
397
Chapter 25 • Configuring Siebel Diagnostics
398
26
Configuring Siebel DB Diagnostics
To avoid session ID conflicts, make sure that the Vusers log off from the
Siebel system at the end of each session.
399
Chapter 26 • Configuring Siebel DB Diagnostics
Synchronizing Clocks
Synchronizing machine clocks before collecting diagnostics data ensures
that the correlation of SQLs to transactions is correct.
Ensure that all the machines’ clocks in the Siebel system are synchronized.
On Unix Siebel servers you can synchronize the clocks in one of the
following ways:
➤ Use the date command on the UNIX Siebel Gateway server to change the
time manually, so it will be synchronized with the Load Generator’s clock.
➤ Change the time on the load generator so that it will be synchronized with
the UNIX Siebel Gateway server.
➤ Configure the time difference in Analysis. For more information see the
chapter about Siebel DB Diagnostics Graphs in the HP LoadRunner Analysis
User Guide.
400
Chapter 26 • Configuring Siebel DB Diagnostics
401
Chapter 26 • Configuring Siebel DB Diagnostics
Note: Before running a load test, delete log files from all servers involved in
the load test.
Notes:
➤ The settings that you configure are per scenario. All scripts in the
scenario will run under the same diagnostics configuration.
➤ To ensure that valid diagnostics data is generated, manually define the
transactions in the Vuser script rather than using automatic transactions.
Make sure to disable the following options in the Run-Time Settings’
General : Miscellaneous node: Define each action as a transaction and
Define each step as a transaction.
402
Chapter 26 • Configuring Siebel DB Diagnostics
4 Select Enable Siebel DB Diagnostics. This enables all the other fields in the
dialog box.
403
Chapter 26 • Configuring Siebel DB Diagnostics
7 To test the connection between the Controller and the Mediator, click Test
Connection. The Siebel DB Diagnostics module attempts to connect to the
Mediator.
If the connection is not successful, see the Output window for more
information. You can view the Output window by clicking the Errors link in
the status bar.
8 To add Siebel DB servers, click Add. The Siebel DB Server Configuration
dialog box opens.
404
Chapter 26 • Configuring Siebel DB Diagnostics
If you are using a Mediator that is over a firewall, enter the local machine
key of the Mediator instead of the Mediator machine name.
➤ Servers.
➤ Server. The name of the Siebel server.
➤ Platform. The platform of the Siebel server.
➤ Log Directory. The directory where Siebel log files are written.
405
Chapter 26 • Configuring Siebel DB Diagnostics
➤ Add. Opens the Siebel DB Server Configuration dialog box enabling you to
enter Siebel server information.
➤ Delete. Deletes a server from the server list.
➤ Details. Displays information for a selected server.
406
27
Configuring Oracle 11i Diagnostics
407
Chapter 27 • Configuring Oracle 11i Diagnostics
4 In the Display section, select Site and Profiles with No Values, enter
%Diagnostics% in the Profiles field, and then click Find.
5 If any diagnostics profiles are disabled (denoted by a “Yes” in the Site
column), change the setting to “No”.
6 Save your settings.
On the Oracle server, run the following command in the SQL editor:
1 On the Oracle server, run the following command in the SQL editor:
Alter system set max_dump_file_size=2048000;
2 Edit the init*.ora file on $ORACLE_HOME\admin\<sid>\pfile\init<sid>.ora.
Find the line of the parameter, change its value, and then save the file.
Note: Verify that you have enough disk space on the database server since
these trace files can be very large.
408
Chapter 27 • Configuring Oracle 11i Diagnostics
409
Chapter 27 • Configuring Oracle 11i Diagnostics
Notes:
➤ If the Oracle 11i trace cannot be enabled using the built-in mechanism,
you can enable it manually in the Vuser script using the
nca_set_custom_dbtrace and nca_set_dbtrace_file_index functions. This
may occur if you are using a custom application that does not have a
standard UI.
➤ Before running a load test, delete trace log files from all servers involved
in the load test.
➤ No real or other virtual users should work on the Oracle server while the
diagnostics module is running, as this may affect diagnostics results.
Notes:
➤ The settings that you configure are per scenario. All scripts in the
scenario will run under the same diagnostics configuration.
➤ To ensure that valid diagnostics data is generated, manually define the
transactions in the Vuser script rather than using automatic transactions.
Make sure to disable the following options in the Run-Time Settings’
General : Miscellaneous node: Define each action as a transaction and
Define each step as a transaction.
410
Chapter 27 • Configuring Oracle 11i Diagnostics
4 Select Enable Oracle 11i Diagnostics. This enables all the other fields in the
dialog box.
411
Chapter 27 • Configuring Oracle 11i Diagnostics
If the connection is not successful, see the Output window for more
information. You can view the Output window by clicking the Errors link in
the status bar.
8 Click Add to add Oracle servers. The Oracle 11i Server Configuration dialog
box opens.
412
Chapter 27 • Configuring Oracle 11i Diagnostics
➤ Enable Oracle 11i Diagnostics. Select this option to enable Oracle 11i
Diagnostics and to configure the Oracle 11i Diagnostics settings.
➤ Mediator.
➤ Name. Enter the name of the Mediator machine used to collect and
process the Oracle 11i diagnostics data. Only one mediator machine is
supported for each diagnostics module.
Note: If you are using a mediator that is over a firewall, enter the local
machine key of the Mediator instead of the Mediator machine name.
➤ Servers
➤ Server. The name of the Oracle server.
➤ Platform. The platform of the Oracle server.
➤ Log Directory. The directory where Oracle trace files (*.trc) are written.
➤ Add. Opens the Oracle 11i Server Configuration dialog box where you enter
Oracle server information.
➤ Delete. Deletes a server from the server list.
➤ Details. Displays information for a selected server.
413
Chapter 27 • Configuring Oracle 11i Diagnostics
414
28
Configuring SAP Diagnostics
SAP Diagnostics enables you to pinpoint the root cause of a certain problem
(i.e. DBA, Network, WAS, Application, OS/HW) quickly and easily. Once you
have specific information, you can consult with the relevant expert only,
without having to present the problem to a whole team of people.
415
Chapter 28 • Configuring SAP Diagnostics
The Mediator is responsible for collecting diagnostics data from the server
during a scenario run.
Vuser Coloring
SAP Diagnostics works for replay of the SAPGUI protocol. The user sets the
percentage of colored Vusers in the Configuration dialog (up to 100%
allowed). Coloring of SAPGUI users creates no overhead on the Application
server.
416
Chapter 28 • Configuring SAP Diagnostics
Notes:
➤ The settings that you configure are per scenario. All scripts in the
scenario will run under the same diagnostics configuration.
➤ To ensure that valid diagnostics data is generated, manually define the
transactions in the Vuser script rather than using automatic transactions.
Make sure to disable the following options in the Run-Time Settings’
General : Miscellaneous node: Define each action as a transaction and
Define each step as a transaction.
417
Chapter 28 • Configuring SAP Diagnostics
3 In the Offline Diagnostics section, click the Configure button next to SAP
Diagnostics (Max. Vuser Sampling: 100%). The SAP Configuration dialog
box opens.
4 Select Enable SAP Diagnostics. This enables all the other fields in the dialog
box.
5 Enter the Mediator information as described in “Understanding the SAP
Configuration Dialog Box” on page 419.
6 If you are monitoring over a firewall, select Enable Firewall and enter the
name or IP address of the MI Listener machine. For more information, see
Chapter 22, “Working with Firewalls in LoadRunner.”
7 Enter the SAP and Client server properties in the Properties section.
8 Click Validate to ensure that the server is connected properly.
When you click Validate, the Controller produces a report of all the servers
that are available for diagnostics through the Server Host.
9 Click OK to close the SAP Configuration dialog box.
In the Diagnostics Distribution dialog box, a check mark icon appears next
to SAP Diagnostics (Max. Vuser Sampling: 100%) , indicating that it is
enabled.
10 Click OK to close the Diagnostics Distribution dialog box.
418
Chapter 28 • Configuring SAP Diagnostics
➤ Enable SAP Diagnostics. Select this option to enable SAP Diagnostics and to
configure the SAP Diagnostics settings.
➤ Mediator.
➤ Name. Enter the name of the Mediator machine used to collect and
process the SAP diagnostics data. Only one mediator machine is
supported for each diagnostics module.
Note: If you are using a mediator that is over a firewall, enter the local
machine key of the Mediator instead of the Mediator machine name.
419
Chapter 28 • Configuring SAP Diagnostics
420
29
Configuring J2EE/.NET Diagnostics
Before you can access the Diagnostics UI from within LoadRunner, you need
to provide LoadRunner with the information it needs to communicate with
the Diagnostics components.
You must update this information if you want to integrate with a different
Diagnostics Server in Commander mode, or if you change the port it is
using.
421
Chapter 29 • Configuring J2EE/.NET Diagnostics
➤ Login. Enter the user name with which you log on to Diagnostics. The
default username is admin.
➤ Password. Enter the password with which you log on to Diagnostics. The
default password is admin.
Note: The user name that you specify should have view, change, and
execute privileges. For more information about user privileges, see the HP
Diagnostics Installation and Configuration Guide.
422
Chapter 29 • Configuring J2EE/.NET Diagnostics
4 Click Test to verify that you entered the correct information for the
Diagnostics Server in Commander mode and that there is connectivity
between the Diagnostics Server in Commander mode and LoadRunner.
5 Click OK to complete the configuration process.
Note: If you have saved a scenario with the Diagnostics settings already
configured, you do not need to reconfigure the Diagnostics parameters each
time you run that scenario.
423
Chapter 29 • Configuring J2EE/.NET Diagnostics
424
Chapter 29 • Configuring J2EE/.NET Diagnostics
425
Chapter 29 • Configuring J2EE/.NET Diagnostics
Note: During the load test scenario, you can navigate to other views in HP
Diagnostics. If you move to another tab and then return to the Diagnostics
for J2EE/.NET tab, the last screen that you were viewing is displayed.
426
Chapter 29 • Configuring J2EE/.NET Diagnostics
Right-click the line on the graph representing the transaction from which
you want to drill down to HP Diagnostics data and select Show J2EE/.NET
server side. Alternatively you can right-click the relevant transaction in the
graph legend, and select Show J2EE/.NET server side.
427
Chapter 29 • Configuring J2EE/.NET Diagnostics
428
Part VI
Monitoring a Scenario
430
30
Online Monitoring
You can monitor scenario execution using the LoadRunner online monitors.
This chapter describes the online monitor user interface. The specific
monitors are discussed in the HP LoadRunner Monitor Reference.
431
Chapter 30 • Online Monitoring
432
Chapter 30 • Online Monitoring
➤ COM+ ➤ SAPGUI
➤ Citrix ➤ Siebel Server Manager
➤ DB2 ➤ Siebel Web Server
➤ IBM WebSphere MQ ➤ SiteScope
➤ iPlanet (NAS) ➤ Tuxedo
➤ J2EE ➤ UNIX
➤ J2EE & .NET Diagnostics ➤ WebSphere Application
➤ Network Delay Server
➤ Oracle
➤ PeopleSoft (Tuxedo)
➤ SAP CCMS
➤ SAP Portal
433
Chapter 30 • Online Monitoring
Monitor Types
The online monitors are divided into the following categories:
434
Chapter 30 • Online Monitoring
435
Chapter 30 • Online Monitoring
All of the monitors allow you to view a summary of the collected data at the
conclusion of the scenario. Using Analysis, you can generate a graph for any
of the monitors. For more information, see the HP LoadRunner Analysis User
Guide.
For a detailed list of LoadRunner’s monitors, see the HP Software Web site
http://www.mercury.com/us/products/performance-center/loadrunner/monitors/.
436
Chapter 30 • Online Monitoring
2 Some monitors are native LoadRunner monitors (by default), but can also
monitor through the SiteScope monitor engine.
If you want to monitor a server through the SiteScope monitor engine, click
Advanced. The Choose Monitor Engine dialog box opens.
Select SiteScope, and click OK.
For more information, see the relevant monitoring section.
437
Chapter 30 • Online Monitoring
3 In the Monitored Server Machines section, click Add. The Add Machine
dialog box opens.
For monitors that use SiteScope to monitor the server, the SiteScope Server
Information section is also displayed in the Add Machine dialog box:
4 Enter the server name or IP address of the machine you want to monitor,
and select the platform on which the machine runs.
For Sitescope monitors, enter the name and port number of the SiteScope
server, and specify whether you are using a Secure HTTP connection. To use
an account, fill in the relevant account information. For more information,
see “Understanding the Add Machine Dialog Box” on page 443.
Click OK.
438
Chapter 30 • Online Monitoring
439
Chapter 30 • Online Monitoring
5 Select the server machine that you want to monitor, and under the Resource
Measurements on: <machine> box, click Add.
The monitored server’s Add Measurements dialog box opens, displaying the
available measurements.
Note:
➤ The Add Measurements dialog box is different for each monitor. See the
relevant monitoring section for specific add measurement instructions.
➤ When you add new SiteScope monitors, you need to configure the
remote machine. For details, see “Configuring the Remote Machine for
SiteScope Monitors” on page 444.
➤ Some monitors need to be configured before adding the measurements.
See the relevant monitoring section for more specific configuration
instructions.
440
Chapter 30 • Online Monitoring
441
Chapter 30 • Online Monitoring
Note: In some cases, you can (or must) specify the server you want to
monitor using other formats. See the relevant monitoring section in the HP
LoadRunner Monitor Reference for more information.
Note: This button is enabled only for those monitors that can be either a
SiteScope monitor or a native LoadRunner monitor.
442
Chapter 30 • Online Monitoring
443
Chapter 30 • Online Monitoring
444
Chapter 30 • Online Monitoring
➤ NT Server Address. The IP address or UNC style name of the Windows server
you wish to monitor. An IP hostname will also work provided that the
SiteScope server has a way to resolve this common name into an IP address
(for example, by the use of a hosts file, DNS, or WINS/DNS integration).
➤ Connection Method. SiteScope can use one of two connection types for
monitoring remote Windows server resources. These are:
445
Chapter 30 • Online Monitoring
446
Chapter 30 • Online Monitoring
Note: This setting does not affect the running of tests for a remote. Tests will
always create a new connection.
447
Chapter 30 • Online Monitoring
➤ Server Address. Displays the IP address or host name of the server that you
entered in the Add Machine dialog box.
➤ OS. Select the operating system running on the remote server. The following
versions of UNIX are supported:
AIX OPENSERVER
FreeBSD SCO
➤ Connection Method. Select the method for connecting to the server. The
supported methods are:
➤ Telnet. Log in to the remote server using Telnet.
➤ SSH. Log in to the remote server using the SSH protocol. This may require
additional software and setup depending on the version of UNIX you are
working with.
➤ Rlogin. Log in to the remote server using the Rlogin protocol.
➤ HTTP. Connect to an HTTP server on the remote server and run the
command via a CGI. For this method, the Login and Password are
optional and are used for authorizing the log on to the remote machine,
if required.
➤ Login. The login for the remote server.
➤ Password. Enter the password for the remote server.
➤ Title. Enter a name by which the remote machine should be known. This
name will appear in the drop-down list in monitors that can connect to this
server.
448
Chapter 30 • Online Monitoring
➤ The remote shell may not have the correct path set for SiteScope scripts
to run. The following command will add the directory /usr/local/bin into
the PATH of the current shell on the remote machine:
export PATH=$PATH:/usr/local/sbin
➤ The remote shell may not be initializing the pseudo terminal correctly.
Enter the following command to increase the terminal width to 1024
characters:
stty cols 1024;${SHELL}
Note: Commands after a shell invocation will not be executed.
449
Chapter 30 • Online Monitoring
➤ There have been cases where the remote Telnet Server does not echo back
the command line properly. This may cause strange behavior for
monitors that rely on this behavior.
Enter the following command to force the remote terminal to echo:
stty echo
➤ Certain UNIX shells have been known to behave erratically with
SiteScope. This includes bash, ksh, and csh. Enter the following
command to change the shell to sh for the SiteScope connection:
/bin/sh
➤ Trace. Select this option to trace messages to and from the remote server in
the RunMonitor.log file.
➤ SSH Connection Method. Select the method to use to connect to the remote
server.
➤ Internal Java Libraries. Connect using the Java SSH client integrated with
SiteScope.
➤ Plink. Connect using an external SSH client. On Windows, SiteScope
ships with Plink.
➤ Disable Connection Caching. Select this to disable SSH connection caching.
➤ Connection Limit. Enter the maximum number of connections for this
remote machine.
➤ SSH Authentication Method. Select the method to use to authenticate to the
remote server (for SSH connections only).
➤ Password. Authenticate using a password.
➤ Keyfile. Authenticate using public/private key authentication. When this
option is selected, SiteScope uses the private key in the file.
SiteScope/groups/identity to authenticate. The corresponding public key
must be listed in the authorized_keys file on the remote host.
➤ Connection Limit. Enter the maximum number of connections for this
remote machine.
➤ SSH Version 2 Only. Select this option to force SSH to only use SSH protocol
version 2. This option is only supported when using the internal Java
libraries connection method.
450
Chapter 30 • Online Monitoring
451
Chapter 30 • Online Monitoring
452
Chapter 30 • Online Monitoring
4 If the graph tree is not displayed, select View > Show Available Graphs. Click
the "+" in the left pane to expand the graph tree. To hide the graph tree view,
select View > Hide Available Graphs.
5 Select a graph from the tree and drag it into the right pane. You can also
drag graphs between panes.
Note: The Transaction Monitor graphs will not contain any data unless
transactions are being executed. In addition, the other graphs will not
contain any data unless you set up a list of resources to monitor before
running your scenario.
453
Chapter 30 • Online Monitoring
To open a new graph using the Open a New Graph dialog box:
1 Select Monitors > Online Graphs > Open a New Graph, or right-click a graph
and select Open a New Graph. The Open a New Graph dialog box opens.
2 Click the "+" in the left pane to expand the graph tree, and select a graph.
You can view a description of the graph in the Graph Description box.
3 Click Open Graph, or drag the selected graph into the right pane of the Run
view. The graph appears in the graph view area.
454
Chapter 30 • Online Monitoring
➤ Select a graph. Click the "+" to the left of each category to expand the tree
view. Select a graph.
➤ Display only graphs containing data. Select this option to view graphs that
contain data only. To view the entire list of Analysis graphs, clear this
option.
➤ Graph description. Displays the selected graph's description.
➤ Open Graph. Opens the selected graph and displays it in the graph tree
view.
455
Chapter 30 • Online Monitoring
When you save a scenario, the online monitor configuration settings are
saved as well.
456
Chapter 30 • Online Monitoring
Note: You cannot modify these settings during scenario execution; you
must stop the scenario before disabling the monitor or changing its
frequency.
457
Chapter 30 • Online Monitoring
➤ Transaction Data. Configures the behavior of data for the Transaction, Data
Point, and Web Resource online graphs.
➤ Enable Transaction Monitor. Enables the online Vuser Transaction
monitor to begin monitoring transactions at the start of a scenario.
➤ Frequency. Select the frequency, in seconds, at which the online monitor
samples the data to produce the Transaction, Data Point, and Web
Resource online graphs. The default is 5 seconds. For a small scenario, it
is recommended that you use a frequency of 1. For a large scenario, it is
recommended that you use a frequency of 3-5. The higher the frequency,
the less network traffic there will be. The data is averaged for the
frequency period defined, and only one value is sent to the Controller.
For information on enabling and disabling the Transaction monitor and
Web Page Diagnostics, see the chapter “Run-Time and Transaction
Monitoring” in the HP LoadRunner Monitor Reference.
➤ Server Resource Monitors. Configures the behavior of the Server Resource
monitors.
➤ Data Sampling Rate. The sampling rate is the period of time (in seconds)
between consecutive samples. Enter the rate at which LoadRunner
samples the scenario for monitoring data. By default, the online monitor
samples the data at intervals of three seconds. If you increase the
sampling rate, the data is monitored less frequently. This setting applies
to all graphs. To set a sampling rate for a specific graph, see “Configuring
Graph Properties” on page 463.
458
Chapter 30 • Online Monitoring
Note: The data sampling rate you set is applied to all server monitors that
you subsequently activate. It is not applied to server monitors that have
already been activated. To apply the new data sampling rate to activated
server monitors, save your scenario and reopen it.
459
Chapter 30 • Online Monitoring
460
31
Configuring Online Graphs
You can view the data collected by the monitors using the LoadRunner
online monitor graphs.
461
Chapter 31 • Configuring Online Graphs
462
Chapter 31 • Configuring Online Graphs
➤ Refresh Rate
➤ Time
➤ Graph Time
➤ Display Type
➤ Bar Values Type
➤ Y-Axis Scale
➤ Network Delay View
463
Chapter 31 • Configuring Online Graphs
Note: These settings can be set globally—to apply to all graphs—or per
graph.
2 Enter the desired refresh rate—the time between graph updates—in the
Refresh Rate box.
3 Select a style for the x-axis from the Time box.
464
Chapter 31 • Configuring Online Graphs
4 Select a value from the Graph Time box. The graph time is the time in
seconds displayed by the x-axis.
5 Select a graph style from the Display Type box.
6 If the selected display type is Bar, select a value from the Bar Values Type
box. This determines the type of value that will be displayed in the bar
graph. You can select between Average, Last Value, Minimum, and
Maximum.
7 Select a maximum or minimum value for the y-axis, or select Automatic to
view graphs using the default y-axis scale.
8 To apply the dialog box settings to all graphs, select Apply to all graphs.
9 For the Network Delay Time graph, you can select the following options:
➤ SubPaths. Displays the delay measurements from the source machine to
each of the nodes along the network path.
➤ DNS name. Displays the DNS names of the measurements in the legend.
10 Click OK to save your settings and close the Graph Configuration dialog
box.
➤ Refresh Rate. The interval at which the graph is refreshed with new data. By
default, the graph is refreshed every five seconds. If you increase the refresh
rate, the data is refreshed less frequently.
Time: You can specify how the graph displays the x-axis time.
➤ Don’t Show. Instructs LoadRunner not to display values for the x-axis.
➤ Clock Time. Displays the absolute time, based on the system clock.
465
Chapter 31 • Configuring Online Graphs
In the following example, the graph is shown with the Don’t Show and
Clock Time options:
➤ Graph Time. Indicate the scale for a graph’s x-axis when it is time-based. A
graph can show 60 to 3600 seconds of activity. To see the graph in greater
detail, decrease the graph time. To view the performance over a longer
period of time, increase the graph time. The available graph times are:
Whole Scenario, 60, 180, 600, and 3600 seconds.
➤ Display Type. Specify whether LoadRunner displays a graph as a line graph
or a bar graph. By default, each graph is displayed as a line graph.
Note: For the Network Delay graph, if you select View Segments, you can
view the network segments of the graph as an area graph or a pie graph.
➤ Bar Values Type. Select a value from the Bar Values Type box (if the selected
display type is Bar). This determines the type of value that will be displayed
in the bar graph.
466
Chapter 31 • Configuring Online Graphs
➤ Y-Axis Scale. Instruct LoadRunner to display graphs using the default y-axis
scale, or you specify a different y-axis scale. Click Automatic if you want
LoadRunner to use the default y-axis values. Specify a maximum or
minimum value for the y-axis if you want to modify the y-axis scale.
➤ Network Delay View. This option only appears when you configure the
Network Delay Time graph. Click SubPaths to view the delay measurements
from the source machine to each of the nodes along the network path. Click
DNS name to view the DNS names of the measurements displayed in the
legend.
467
Chapter 31 • Configuring Online Graphs
2 To change the color of the line, select a color from the Color list.
3 Click OK to accept the settings and close the dialog box.
The specified color changes are reflected in the graph and in the legend
beneath the graph. The color is displayed in the first column of the legend.
468
Chapter 31 • Configuring Online Graphs
The actual graph values range from 0-1, as shown in the left graph. You can
view the information more accurately using a larger scale for the display, as
shown in the right graph. However, to obtain the actual values, you need to
divide the displayed value by the scale. In the example above, the highest
value shown in the graph is 5. Since the scale is 10, the actual value is 0.5.
469
Chapter 31 • Configuring Online Graphs
470
Chapter 31 • Configuring Online Graphs
471
Chapter 31 • Configuring Online Graphs
Note: When monitoring a network path, the Network Type will appear here
instead of Machine.
472
Chapter 31 • Configuring Online Graphs
Merging Graphs
LoadRunner lets you merge the results of two graphs from the same scenario
into a single graph. The merging allows you to compare several different
measurements at once. For example, you can make a merged graph to
display the Web Throughput and Hits per Second, as a function of the
elapsed time. In order to merge graphs, the x-axis of both must be the same
measurement.
When you overlay the contents of two graphs that share a common x-axis,
the left y-axis on the merged graph shows the current graph's values. The
right y-axis shows the values of the graph that was merged.
473
Chapter 31 • Configuring Online Graphs
2 Select a graph with which you want to overlay the current graph. The drop-
down list shows only the active graphs that have a common x-axis with the
current graph.
3 Enter a title for the overlaid graph.
4 Click OK. The merged graph appears in the graph view area.
474
Chapter 31 • Configuring Online Graphs
To view a graph, select Graph > Add Graph in the Analysis window. For
more information about working with Analysis at the conclusion of the
scenario, see the HP LoadRunner Analysis User Guide.
To open a graph, click the graph in the graph tree, and drag it into the right
pane of the Run view.
To select the measurements that you want to monitor on the graph, see the
monitor configuration instructions for the specified monitor in the HP
LoadRunner Monitor Reference.
475
Chapter 31 • Configuring Online Graphs
476
Part VII
Appendixes
478
A
Interpreting LoadRunner Online Graphs
Using the online monitor graphs, you can determine whether transactions
transpire within an acceptable amount of time, whether your bandwidth is
sufficient to keep download times to a minimum, and whether your
hardware and operating system can handle peak load.
479
Appendix A • Interpreting LoadRunner Online Graphs
480
Appendix A • Interpreting LoadRunner Online Graphs
In the above graph, the throughput scales upward as time progresses and the
number of users increases, indicating that the bandwidth is sufficient. If the
graph were to remain relatively flat as the number of users increased, it
would be reasonable to conclude that the bandwidth is constraining the
volume of data requested.
481
Appendix A • Interpreting LoadRunner Online Graphs
Question 3: Can the hardware and operating system handle peak load?
Answer: The Windows Resources graph displays Windows resource usage in
real time. You use this graph to monitor the resources used during a scenario
and locate a bottleneck on a particular machine.
The % Total Processor Time in the above graph shows the amount of data
processed by the server. File Data Operations/sec shows the rate at which
the server is issuing Read and Write operations to file system devices. Page
Faults/sec counts the number of page faults in the processor, representing
virtual memory and caching algorithm opportunities.
It is commonly thought that newer and faster servers can resolve slow
download times. However, the above graph demonstrates that only a small
amount of data is processed by the server. The graph indicates that there is
adequate processor capacity, and additional server hardware will not result
in increased performance. There are cases, however, in which increased
performance can be achieved by optimizing the data file system.
482
B
Performing Path Translation
When you run a scenario, LoadRunner gathers run-time data from the
participating Vusers. By default, LoadRunner stores the data in temporary
files on each Vuser machine. After the scenario, the data is collated in the
general results directory.
483
Appendix B • Performing Path Translation
Result and script files stored on a shared network drive require you to
perform path translation.
The Scenario Groups/Scripts pane in the Design view contains a list of all
the Vuser scripts associated with a scenario—and their locations. A script’s
location (path) is always based on the Controller machine’s mapping of that
location. If a Vuser load generator maps to the script’s path using a different
name, path translation is required.
484
Appendix B • Performing Path Translation
Similarly, when saving run-time result files to a shared drive that is mapped
differently by the Controller and remote load generator, you must perform
path translation.
Each line of the Path Translation table has the following format:
485
Appendix B • Performing Path Translation
486
Appendix B • Performing Path Translation
3 Before you enter path translation information, consider using the Universal
Naming Convention method. If your machines are Windows machines, you
can tell the Controller to convert all paths to UNC, and all machines will be
able to recognize the path without requiring path translation. An example
of UNC format is \\machine_a\results.
Select the Convert to UNC check box to tell LoadRunner to ignore the path
translation table and to convert all paths to the Universal Naming
Convention.
4 If your machines are not Windows machines and you require path
translation, type the path information into the table. You can insert
comments by typing the “#” symbol at the start of a line in the table.
5 Click OK to close the table and save the information.
487
Appendix B • Performing Path Translation
Note: When you translate a Windows-based path to a UNIX path, you must
enter the appropriate slashes—forward slashes for UNIX and back slashes for
Windows-based paths.
The examples below show the use of the Path Translation table for a
Windows-based Controller called Merlin.
In the second example, Vusers are running on a UNIX machine, Ultra. Ultra
maps the networks drive as /u/tests/load.
In the third example, the mapping of the network drive by the remote load
generator Jaguar, is identical to the Controller’s mapping, so no translation
is required. This line can be excluded from the Path Translation table.
In the fourth example, all Windows-based Vuser load generators map the
network drive as m:\loadtest.
488
C
Working in Expert Mode
To activate the Expert mode, select Tools > Expert Mode. An active Expert
mode is indicated by a check mark.
489
Appendix C • Working in Expert Mode
490
Appendix C • Working in Expert Mode
➤ Multiple IP address mode. The mode used to allocate IP addresses when the
multiple IP address option is enabled (Scenario > Enable IP Spoofer). The
Controller can allocate an IP address per process or per thread. Allocation
per thread results in a more varied range of IP addresses in a scenario.
➤ Data tables global directory. The network location for data tables used as a
source for parameter values. This setting is only required for scripts created
with earlier versions of LoadRunner.
➤ Do not collate log files. Instructs LoadRunner to collate only result files, and
not log files.
491
Appendix C • Working in Expert Mode
492
Appendix C • Working in Expert Mode
➤ Trace flags. For debugging purposes, you can configure the type of trace
performed by LoadRunner during test execution. Select the appropriate
check box(es) to enable the detailed trace. The trace information appears in
the log file located in the specified Agent log directory. The available trace
flags are: General, File Transfer, Incoming Communication, and Outgoing
Communication. Select only the flags relating to your problem. For example,
if you encounter specific problems with the transfer of files, select the File
Transfer flag.
➤ Keep temporary files. The Agent and Controller create temporary files that
collect information such as the parameter file sent to the Vuser, the output
compilation file, and the configuration file. The Agent files are saved in brr
folders in the TMP or TEMP directory of the Agent machine. The Controller
files are saved in lrr folders in the TMP or TEMP directory of the Controller
machine. At the end of the scenario, all these files are automatically deleted.
The Keep temporary files setting instructs the Agent and Controller not to
delete these files if you need them for debugging.
493
Appendix C • Working in Expert Mode
494
Appendix C • Working in Expert Mode
495
Appendix C • Working in Expert Mode
➤ Send Summary or Raw Data. Sends a summary of the collected data back to
the Controller, or sends all of the data in raw form. Sending the data in raw
form saves time because the data does not need to be processed. However,
since all of the data is being transferred to the Controller, it may cause more
network traffic. If the transfer speed is significant to you, it is recommended
that you select Summary.
496
Appendix C • Working in Expert Mode
➤ Local User. UNIX load generators that use the rsh shell establish a
connection as the current Windows user (due to security considerations). To
“mislead” rsh and log in as a user other than the current Windows login,
select the Local user check box and specify the desired UNIX login name.
Since modifying the local user name is a security breach for rsh, this option
should be used only when you encounter a problem connecting to the
remote machine.
497
Appendix C • Working in Expert Mode
498
Appendix C • Working in Expert Mode
499
Appendix C • Working in Expert Mode
500
D
Troubleshooting the Controller
501
Appendix D • Troubleshooting the Controller
About Troubleshooting
LoadRunner relies heavily upon communication between machines in a
network. If communication is not established properly, the Controller will
be unable to send commands to remote load generators and the scenario
will fail. By understanding the reason for the failure and determining when
the failure occurred, you can solve most network communication-related
problems.
To ensure that the problem lies with your scenario and not your Vuser
script, you should verify that your script runs properly on all remote load
generators in stand-alone mode:
Note: When a test runs in VuGen, the full browser is used. This differs from
a test run in the Controller, where only the browser basics are used. There
may be occasions when a test passes its run in VuGen, but fails when it is
run in the Controller. Before running a scenario in the Controller with
multiple Vusers, run a single Vuser to ensure the test is bug free.
For more information on running Vuser scripts in stand-alone mode, see the
appropriate guide for creating Vuser scripts.
502
Appendix D • Troubleshooting the Controller
LoadRunner Communications
Most communication problems can be solved if you understand your
LoadRunner configuration. This knowledge helps you to determine the
source of the problem and perform the necessary actions to correct it.
The following diagram illustrates a sample network running. There are five
servers: The Controller, the Web server, the application server, the database
server, and the file server that stores the scenario results. (Result files can
also be saved on a non-dedicated server.) There are five remote load
generators, each running multiple Vusers.
503
Appendix D • Troubleshooting the Controller
➤ TCP/IP Connectivity
➤ Load Generator Connections
➤ UNIX Shell
TCP/IP Connectivity
Make sure that TCP/IP connectivity is functional on the Controller and
Vuser machines. Use a ping utility or type ping <server_name> from the DOS
command line to verify communication with a remote machine. Make sure
that the remote load generator and Controller machines can ping each
other by IP addresses and machine names.
If the ping does not respond, or fails with a timeout, then the machine
name is not recognized. To solve this problem, edit the hosts file located in
the WINNT\system32\drivers\etc directory, and add a line with both the IP
address and the name.
For example:
If the Connection fails, the status changes to “Failed” and details are written
to the Details box. Double-click the Details box for more information about
a failure.
504
Appendix D • Troubleshooting the Controller
[tcpnet]
LocalHostNameType= 1
505
Appendix D • Troubleshooting the Controller
UNIX Shell
For UNIX Vusers, make sure that the Windows Controller can execute a
remote shell command. Type the following at the DOS command prompt:
If you get a message indicating that permission is denied, make sure the
.rhosts file in your UNIX home directory contains Controller machine
permission for the user login name. In some cases, a plus (+) character must
be added at the end of the .rhosts file. For example, if you log on to the
Controller as bill and connect to the UNIX load generator as mike, you must
ensure that mike allows bill to log on using his name. This can be done by
adding the line + bill at the beginning of mike’s .rhosts file.
506
Appendix D • Troubleshooting the Controller
➤ Ping. Ensure that the client can communicate with the database server using
TCP/IP. Use a ping utility or type ping <server_name> from the DOS
command line.
➤ SQL Utilities. Use a simple utility such as ISQL or SQLPLUS to log on to the
database server and perform several basic operations.
➤ Path Translation
➤ Vuser Script
➤ Result Path
507
Appendix D • Troubleshooting the Controller
Note: Path translation is required only if you chose to save all scripts and
results to a shared network drive. In the default setup, LoadRunner saves
files locally and collates them to the Controller machine; no path
translation is required.
Suppose that your script is in the /usr/jon/lr_test1 directory and runs on the
UNIX machine, sunny. To translate it from the Windows Controller
machine, pc1, where your UNIX directory is mapped as r, enter the
following line in the path translation table:
If the paths are not translated properly, the scenario will fail. For more
information about path translation, see Appendix B, “Performing Path
Translation.”
➤ Vuser Script. Make sure that the Vuser script is accessible to all load
generators participating in the scenario through path translation and
permissions. View or run the Vuser script in stand-alone mode on each of
the participating load generators.
➤ Result Path. Make sure that the result path is accessible to all load generators
participating in the scenario through path translation and permissions.
Check the permissions of the result directory files and modify them if
necessary.
508
Appendix D • Troubleshooting the Controller
➤ Run View
➤ Output Window
➤ Output File (excluding GUI Vusers)
➤ Analysis Reports and Graphs
Run View
The Run view is part of the Controller. The Scenario Groups pane in the
upper-left corner of the view indicates the status of the Vuser groups during
and after the scenario run. During the scenario run, the columns will show a
Pending, Initializing, Ready, Running, or Rendezvous status. You can also
view the status of each individual Vuser in the Vusers dialog box. If a Vuser
fails and does not complete the script execution, LoadRunner displays an
error status. If a Vuser completes the script execution, LoadRunner indicates
the transaction status of a completed script run using the Done.Failed or
Done.Passed status.
509
Appendix D • Troubleshooting the Controller
For more information about the Vuser states, see Chapter 20, “Viewing
Vusers During Execution.”
510
Appendix D • Troubleshooting the Controller
Output Window
View the Output window from the Controller. The output window contains
useful information for debugging a scenario. The output window lists five
types of messages: errors, warnings, notifications, debug, and batch. An
error message usually results in a failed script. A warning message indicates
that the Vuser encountered a problem, but test execution continued. A
notification provides useful information such as recorded think time values
and other run-time information. A debug message is sent if you enable the
debugging feature in Tools > Options > Debug Information (Expert Mode).
Batch messages are sent instead of message boxes appearing in the
Controller, if you are using automation.
For more information about the Output window, see Chapter 20, “Viewing
Vusers During Execution.”
Output File
You can view information about script execution in an output file located in
the Vuser results directory. The output file, output.txt, contains:
511
Appendix D • Troubleshooting the Controller
The extent of the information sent to the output file depends on the output
file settings. In the VuGen’s run-time settings, you specify a Brief or
Extended log. For the Extended log, you can specify a full trace, returned
data, or current parameter value. An extended log is helpful for debugging a
script, but if you are not debugging, Extended log is not recommended as it
introduces extra overhead. For more information about configuring run-
time settings, see the HP Virtual User Generator User Guide.
For more information on the available graphs and reports, see the HP
LoadRunner Analysis User Guide.
512
Appendix D • Troubleshooting the Controller
1 Save a copy of the registry file in case you have trouble with these
modifications.
2 Run Regedit.
3 Go to following key in HKEY_LOCAL_MACHINE:
System\CurrentControlSet\Control\Session Manager\SubSystems
4 Select the Windows key. The following is an example of the Windows key
Value data field:
%SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows
SharedSection=1024,3072
Windows=On SubSystemType=Windows ServerDll=basesrv,1
ServerDll=winsrv:UserServerDllInitialization,3
ServerDll=winsrv:ConServerDllInitialization,2
ProfileControl=Off MaxRequestThreads=16
Each Vuser in this setup used approximately 2MB memory. Other Vusers
may require more memory.
513
Appendix D • Troubleshooting the Controller
LoadRunner was able to load over 2500 Vusers when the Windows terminal
server was run as the Operating System and the above registry setting was
changed.
The above registry changes enable you to run more threads, allowing you to
run more Vusers on the machine. This implies that you are not bound by
the Windows operating system; you are only bound by hardware and
internal scalability limitations.
Troubleshooting Firewalls
There are three log files that provide additional information about activity
over the firewall.
514
Appendix D • Troubleshooting the Controller
To open the file, right-click the MI Listener Agent icon in the system tray of
the MI Listener machine, and select View Log. Alternatively, open the latest
<temp_directory>\LoadRunner_agent_startup<unique identifier>.log file (if
the LoadRunner agent is a process), or
<temp_directory>\LoadRunner_agent_service<unique identifier>.log file (if
the LoadRunner agent is a service) in a text editor.
➤ On Windows platforms, the agent icon’s light in the system tray will turn
from red to green.
➤ On UNIX platforms, a file called
<Local_machine_key>_connected_to_MI_Listener will be created in the
temporary directory of the LoadRunner agent machine. Local_machine_key
is the value set in the Agent Configuration, as described in Chapter 22,
“Working with Firewalls in LoadRunner.” The file will be removed when the
LoadRunner agent disconnects from the MI Listener.
➤ On both UNIX and Windows platforms, the following message will appear
in the LoadRunner agent log file: Notify Connected to MI Listener.
515
Appendix D • Troubleshooting the Controller
This error means that you are not in the same directory as the file (meaning
not in <LR_root>/bin directory, or the file really doesn't exist, which
indicates a problem with the installation).
This warning message occurs when a daemon of this name is already being
run by the same user.
This error indicates that some error has occurred when loading the daemon.
You should check the log file and consult the following troubleshooting
tips.
516
Appendix D • Troubleshooting the Controller
Error -10344 : Communication Error: -59927 : Failed to create a TCP server for
the HTTP channel's server.
These messages appear because the LoadRunner agent always tries to open
port number 443 (because any agent can be a MI Listener, and the MI
Listener always listens to this port), and in UNIX machines, this port cannot
be opened by any user except for the root user. However, this will not
interfere with using this agent for the load generator.
The MI Listener is not being run at the time of the connection attempt on
the machine set in MI Listener Name in the Agent Configuration.
The name passed in Proxy Name in the Agent Configuration is not a name,
full name, or IP address of a valid machine.
517
Appendix D • Troubleshooting the Controller
The Proxy Port set in Agent Configuration has been set to the wrong port
number.
The proxy server is configured for NTLM authentication, and the Proxy User
Name, Proxy Password and/or Proxy Domain are not set correctly in the
Agent Configuration.
The proxy server is configured in for Basic authentication and the Proxy
User Name and/or Proxy Password are not set correctly in the Agent
Configuration.
Error -10343 : Communication error: -59907 : SSL connect error : verify host failed
: wrong DNS test.
This error occurs when you have set the Check Server Certificates setting to
True, and have not issued a new certificate to the MI Listener machine (see
Appendix G, “Working with Digital Certificates” for more details).
Error -10343 : Communication error: -59907 : SSL connect error : certificate verify
failed.
Error -10343 : Communication error: -59907 : SSL connect error : sslv3 alert
handshake failure.
Error -10343 : Communication error: -59907 : SSL connect error : sslv3 alert bad
certificate.
518
Appendix D • Troubleshooting the Controller
Error -10343 : Communication error: -59907 : SSL connect error : sslv3 alert
certificate expired.
These errors occur when you set the Check Server Certificates setting to
True. See Appendix G, “Working with Digital Certificates” to learn how to
issue a valid certificate.
Error -10343 : Communication error: -59910 : SSL initialization error : system lib.
These errors occur when the Client Certificate owner setting in the Agent
Configuration is set to True, but no certificate was installed in the
LoadRunner agent machine (see Appendix G, “Working with Digital
Certificates” for more details).
Error -10344 : Communication Error: -59927 : Failed to create a TCP server for
the HTTP channel's server.
Error -10343 : Communication error: -59904 : SSL accept error : sslv3 alert
certificate expired.
These errors occur when you have set the Check Server Certificates setting to
True, and the MI Listener's certificate is expired.
Error -10343 : Communication error: -59904 : SSL accept error : sslv3 alert bad
certificate.
519
Appendix D • Troubleshooting the Controller
These errors occur when you have set the Check Server Certificates setting to
True, and either:
Error -10343 : Communication error: -59904 : SSL accept error : peer did not
return a certificate.
These errors indicate that the Check Client Certificates setting in the MI
Listener Configuration is set to True, but the Client Certificate owner setting
in the Agent Configuration is set to False.
These errors indicate that the Check Client Certificates setting in the MI
Listener Configuration is set to True, and the Client Certificate owner
setting in the Agent Configuration is set to True, but either:
These errors indicate that the Check Client Certificates setting in the MI
Listener Configuration is set to True, and the Client Certificate Owner
setting in the Agent Configuration is set to True, but the LoadRunner agent’s
certificate has expired.
520
Appendix D • Troubleshooting the Controller
If no errors appear both in the LoadRunner agent log and the MI Listener
log, but the agent does not connect to the MI Listener, make sure that the
FireWallServiceActive attribute in the Firewall section in the
<LR_Installation>\dat\br_lnch_server.cfg file on the LoadRunner agent
machine, is set to 1.
➤ The Name field in the Load Generators dialog in the Controller should
match the name set in the Local Machine Key in the Agent Configuration.
➤ The MI Listener box in the Load Generators > Details > Security tab of the
above host matches the name set in the MI Listener Name in the Agent
Configuration.
➤ In the Tools menu of the Controller, in the Options > Timeout tab, the Load
Generator Connect timeout might need to be increased because the
Firewalls may slow down the communication.
➤ Make sure that the Controller machine recognizes the LoadRunner agent
machine (e.g., by using the ping utility). If this fails, there is a configuration
problem in the system not related to LoadRunner, and it must be solved
before the connection can be made.
➤ Make sure that the Controller has successfully connected to the MI Listener
by checking port 50500 on the MI Listener machine (you can use the netstat
utility on the MI Listener machine).
521
Appendix D • Troubleshooting the Controller
To check the agent’s current configuration, move your mouse over the
Agent’s icon in the Task bar area, and read the description. The description
will say either “LoadRunner Agent Process” or “LoadRunner Agent Service.”
522
Appendix D • Troubleshooting the Controller
In cases when the service cannot work with mapped network drives, use the
full path to the directory, for example, <\\<machine-name>\<directory>\> .
523
Appendix D • Troubleshooting the Controller
524
E
Configuring Multiple IP Addresses
When you run a scenario, the Vusers on each load generator use the
machine’s IP address. You can define multiple IP addresses on a load
generator to emulate a real-life situation in which users sit on different
machines.
525
Appendix E • Configuring Multiple IP Addresses
Applicable Protocols
The multiple IP address feature is applicable to the following protocols:
526
Appendix E • Configuring Multiple IP Addresses
527
Appendix E • Configuring Multiple IP Addresses
2 If you have an existing file with IP address settings, select Load previous
settings from file and choose the file.
3 If you are defining new settings, select Create new settings.
528
Appendix E • Configuring Multiple IP Addresses
4 Click Next to proceed to the next step. If you have more than one network
card, choose the card to use for IP addresses and click Next.
The optional Web server IP address step enables the IP Wizard to check the
server’s routing table to see if it requires updating after the new IP addresses
are added to the load generator.
5 To check the server’s routing table directly after adding the addresses, enter
the server IP address. See “Updating the Routing Table” on page 534 for
more information.
529
Appendix E • Configuring Multiple IP Addresses
6 Click Next to see a list of the machine’s IP address(es). Click Add to define
the range of addresses.
530
Appendix E • Configuring Multiple IP Addresses
9 After the IP Wizard creates the new addresses, the summary dialog box lists
all of the IP addresses.
10 Click Finish to exit the IP Wizard. The IP Wizard Summary dialog box is
displayed.
531
Appendix E • Configuring Multiple IP Addresses
11 Note the address of the .bat file, and see “Updating the Routing Table” on
page 534 for information about using the batch file to update the routing
table, if necessary.
12 After you update the routing table, check Reboot now to update routing
tables to initialize the Windows device drivers with the new addresses.
13 Click OK.
128.195.10.31 myhost
128.195.10.46 myhost2
128.195.10.78 myhost3
Create /etc/hostname.hme0:n files that contain the hostname for the
virtual host n.
532
Appendix E • Configuring Multiple IP Addresses
The above changes will cause the virtual hosts to be configured at boot time.
2 You can also directly enable/modify a logical hosts configuration by running
ifconfig directly on one of the logical hosts, using the hme0:n naming
scheme:
% ifconfig hme0:1 up
% ifconfig hme0:1 129.153.76.72
% ifconfig hme0:1 down
Linux
To define multiple IP addresses for a single Ethernet card, you need IP
Aliasing compiled into the kernel. To do this, use the ifconfig command:
Substitute the new IP address for x.x.x.x, and insert the correct information
for subnet mask. Place this command in the rc.local file so that it executes
upon boot.
HP 11.0 or higher
To define multiple IP addresses for a single Ethernet card, you need IP
Aliasing compiled into the kernel. To do this, use the ifconfig command:
Substitute the new IP address for x.x.x.x, and insert the correct information
for subnet mask. Place this command in the rc.local file so that it executes
upon boot.
533
Appendix E • Configuring Multiple IP Addresses
IBM AIX
To define multiple IP addresses for a single Ethernet card, you need IP
Aliasing compiled into the kernel. To do this, use the ifconfig command:
For example, if you want to add IP address 10.0.0.1 to the main interface,
you need to run, as root, the following:
To execute this line upon boot, create a standard script in the appropriate
run level (/etc/rc.d/rc#.d).
Note: If there is a router between the client and server machines, the server
needs to recognize the path via the router. Make sure to add the following to
the server routing table: route from the Web server to the router, and routes
from the router to all of the IP addresses on the load generator.
534
Appendix E • Configuring Multiple IP Addresses
Note: You must select this option before connecting to a load generator.
2 Use the General Options of the Controller Expert Mode to specify how the
Controller should implement this feature.
For more information, see Appendix C, “Working in Expert Mode.”
535
Appendix E • Configuring Multiple IP Addresses
536
F
Controller Command Line Arguments
When you invoke the Controller from the command line, you can pass
arguments to instruct the Controller how to behave. By passing arguments
in the command line, you configure Controller scenario settings without
the need to manually define them using the Controller UI.
537
Appendix F • Controller Command Line Arguments
For example:
When you invoke the Controller from the command line, the following
rules apply:
538
Appendix F • Controller Command Line Arguments
539
Appendix F • Controller Command Line Arguments
Run-Time Arguments
These arguments specify the run-time related scenario settings. For more
information on scenario settings, see Chapter 16, “Preparing to Run a
Scenario.”
Note: If the scenario doesn’t specify a results directory, and one of the
results arguments was not passed, the scenario will not run.
540
G
Working with Digital Certificates
541
Appendix G • Working with Digital Certificates
The MI Listener may also require the LoadRunner agent to send a certificate
at any point in the session. This is called the client-side certificate, as
described in the MI Listener Configuration Settings in Chapter 22, “Working
with Firewalls in LoadRunner.” If the LoadRunner agent owns a certificate, it
sends it to the MI Listener for the same authentication process. If the
LoadRunner agent does not own a certificate, the communication might not
be continued.
542
Appendix G • Working with Digital Certificates
3 To install this CA, use the -install <name of certificate file> option. This option
replaces any previous CA list and creates a new one that includes only this
CA.
To add the new CA to the existing CA list, use the -install_add <name of
certificate file>.
4 The -install and -install_add options install the certificate file only. Keep the
private key file in a safe place and use it only for issuing certificates.
543
Appendix G • Working with Digital Certificates
544
Appendix G • Working with Digital Certificates
3 If you wish to install this certificate, use the -install <name of certificate file>
option. This option replaces any previous certificate, as it is possible to own
only one certificate per machine.
545
Appendix G • Working with Digital Certificates
546
Index
A connecting
to database 507
Add Group dialog box 69
to Quality Center 254
Add New Load Generator dialog box 89
Connection Log tab 499
Add Script dialog box 210
Controller 53
Add Vusers dialog box 81
invoking 50
adding measurements 368
managing scenario files 55
Adobe Reader 15
overview 53
agent
quick tour 49
daemon 97, 99
running from the command line 538
defined 25
sending messages to (GUI) 276
summary window 315
Controller window
troubleshooting 522
Design view 53
application
Run view 58
analyzing 36
status bar 53
configuration 37
title bar 53
usage model 38
Toolbar 54
controller_host 485
B controller_path 486
Basic schedule 151 converting a scenario
to Percentage mode 134
to Vuser Group mode 146
C creating
CA (Certification Authority) 541 goal-oriented scenario 195
Certification Authority (CA) 541 manual scenario 63
Collate Results dialog box 250 manual scenario in Percentage Mode
collating scenario results 249 133
command line Vuser scripts 31
arguments 537
options, Vuser script 127 D
configuring
load generator 90 database
scenario 229 connecting to 507
script 125 debug
script (goal-oriented scenario) 210 information settings 492
script (Percentage Mode) 140 level 459
Vusers 76 declare_rendezvous function 275
547
Index
548
Index
549
Index
550
Index
P R
path translation Real-world schedule 151
debugging file locations 507 Refresh button 126
defined 484 registry, modifying 513
editing the Path Translation Table 487 relative script paths 130
examples 488 Remote Agent Dispatcher (Process) 25
scenario configuration 240 remote security configuration 322
script path 131 remote_host 486
using the Path Translation Table 485 remote_path 486
pausing removing measurements 368
monitors 463 rendezvous 217
551
Index
attributes 219 S
disabling Vusers 224
sampling rate 458
enabling Vusers 224
SAP Configuration dialog box 417
information 225
SAP Diagnostics
manually releasing Vusers 293
setting up on the Controller 417
overview 217
scenario
setting release policy 222
closing 57
setting the attributes 219
collating results 249
setting timeout policy 222
configuring 229
Rendezvous Information dialog box 226
conversion to Percentage mode 134
resetting Vuser IDs 292
conversion to Vuser Group mode 146
response time measurement
creating a goal-oriented scenario 195
end-to-end 41
creating a manual scenario 63
GUI 42
creating a manual scenario in
middleware-to-server 43
Percentage Mode 133
network and server 42
creating a new scenario 55
server 42
defining scenario goals 200
results 244
goal-oriented scenario defined 51
collating 249
managing scenario files 55, 58
directory file structure 247
manual scenario defined 51
files for debugging 507
New Scenario dialog box 65
location in Quality Center project 261
opening 56
naming 244
opening from Quality Center 258
specifying location for 244
overview 64
routing table 534
preparing to run 243
rsh
result directory 247
checking Controller connection 506
running 281
running UNIX without 98
running GUI Vuser scripts 278
run modes
running QuickTest tests 278
Scheduler 151
running WinRunner tests 278
Run/Stop Vusers dialog box 294
saving 57
running over firewall 337
saving to Quality Center 259
Run-Time graphs
Scenario Goal window 198, 200
interpreting 479
Scenario Scripts pane 198, 200
run-time settings
summary information 252
configuring 83
viewing output messages 305
setting in a goal-oriented scenario 212
scenario configuration
setting in a manual scenario 126
path translation 240
shared 84
run-time file location 236
Run-Time Viewer
run-time settings 234
view replay from Controller 292
specifying results location 244
timeout intervals 231
scenario execution 281
activating additional Vusers 294
controlling individual Vuser groups
284
552
Index
553
Index
554
Index
555
Index
556