Load Runner Faq
Load Runner Faq
a) Different sets of data are sent to the server each time the script is run.
b) Better simulate the usage model for more accurate testing from the
Controller; one script can emulate many different users on the system.
Question14. How do you find out where correlation is required? Give few
examples from your projects?
Two ways:
First we can scan for correlations, and see the list of values which can be
“` correlated. From this we can pick a value to be correlated. Secondly,
we can record two scripts and compare them. We can look up the
difference file to see for the values which needed to be correlated.
Question20. What are the changes you can make in run-time settings?
The Run Time Settings that we make are:
a) Pacing - It has iteration count.
b) Log - Under this we have Disable Logging Standard Log and Extended.
c) Think Time - In think time we have two options like Ignore think time
and Replay think time.
d) General - Under general tab we can set the vusers as process or as
multithreading and whether each step as a transaction.
Question21. Where do you set Iteration for Vuser testing?
We set Iterations in the Run Time Settings of the VuGen. The navigation
for this is Run time settings, Pacing tab, set number of iterations.
If the Vuser is run as a process, the same driver program is loaded into
memory for each Vuser, thus taking up a large amount of memory. This
limits the number of Vusers that can be run on a single generator.
If the Vuser is run as a thread, only one instance of the driver program is
loaded into memory for the given number of Vusers(say 100). Each
thread shares the memory of the parent driver program, thus enabling
more Vusers to be run per generator.
Question29. If web server, database and Network are all fine where
could be the problem?
The problem could be in the system itself or in the application server or
in the code written for the application.
Correlate Graph: Plot the Y-axis of two graphs against each other. The
active graph’s Y-axis becomes X-axis of merged graph. Y-axis of the
graph that was merged becomes merged graph’s Y-axis.
Question34. How did you plan the Load? What are the Criteria?
Load test is planned to decide the number of users, what kind of
machines we are going to use and from where they are run. It is based
on 2 important documents, Task Distribution Diagram and Transaction
profile. Task Distribution Diagram gives us the information on number of
users for a particular transaction and the time of the load. The peak
usage and off-usage are decided from this Diagram. Transaction profile
gives us the information about the transactions name and their priority
levels with regard to the scenario we are deciding.
Think time is the time that a real user waits between actions.
Example:
When a user receives data from a server, the user may wait several
seconds to review the data before responding. This delay is known as the
think time.
b) lr_output_message
The lr_output_message function sends notifications to the Controller
Output window and the Vuser log file.
c) lr_error_message
The lr_error_message function sends an error message to the
LoadRunner Output window.
d) lrd_stmt
The lrd_stmt function associates a character string (usually a SQL
statement) with a cursor. This function sets a SQL statement to be
processed.
e) lrd_fetch
The lrd_fetch function fetches the next row from the result set.
Question40. Throughput
Load Runner provides you with five different types of goals in a goal
oriented scenario:
• The number of concurrent Vusers
• The number of hits per second
• The number of transactions per second
• The number of pages per minute
• The transaction response time that you want your scenario
1. What are the three sections of a Vuser script and what is the purpose
of each one?
1) Vuser_init - used for recording the logon.
2) Actions - used for recording the business process.
3) Vuser_end - used for recording the logoff.
Question46. How can you tell the difference between an integer value
and a string value in a VuGen script?
Strings are enclosed in quotes; integers are not.
Question48. What is the easiest way to get measurements for each step
of a recorded script? For the entire action file?
Enable automatic transactions.(Runtime settings, Recording Options)
Question50. What are the four selection methods when choosing data
from a data file?
Sequential, Random, Unique, and Same line as .
Question51. How can reusing the same data during iterative execution
of a business process negatively affect load testing results?
In reusing the same data for each iteration, the server recognizes the
same data is requested and places it in its cache. The load test then gets
performance results that are not based on real server activity but
caching. This will not provide the correct results during the analysis of
the load test.
Question59. What tools does VuGen provide to help you analyze Vuser
run results?
Execution Log, Run-Time Viewer, and Mercury Test Results window.
Question61. Why should you run more Vusers than your anticipated
peak load?
(1) To test the scalability of the system.
(2) To see what happens when there is a spike in system usage.
Question63. Why wouldn’t you want to run virtual users on the same
host as the Load-
Runner Controller or Database Server?
Running virtual users on the same host as the LoadRunner Controller
will skew the results so that they no longer emulate real life usage. By
having both the Controller and the Vusers on the same machine, the
tester will not be able to determine the effects of the network traffic.
Question64. Each time you run the same scenario, the results will be
slightly different. What are some of the factors that can cause differences
in performance measurements?
Different factors can effect the performance measurements including
network
traffic, CPU usage and caching.