SlideShare a Scribd company logo
Simple replay and Run Time Settings
For HP LoadRunner
Runtime Settings
 The run-time settings define the way that the script runs.
 These settings are stored in the file default.cfg, located in the Vuser script folder.
Run-time settings are applied to Vusers when you run a script using VuGen, the
Controller, or Business Process Monitor.
 Configuring run-time settings allows you to emulate different kinds of user activity.
For example, you could emulate a user who responds immediately to output from
the server, or a user who stops and thinks before each response. You can also
configure the run-time settings to specify how many times the Vuser should repeat
its set of actions.
 Not all run-time setting settings are available for every protocol. 2
Runtime Settings continued..
To emulate real user.
 Allow to get detailed information for the virtual user.
Retrieve Performance stats for the graph.
Automatic transaction.
Error handling.
3
Run Time Settings
4
Configuration of Run Time Settings
 Run-Time Settings.
 Run Logic
 Pacing
 Log Settings
 Think Time
 Network Run-Time Settings
 Browser Settings
 Internet Preferences
 Miscellaneous Run-Time Setting
5
Runtime Settings
The run-time settings define the way that the
script runs.
Example:
Emulate a user who responds immediately to
output from the server, or a user who stops
and thinks before each response.
To specify how many times the Vuser should
repeat its set of actions.
Run Logic
 LoadRunner repeats all of the
Actions the specified number
of times.
 Init and End sections are not
iterated.
Pacing
 The Pacing Run-Time settings let you control the
time between iterations.
 The pace tells the Vuser how long to wait between
iterations of your actions.
You instruct the Vusers to start each
iteration using one of the following
methods:
 As soon as the previous iteration ends.
 After the previous iteration ends with a
fixed/random delay of …
 At fixed/random intervals, every …/ to … seconds.
Pacing
 1 As soon as the previous iteration ends: The new iteration begins as soon as possible after the previous
iteration ends.
 After the previous iteration ends with a fixed or random delay of …: Starts each new iteration a specified
amount of time after the end of the previous iteration. Specify either an exact number of seconds or a
range of time. For example, you can specify to begin a new iteration at any time between 60 and 90
seconds after the previous iteration ends.
 At fixed or random intervals, every … [to …] seconds: Specify the time between iteration—either a fixed
number of seconds or a range of seconds from the beginning of the previous iteration. For example, you
can specify to begin a new iteration every 30 seconds, or at a random rate ranging from 30 to 45 seconds
from the beginning of the previous iteration. Each scheduled iterations will only begin when the previous
iteration is complete.
Log Settings
To determine how much information
should be logged to the output.
Standard Log: Creates a standard log
of functions and messages sent during
script execution to use for debugging.
Extended Log:
Parameter Substitution
Data returned by Server
Advanced Trace
Think Time
 Ignore think time: Ignore the recorded think time.
 Replay the think time:
 As recorded:
 Example: lr_think_time(10) waits ten seconds.
 Multiply recorded think time by:
 Example: If a think time of four seconds was recorded,
you can instruct your Vuser to multiply that value by two,
for a total of eight seconds. To reduce the think time to
two seconds, multiply the recorded time by 0.5.
 Use random percentage of the recorded think time:
 Example: If the think time argument is 4, and you specify
a minimum of 50% and a maximum of 150%, the lowest
think time can be two (50%) and the highest value six
(150%).
 Limit think time to: Limit the think time’s maximum
value.
Network Run-Time Settings
 Using the Speed Simulation settings,
you can select a bandwidth that best
emulates the environment under test.
Available Options:
 Use maximum bandwidth: Vusers run
at the maximum bandwidth that is
available over the network.
 Use bandwidth: Indicate a specific
bandwidth level for your Vuser to
emulate.
 Use custom bandwidth: Indicate a
bandwidth limit for your Vuser to
emulate.
Browser Settings
You can set the browser properties in
the following areas:
User-Agent (browser to be emulated)
Simulate browser cache
Download non-HTML resources
Simulate a new user each iteration
You can also set advanced options for
caching and checking for newer
resources.
Browser Settings
 User-Agent (browser to be emulated): All Internet Vuser headers include a User-Agent header
that identifies the type of browser (or toolkit for Wireless) that is being emulated.
 Simulate browser cache: A cache is used to keep local copies of frequently accessed documents
and thereby reduces the time connected to the network.
By default, cache simulation is enabled. When the cache is disabled,Vusers will ignore all
caching functionality and download all of the resources for every request.
 Cache URLs requiring content (HTML): This option instructs VuGen to cache only the URLs
that require the HTML content. The content may be necessary for parsing, verification, or
correlation. When you select this option, HTML content is automatically cached. This option is
enabled by default.
Browser Settings
 Check for newer versions of stored pages every visit to the page: This setting instructs the
browser to check for later versions of the specified URL, than those stored in the cache. This
option generates more traffic during the scenario or session execution. By default, browsers do
not check for newer resources, and therefore this option is disabled.
 Download non-HTML resources: Instructs Vusers to load graphic images when accessing a
Web page during replay. When real users access a Web page, they wait for the images to load.
Therefore, enable this option if you are trying to test the entire system, including end-user time
(enabled by default). To increase performance and not emulate real users, disable this option.
Browser Settings
• Simulate a new user each iteration: Instructs VuGen to reset
all HTTP contexts between iterations to their states at the end
of the init section. This setting allows the Vuser to more
accurately emulate a new user beginning a browsing session. It
deletes all cookies, closes all TCP connections, clears the
emulated browser’s cache. This option is enabled by default.
Internet Preferences
• Use the Internet Protocol: Preferences node in the Run-
Time Settings tree, to set the settings related to the
following areas:
 Image and Text Checks
 Generating Web Performance Graphs
 Advanced Web Run-Time Options
Internet Preferences
• Image and Text Checks: The Enable image and text checks option allows the Vuser
to perform verification checks during replay by executing the verification functions:
web_find or web_image_check.
• This option only applies to statements recorded in HTML-based mode. Vusers
running with verification checks use more memory than Vusers who do not perform
checks (disabled by default).
• Generating Web Performance Graphs: Instructs a Vuser to collect data used to
create Web Performance graphs. You view the Hits per Second, Pages per Second,
and Response Bytes per Second (Throughput) graphs during test execution using the
online monitors and after test execution using the Analysis.
Miscellaneous Run-Time Settings
 You can set the following Miscellaneous run-time
options for a Vuser script:
 Error Handling
 Multithreading
 Automatic Transactions
 Click the Run-Time Settings button or select Vuser >
Run-Time Settings to display the Run-Time Settings
dialog box. Select the General: Miscellaneous node
from the tree in the left pane.
Miscellaneous Run-Time Settings
Error Handling
 Continue on Error: This setting instructs Vusers to continue script execution when an error
occurs. This option is turned off by default, indicating that the Vuser will exit if an error
occurs.
 Fail open transactions on lr_error_message. This option instructs VuGen to mark all
transactions in which an lr_error_message function was issued, as Failed. The
lr_error_message function is issued through a programmed If statement, when a certain
condition is met.
 Generate Snapshot on Error: This option generates a snapshot when an error occurs. You
can see the snapshot by viewing the Vuser Log and double-clicking on the line at which the
error occurred.
Miscellaneous Run-Time Settings
Error Handling
Important:
It is not recommended to enable both the Continue on Error and
Generate Snapshot on Error options in a load test environment.
This configuration may adversely affect the Vusers’
performance.
Miscellaneous Run-Time Settings
Multithreading
 Vusers support multithread environments. The primary advantage of a multithread environment is the ability to
run more Vusers per load generator.
 The Controller uses a driver program (such as mdrv.exe or r3vuser.exe) to run your Vusers. If you run each Vuser
as a process, then the same driver program is launched (and loaded) into the memory again and again for every
instance of the Vuser. This limits the numbers of Vusers that can be run on any load generator.
 If you run each Vuser as a thread, the Controller launches only one instance of the driver program (such as
mdrv.exe), for every 50 Vusers (by default). This eliminates the need for multiple re-loading of the driver
program/process saves much memory space, thereby enabling more Vusers to be run on a single load generator.
 The Controller uses a driver program (such as mdrv.exe or r3vuser.exe) to run your Vusers. If you run each Vuser
as a process, then the same driver program is launched (and loaded) into thememory again and again for every
instance of the Vuser. Loading the same driver program into memory uses up large amounts of RAM (random
access memory) and other system resources.This limits the numbers of Vusers that can be run on any load
generator.
Miscellaneous Run-Time Settings
Automatic Transactions
 You can instruct LoadRunner to handle every step or action in a Vuser script as a transaction.
This is called using automatic transactions. LoadRunner assigns the step or action name as the
name of the transaction. By default, automatic transactions per action are enabled.
 To enable automatic transactions per step, check the Define each step as a transaction check
box. (disabled by default)

More Related Content

ODP
PDF
Day1_Apache_JMeter_Overview
PDF
How To Configure VNC Server on CentOS 7
PDF
Q4.11: Sched_mc on dual / quad cores
PDF
EE4414 Multimedia Communication Systems II
PDF
Wowza installation
PDF
Testing and Benchmarking (Joel)
PPT
Linux kernel modules
Day1_Apache_JMeter_Overview
How To Configure VNC Server on CentOS 7
Q4.11: Sched_mc on dual / quad cores
EE4414 Multimedia Communication Systems II
Wowza installation
Testing and Benchmarking (Joel)
Linux kernel modules

Similar to QSpiders - Simple replay and run time settings Loadrunner (20)

PPT
Performance testing with loadrunner by kc
PPTX
PERFORMANCE TESTING USING LOAD RUNNER
PPT
Performance testing using hp load runner
PPTX
QSpiders - Simple Recording and Configuration of recording options for HP Loa...
PDF
Load runner generator
DOCX
Loadrunner interview questions and answers
PPT
Less12 3 e_loadmodule_2
PPT
loadrunner
PDF
LoadRunner Performance Testing
PDF
Loadrunner Onloine Training
PDF
Load runner controller
DOC
Loadrunner Online Training
PDF
LoadRunner walkthrough
PDF
Load runner12.00 tutorial
PPTX
Load Runner
PPT
Performance Testing
PPT
Advanced Load Runner
PDF
Details Description of Load Runner Recording option
PPT
advanced_load_runner.ppt
PPT
How to use VTS with loadrunner
Performance testing with loadrunner by kc
PERFORMANCE TESTING USING LOAD RUNNER
Performance testing using hp load runner
QSpiders - Simple Recording and Configuration of recording options for HP Loa...
Load runner generator
Loadrunner interview questions and answers
Less12 3 e_loadmodule_2
loadrunner
LoadRunner Performance Testing
Loadrunner Onloine Training
Load runner controller
Loadrunner Online Training
LoadRunner walkthrough
Load runner12.00 tutorial
Load Runner
Performance Testing
Advanced Load Runner
Details Description of Load Runner Recording option
advanced_load_runner.ppt
How to use VTS with loadrunner
Ad

More from Qspiders - Software Testing Training Institute (20)

PPS
QSpiders - Unix Operating Systems and Commands
PPS
QSpiders - Variable Length-Subnet-Masks
PPS
QSpiders - Upper layer-protocols
PPTX
QSpiders - Day1 Network Basics
PPTX
QSpiders - Aptitude Assignments
PPTX
PPTX
QSpiders - Chapter 7 Debugging
PPTX
QSpiders - Chapter 4 Checkpoints
PPTX
QSpiders - Wonderlic Sample Question
PPTX
QSpiders - Chapter- 3 Synchronization point
PPTX
QSpiders - Presentation JMeter
PPTX
QSpiders - Memory (JVM architecture)
PPTX
QSpiders - Jdk Jvm Jre and Jit
PPTX
PPTX
QSpiders - Introduction to HP Load Runner
PPTX
QSpiders - Interacting with My SQL Database
PPT
QSpiders - Automation using Selenium
PPTX
QSpiders - Server Architecture
PPTX
QSpiders - Installation and Brief Dose of Load Runner
QSpiders - Unix Operating Systems and Commands
QSpiders - Variable Length-Subnet-Masks
QSpiders - Upper layer-protocols
QSpiders - Day1 Network Basics
QSpiders - Aptitude Assignments
QSpiders - Chapter 7 Debugging
QSpiders - Chapter 4 Checkpoints
QSpiders - Wonderlic Sample Question
QSpiders - Chapter- 3 Synchronization point
QSpiders - Presentation JMeter
QSpiders - Memory (JVM architecture)
QSpiders - Jdk Jvm Jre and Jit
QSpiders - Introduction to HP Load Runner
QSpiders - Interacting with My SQL Database
QSpiders - Automation using Selenium
QSpiders - Server Architecture
QSpiders - Installation and Brief Dose of Load Runner
Ad

Recently uploaded (20)

PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Classroom Observation Tools for Teachers
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
master seminar digital applications in india
PDF
01-Introduction-to-Information-Management.pdf
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PDF
Pre independence Education in Inndia.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
O7-L3 Supply Chain Operations - ICLT Program
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
102 student loan defaulters named and shamed – Is someone you know on the list?
Renaissance Architecture: A Journey from Faith to Humanism
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Module 4: Burden of Disease Tutorial Slides S2 2025
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Classroom Observation Tools for Teachers
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
master seminar digital applications in india
01-Introduction-to-Information-Management.pdf
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
Pre independence Education in Inndia.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
O7-L3 Supply Chain Operations - ICLT Program

QSpiders - Simple replay and run time settings Loadrunner

  • 1. Simple replay and Run Time Settings For HP LoadRunner
  • 2. Runtime Settings  The run-time settings define the way that the script runs.  These settings are stored in the file default.cfg, located in the Vuser script folder. Run-time settings are applied to Vusers when you run a script using VuGen, the Controller, or Business Process Monitor.  Configuring run-time settings allows you to emulate different kinds of user activity. For example, you could emulate a user who responds immediately to output from the server, or a user who stops and thinks before each response. You can also configure the run-time settings to specify how many times the Vuser should repeat its set of actions.  Not all run-time setting settings are available for every protocol. 2
  • 3. Runtime Settings continued.. To emulate real user.  Allow to get detailed information for the virtual user. Retrieve Performance stats for the graph. Automatic transaction. Error handling. 3
  • 5. Configuration of Run Time Settings  Run-Time Settings.  Run Logic  Pacing  Log Settings  Think Time  Network Run-Time Settings  Browser Settings  Internet Preferences  Miscellaneous Run-Time Setting 5
  • 6. Runtime Settings The run-time settings define the way that the script runs. Example: Emulate a user who responds immediately to output from the server, or a user who stops and thinks before each response. To specify how many times the Vuser should repeat its set of actions.
  • 7. Run Logic  LoadRunner repeats all of the Actions the specified number of times.  Init and End sections are not iterated.
  • 8. Pacing  The Pacing Run-Time settings let you control the time between iterations.  The pace tells the Vuser how long to wait between iterations of your actions. You instruct the Vusers to start each iteration using one of the following methods:  As soon as the previous iteration ends.  After the previous iteration ends with a fixed/random delay of …  At fixed/random intervals, every …/ to … seconds.
  • 9. Pacing  1 As soon as the previous iteration ends: The new iteration begins as soon as possible after the previous iteration ends.  After the previous iteration ends with a fixed or random delay of …: Starts each new iteration a specified amount of time after the end of the previous iteration. Specify either an exact number of seconds or a range of time. For example, you can specify to begin a new iteration at any time between 60 and 90 seconds after the previous iteration ends.  At fixed or random intervals, every … [to …] seconds: Specify the time between iteration—either a fixed number of seconds or a range of seconds from the beginning of the previous iteration. For example, you can specify to begin a new iteration every 30 seconds, or at a random rate ranging from 30 to 45 seconds from the beginning of the previous iteration. Each scheduled iterations will only begin when the previous iteration is complete.
  • 10. Log Settings To determine how much information should be logged to the output. Standard Log: Creates a standard log of functions and messages sent during script execution to use for debugging. Extended Log: Parameter Substitution Data returned by Server Advanced Trace
  • 11. Think Time  Ignore think time: Ignore the recorded think time.  Replay the think time:  As recorded:  Example: lr_think_time(10) waits ten seconds.  Multiply recorded think time by:  Example: If a think time of four seconds was recorded, you can instruct your Vuser to multiply that value by two, for a total of eight seconds. To reduce the think time to two seconds, multiply the recorded time by 0.5.  Use random percentage of the recorded think time:  Example: If the think time argument is 4, and you specify a minimum of 50% and a maximum of 150%, the lowest think time can be two (50%) and the highest value six (150%).  Limit think time to: Limit the think time’s maximum value.
  • 12. Network Run-Time Settings  Using the Speed Simulation settings, you can select a bandwidth that best emulates the environment under test. Available Options:  Use maximum bandwidth: Vusers run at the maximum bandwidth that is available over the network.  Use bandwidth: Indicate a specific bandwidth level for your Vuser to emulate.  Use custom bandwidth: Indicate a bandwidth limit for your Vuser to emulate.
  • 13. Browser Settings You can set the browser properties in the following areas: User-Agent (browser to be emulated) Simulate browser cache Download non-HTML resources Simulate a new user each iteration You can also set advanced options for caching and checking for newer resources.
  • 14. Browser Settings  User-Agent (browser to be emulated): All Internet Vuser headers include a User-Agent header that identifies the type of browser (or toolkit for Wireless) that is being emulated.  Simulate browser cache: A cache is used to keep local copies of frequently accessed documents and thereby reduces the time connected to the network. By default, cache simulation is enabled. When the cache is disabled,Vusers will ignore all caching functionality and download all of the resources for every request.  Cache URLs requiring content (HTML): This option instructs VuGen to cache only the URLs that require the HTML content. The content may be necessary for parsing, verification, or correlation. When you select this option, HTML content is automatically cached. This option is enabled by default.
  • 15. Browser Settings  Check for newer versions of stored pages every visit to the page: This setting instructs the browser to check for later versions of the specified URL, than those stored in the cache. This option generates more traffic during the scenario or session execution. By default, browsers do not check for newer resources, and therefore this option is disabled.  Download non-HTML resources: Instructs Vusers to load graphic images when accessing a Web page during replay. When real users access a Web page, they wait for the images to load. Therefore, enable this option if you are trying to test the entire system, including end-user time (enabled by default). To increase performance and not emulate real users, disable this option.
  • 16. Browser Settings • Simulate a new user each iteration: Instructs VuGen to reset all HTTP contexts between iterations to their states at the end of the init section. This setting allows the Vuser to more accurately emulate a new user beginning a browsing session. It deletes all cookies, closes all TCP connections, clears the emulated browser’s cache. This option is enabled by default.
  • 17. Internet Preferences • Use the Internet Protocol: Preferences node in the Run- Time Settings tree, to set the settings related to the following areas:  Image and Text Checks  Generating Web Performance Graphs  Advanced Web Run-Time Options
  • 18. Internet Preferences • Image and Text Checks: The Enable image and text checks option allows the Vuser to perform verification checks during replay by executing the verification functions: web_find or web_image_check. • This option only applies to statements recorded in HTML-based mode. Vusers running with verification checks use more memory than Vusers who do not perform checks (disabled by default). • Generating Web Performance Graphs: Instructs a Vuser to collect data used to create Web Performance graphs. You view the Hits per Second, Pages per Second, and Response Bytes per Second (Throughput) graphs during test execution using the online monitors and after test execution using the Analysis.
  • 19. Miscellaneous Run-Time Settings  You can set the following Miscellaneous run-time options for a Vuser script:  Error Handling  Multithreading  Automatic Transactions  Click the Run-Time Settings button or select Vuser > Run-Time Settings to display the Run-Time Settings dialog box. Select the General: Miscellaneous node from the tree in the left pane.
  • 20. Miscellaneous Run-Time Settings Error Handling  Continue on Error: This setting instructs Vusers to continue script execution when an error occurs. This option is turned off by default, indicating that the Vuser will exit if an error occurs.  Fail open transactions on lr_error_message. This option instructs VuGen to mark all transactions in which an lr_error_message function was issued, as Failed. The lr_error_message function is issued through a programmed If statement, when a certain condition is met.  Generate Snapshot on Error: This option generates a snapshot when an error occurs. You can see the snapshot by viewing the Vuser Log and double-clicking on the line at which the error occurred.
  • 21. Miscellaneous Run-Time Settings Error Handling Important: It is not recommended to enable both the Continue on Error and Generate Snapshot on Error options in a load test environment. This configuration may adversely affect the Vusers’ performance.
  • 22. Miscellaneous Run-Time Settings Multithreading  Vusers support multithread environments. The primary advantage of a multithread environment is the ability to run more Vusers per load generator.  The Controller uses a driver program (such as mdrv.exe or r3vuser.exe) to run your Vusers. If you run each Vuser as a process, then the same driver program is launched (and loaded) into the memory again and again for every instance of the Vuser. This limits the numbers of Vusers that can be run on any load generator.  If you run each Vuser as a thread, the Controller launches only one instance of the driver program (such as mdrv.exe), for every 50 Vusers (by default). This eliminates the need for multiple re-loading of the driver program/process saves much memory space, thereby enabling more Vusers to be run on a single load generator.  The Controller uses a driver program (such as mdrv.exe or r3vuser.exe) to run your Vusers. If you run each Vuser as a process, then the same driver program is launched (and loaded) into thememory again and again for every instance of the Vuser. Loading the same driver program into memory uses up large amounts of RAM (random access memory) and other system resources.This limits the numbers of Vusers that can be run on any load generator.
  • 23. Miscellaneous Run-Time Settings Automatic Transactions  You can instruct LoadRunner to handle every step or action in a Vuser script as a transaction. This is called using automatic transactions. LoadRunner assigns the step or action name as the name of the transaction. By default, automatic transactions per action are enabled.  To enable automatic transactions per step, check the Define each step as a transaction check box. (disabled by default)