Load testing is the process of evaluating the performance of a system. LoadRunner can be used to create manual and goal-oriented scenarios. Modern system architectures are large and complex.
Load testing is the process of evaluating the performance of a system. LoadRunner can be used to create manual and goal-oriented scenarios. Modern system architectures are large and complex.
Load testing is the process of evaluating the performance of a system. LoadRunner can be used to create manual and goal-oriented scenarios. Modern system architectures are large and complex.
Yes. Version 7.2
Explain the Load testing process?
Step I: Planning the tes. Here, we develop a clearly defined tet plan to eneure the
teat acenarios we develop will ccomnplish lond-teating objectives
Step 2: Creating Vuners. Here, we create Viner seripts that contain tases performed
by each Vaser, tases performed by Vusers aa whole, and tases measured a
Step 3: Creating the scenario, A scenario describes the events that occur during &
testing session. It incides a list of machines, ecnpts, ana Vusers that run during
the scenario. We create scenarios using LoadRunner Controller. We ean create
‘manual scenarios as well as goal-oriented acenarios. In manual scenarios, we
define the number of Vusera, the load generator machines, and percentage af
Vusers tobe aasigned :o each script For web teats, we may create a goaloriented
scenario where we define the goal hal our test has to achieve. LoadRunner
‘automatically builds a scenario forts
Step 4 Running the seenaro
‘Weremulate load on the server by instructing multiple Vusers to perform tasks
slmultancously. Before the testing, ve set the scenario configuration and
scheduling We can run the entire scenario, Vuser groupe, of individual Vasers,
Step 5: Monitoring the scenario.
‘Wemonitor acenario execution using the LoadRunner online runtime, transaction,
system resource, Web resouree, Web server resource, Web application server
resource, database server eaouree,nelwork delay, sireaming media resource,
Erewall server resouree, ERP server resource, and Java performance monitors
Step 6: Analyzing test results, During seenario execution, LoadRtnner records the
performance of the application tinder ciferen londs, We tse LoadRunner's graphs
land reports to analyze the application's performance
When do you do load and performance Testing?
‘We perform load testing once we are done with interface (GUI) testing. Modern
system architectures are large and complex. Whereas single user testing pramarlly
fn functionality and user interface of a ayatem component, application esting
focuses on performance and reliability of an entice aystem. For example, atypical
application testing scenario might depiet 1000 users loging in simultaneotaly to 8
system, This gives ie to lastiessich as what ie the response ime of the system,What Component of LoadRunner would you use to play Back the script in
‘multi User mode?
‘The Controller component is used to playback the script in multi-user mode, This is
done dsring @ scenario nin where a vuser script is executed by a number of rusere
ina group.
What isa rendezvous point?
You insert rendervous points into Vuser scripts to emulate heawy wer load on the
server. Rendezvous pointe instruct Vusere to wait during test execution for multiple
‘Vusers to arrive at a certain point, in order that they may simultaneously perform &
task, For example, o emulate peak load on the bank server, you can insert a
Fendenvows point instructing 100 Vusers to deposit cash into ther accounts at the
What isa scenario?
‘A scenario defines the events that occur during each testing session. For example, @
scenario defines and controls the number of users to emulate the aciona to be
performed, and the machines on which the vitual users run thelr emulations.
Explain the recording mode for web Vuser script?
‘Weruse VuGen to develop a Vuser script by recording a user performing typical
business processes on client application. Vuden creates the script by recording
the activity between the cient and the server. For example, in web based
applications, VuGen monitors the client end ofthe database and traces all the
Fequesta gent to, and received fom, the database werver. We use VuGen to: Monitor
the communication between the application and the server; Generate the required,
function eal; and Insert the generated function calls into Vuser sept
Why do you create parameters?
Parameters are le script variables. They are used to vary input to the server and
to emulate eal usere, Diferent sets of data are sent to the sever each time the
sevipl ia run. Better simulate the usage mode! for more aceurate testing for the
Controller; one seept can emulate many diflerent were on the system
What Is correlation? Explain the difference between automatic correlation
land manual correlation?
Corzelation is used to obtain data which are unique foreach run of the script and
Which aze generated by nested queries. Correlation provides the value to avoidFiret we can scan for correlations, and eee 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 ean look up the diference eto see for
the values which needed to be cored. In my project, there was a unique id
developed for each customer, it was nothing but insurance Number, it waa
fenerated automatically andl was sequential and this value was unique. had to
Correlate thie vie n order to avoid errors whale running my serpt. Idi using,
sean for eorelation
Where do you set automatic correlation options?
‘Automatic correlation from web point of view ean he set in recording options and
‘correlation tab. Here we ean enable correlation for the entire seipt and choose
bither isste online messages or afline actions, where we can define rules for that
‘correlation. Automatic correlation for database can be done using show output
‘window and scan for correlation and picking the correlate query tab and choose
‘which query valite we want to correlate Ie know the specific vale to be
Correlated, we just do create correlation for the value and specify how the value to
be crested
What is a function to capture dynamic values in the web Vuser
‘seript?Veb_reg_save param Rinction saves dymamic data information to 8
parameter.
‘When do you disable log In Virtual User Generator, When do you choose
‘standard and extended logs?
(Once we debug our serpt and verify that itis functional, we can enable fogging for
errors only. When we add a script to @ scenario, logging is automaticaly disabled,
Standard Log Option: When you select
Standard log, i creates standard log of functions and messages sent during script
fexecution to use for debugging. Disable thie option for lage los testing acenarioe
When you copy a seript toa scenario, loging is automatieally disabled Extended
Log Option: Seiect,
extended log lo ereate an extended log, ineluding warnings and other messages.
Disable this option for large load testing scenarios. When you copy a seript to 8
scenario, logging is automaticaly disabled. We can specify which additional
Information should be added to the extended log using the Extended log options,
How do you debug a LoadRunner script?
VuGen contains two options to help debug Vuser seripta-the Run Step by Step
command! and breakpoints, The Debug settings in the Options dialog box allow us
to determine the extent ofthe trace to be performed during seenario execution. The
debug information is writen tothe Output window. We ean manually set theWhat are the changes you can make in run-time settings?
‘The Run Time Settings Wat we make are: a) Pacing Ithas iteration count. b) Log
Under this we have Disable Logging Standard Log and e) Extended Think Time in
think time we have two option lke Ignore think time ard Replay think ime ¢)
General Under general tab we can set the vers as process or as multithreading
and whether each step as & transaction.
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 murber of iterations
How do you perform functional testing under load?
Functionality under load ean be tested by running several Vusers concurrently. By
inereasing the amount of Vusers, we can determine how much load the server can
sostin,
What Is Ramp up? How do you set this?
‘This option is used to gradually increase the amount of Vusers/load on the server.
‘An infil value fa sot and a value to wait between intervals ean be apecied. To set
Ramp Up, go to Scenario Scheduling Options"
What is the advantage of running the Vuser as thread?
‘VuGen provides the facility to use multithreading. This enables more Vusers ta be
run per generator. I'the Vuser is run aa 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 af Vusers that ean be run on a single generator. If the Vuser is
rim ns 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 af the
parent driver program, thus enabling more Vusers tobe run per generator.
If you want to stop the
ne
‘The Ir abort function aborts the execution ofa Vuserseript: I instructs the Veer
to stop executing the Actions section, execute the vuser_end seetion ard end the
execution, This function is useful when you need to mantnlly abort a sexipt
txecution asa result of a specific error condition. When you end a seript using this
cecution of your script on error, how do you do‘The configuration of our systems refers to that ofthe lient machines on which we
rn the Vusers. The configuration of any client machine includes ita hardware
Settings, memory, operating system, software applications, development toca, ete
‘This eysiem component contguration should match withthe overall systems
configuration that would include the network infrastructure, the web server, the
flatabase server, and any other components that go with this larger system so as to
fchieve the load testing objectives
How do you Identify the performance bottlenecks?
Performance Btleneckes ean be detected by using monitors. These monitors might
be application server monitors, web server monitors, dalabase server monitors an
network monitors, They help in finding out the troubled area in our scenario which
causes increased response time, The measurements made are usually performance
Fesponse time, throughput, hits/sec, network delay graphs, ete
It web server, database and Network are all fine where could be the
problem?
‘The problem could be in the aystem itself or in the application server or in the eode
swritten forthe application,
How did you find web server related issues?
Uning Web sesource monitors we eat find the performance of web servers. Using
these monitors we ean analyze throughput an the web server, number of hile per
second that
Decurred during scenario, the number of http responses per second, the number of
Adommlonded pages per second,
How did you find database related issues?
By running “Database” monitor and help of ‘Data Resource Graph” we can find
database related issues, Eg, You can specily the resource you want to measure on
before running the controller and than you can see database relate issues
What is the difference between Overlay graph and Correlate graph?
Overlay Graphs It overlay the content of two graph that shares a common x axia.
Left Y-axis on the merged graph show's the current graphs value & Right Y-axis
show the value of Vans of the graph that was merged. Correlate Graph: Plt the ¥.
fis of two graphs agninat each other. The active graph's Y axis becomes X-axis of
merged graph. Y axis of the graph that was merged Becomes menged graphs Y-axis‘What is think time? How do you change the threshold?
‘Think time isthe time that a fen user waite between actions, Example: When @
luser receives data from a server, the user may wait several second to review the
data before responding. Tala delay ie known as the think tisme. Changing the
‘Threshold: Threshold level ia the level below which the recorded think tune will be
‘gnored. The default value is Sve (5) seeonds. We can change the think time
threshold in the Recording oplions of the Vuges.
What is the difference between standard log and extended log?
‘The standard log sends a subset of functions and messages sent during script
execution to a log. The subset depends on the Vuser type Extended log sends a
datalled eeript execution messages tothe output log. This ia mainly used during
‘debugging when we want information about: Parameter substitution. Data zeturned
by thevterver. Advanced trace
Explain the following functions: - r_debug_message
‘The lr debug message function sends a debug message Lo the output log when the
specified message clase is et. Ir output message The Ir output message function
Sends rolifeations o the Controller Outpul window and the Vuser lo le
Ircerror message ~The Ir ertor_message function sends an error message to the
oadRunner Output window. lrt_stit- The ie stit function associates &
character string (usually & SQL statement) with a cursor. This function sets a SQL
Statement tobe processed, Irifetch - The rfetch function fetches the next row
fom te result set,
‘Throughput
IE the throughput scales upward as time p
increase, this indientes that the bandwidth
relatively Matas the number of Vusers increased, it would
be reasonable to conclude that the bandwidth is constraining the volume of
data delivered,
‘Types of Goals in Goal-Oriented Scenario
nad Ranner proves you with ve diffrent types of goals in a goal oriented.
‘The number of concurrent VusersWhat is correlation? Explain the difference between automatic correlation
and manual correlation?
Correlation is used to obtain data which are unique foreach run of the seript and
which ace generated by nested! queries. Correlation provides the value to avoid
trrors arising out of daplicatevalses and also optimizing the code (to avoid nested
queries). Automatic correlation is where we set some rues fo correlation. Itcan be
{application server specific. Here values are replaced by data which are created by
these rules. In manual correlation, the value we Want to correlate is scanned and
‘create corelation is used to correlate,
‘Where do you set automatic correlation options?
‘Automatic correlation from web point of view, can be set in recording options and
Correlation tab, Here we can enable correlation for the entre sept and choose
tlther isu online messages or offine actions, where we can define rules for that
‘correlation. Automatic correlation for database, can be done using show output
‘window and scan for correlation and picking the correlate query tab and choose
Which query value we want to corelate we know Uhe aperfe value to be
Correlated, we just do ereate correlation for the value and specify how the value ta
be ereate
What is a function to capture dynamic values in the web vuser script?
Web reg. save param function saves dynamic data information to-a parameter.