Loadrunnner - Analysis
Vuser group mode. In this mode, each script you select for the scenario is assigned to a Vuser
group. You assign a number of Vusers to each Vuser group that you create. 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.
l Percentage mode. In this mode, you define a 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
Manual Scenario gives you control over the number of running Vusers and
the times at which they run, and lets you test how many Vusers your
application can run simultaneously. You can use the Percentage Mode to
distribute the total number of Vusers among scripts based on a percentage
specified by your business analyst
Goal-Oriented Scenario is used to determine if your system can achieve a
particular goal. You determine the goal based on, for example, a specified
transaction response time or number of hits/transactions per second
Goals Types for Goal-Oriented Scenarios
l Virtual Users
l Pages per Minute/Hits per Second/Transactions per Second
l Transaction Response Time
Down The Vuser is down.
Pending The Vuser is ready to be initialized and is waiting for an
available load generator, or is transferring files to the load generator. The Vuser
will run when the conditions set in its scheduling attributes are met.
Initializing The Vuser is being initialized on the remote machine
Ready The Vuser already performed the init section of the script and is ready to run.
Running The Vuser is running. The Vuser script is being executed on a load generator.
Gradual
Exiting The Vuser is completing the iteration or action it is running (as defined in Tools
> Options > Run-Time Settings) before exiting.
Exiting The Vuser has finished running or has been stopped, and is now exiting.
Stopped The Vuser stopped when the Stop command was invoked
Scenario Groups pane (Manual scenario in Vuser
Group mode) Displays the Vuser groups created for the scenario.
Scenario Schedule pane (Manual scenario) Displays the scenario schedule.
Scenario Scripts pane Displays the Vuser scripts selected for the scenario
A Vuser script is a record of a typical end-user business process. VuGen works on a record-and-playback principle
System Resource monitors to monitor a machine's system resource usage during a performance test and identify server performance bottlenecks.
You can join two graphs together to see the effect of one graph's data upon another graph's data. This
is called correlating two graphs
VUers, ERROR, Transactions( AVG Tran Resp Time, Trans per send, Total Trans per sec)
The process of locating, extracting and replacing recorded dynamic values with values valid at replay is called "correlation
After recording the business processin LoadRunner, the script might contain dynamic valuesin the arguments of the generated API functions. When the script isreplayed, these recorded values are sent to the server. However, the web server rejectsthem because they are not valid in the replay session. Generally, the test fails when this happens.
Locate the dynamic data in the server responses, including headers. l Extract and save that dynamic data. l Replace the hard-coded dynamic data from the recording session with the data from the current replay session
LoadRunner can detect dynamic valuesin the script and suggest their replacement with parameters. For automatic correlation, LoadRunner usesrule-based, recording-based, and replay-based correlations.
After recording a Vuserscript, you use VuGen to replay the script. This helps to test the basic functionality of the Vuserscript and to uncover errors and issuesthat need to be addressed. For example, you may find the need for correlation, which is a typical issue that isrevealed when you first replay a script.
When the replay issuccessful, you are ready to enhance the script by adding load-testing functionality to the script. Such functionality could include parameterization, transactions, and rendezvous points.
Running a Vuser as a Process or Thread
the Controller uses a driver program (such as mdrv.exe or r3vuser.exe) to run your Vusers.
f you run each Vuser as a process, then the same driver program islaunched (and loaded) into the memory again and again for every instance of the Vuser
Alternatively, 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)
ContinueOnErrorinstructsthe Vuser to continue when an error occurs. To activate the option, specify 1. To disable the option, specify 0.
VuGen generates a script that containsthe actual values used during recording. Suppose you want to perform the script's actions(query, submit, and so forth) using different valuesfrom those recorded. To do this, you replace the recorded values with parameters
The schedule type
Scenario. Runs all participating Vuser Groups together on the same schedule.
Group. Each Vuser group runs on its own schedule
, LoadRunner displays the following graphs in the graph display area:
a. Running Vusers b. Transaction Response Time c. Hits per Second d. Windows Resources