LoadRunner interview questions and answers for performance testers
LoadRunner interview questions check whether you can take a business flow from recording to a trustworthy load test: script it in VuGen with the right protocol, correlate dynamic values, parameterize data, mark transactions and add checks, then run a Controller scenario with sensible pacing and read the Analysis graphs to find the bottleneck. Expect tool vocabulary in the first round, a correlation or parameterization problem in the second, and scenario questions about results that do not add up.
By Evin JohnPublished 7 min read
Where LoadRunner questions come up
LoadRunner has been a standard commercial load testing suite in large enterprises for a long time, with a long list of supported protocols, so it shows up in performance tester and performance engineer interviews at banks, insurers, telecoms, retailers and the services firms that test for them. The product has changed owners and edition names over the years (it is sold by OpenText today), so use the names in the job description. The round usually moves from components and scripting to a scenario design and a results discussion. For test types, percentiles and workload modelling in any tool, see performance testing interview questions.
- Tool basicsComponents, protocols, the parts of a script and the run-time settings.
- Scripting problemA recorded script fails on replay: find the dynamic value, correlate it, parameterize the user data and add a text check.
- Scenario designUsers, ramp-up, duration, pacing and generator layout for a stated business volume.
- Results and diagnosisRead response time, throughput and error graphs together and explain what broke first.
Fundamentals: components and protocols
| Question | What it tests | What a strong answer shows |
|---|---|---|
| What are the main components of LoadRunner? | Architecture | VuGen (Virtual User Generator) records and edits scripts, the Controller designs and runs scenarios, load generators run the virtual users, and Analysis turns the results into graphs and reports. |
| What is a Vuser? | Concept | A virtual user: one running copy of a script that sends the same protocol traffic a real client would, without a real browser or desktop app in most protocols. |
| What does a protocol mean in LoadRunner? | Protocols | The communication layer the script records and replays, such as Web HTTP/HTML, TruClient for browser-level scripts, Web Services, Citrix, SAP GUI, terminal emulation for mainframe screens, or Java and .NET Vusers. Picking the right one is the first design decision. |
| Web HTTP/HTML or TruClient? | Trade-off | HTTP/HTML replays requests, so it is light on generators and suits high volumes, but needs correlation work. TruClient drives a real browser engine, so it handles heavy JavaScript with less scripting but costs far more generator resources per user. |
| What are vuser_init, Action and vuser_end? | Script structure | vuser_init runs once per Vuser (often login), Action repeats for each iteration, and vuser_end runs once at the end (often logout). Where login goes changes the load you create. |
| What language are web scripts written in? | Scripting | Web HTTP/HTML scripts are C with LoadRunner's function library. Other protocols use other languages, such as JavaScript for TruClient and Java for Java Vusers. |
| What is a transaction? | Measurement | A named, timed block between lr_start_transaction and lr_end_transaction. Transactions are what Analysis reports as response times, so name them after business steps. |
| What is a rendezvous point? | Concurrency | A spot in the script where Vusers wait until a set number arrive, then go together, to test a burst on one action. It does not represent normal traffic. |
| What is think time? | Realism | The pause a real user takes between steps, recorded or set in the script. Run-time settings can replay it as recorded, scale it, randomize it or ignore it. |
| What does Analysis give you that the Controller does not? | Results | Merged and filtered graphs, summary percentiles, SLA status, correlation of client graphs with server monitors, and exportable reports after the run. |
Correlation, parameterization and checks
| Question | What a strong answer shows |
|---|---|
| What is correlation and why does a recorded script fail without it? | The server returns values that change every session, such as session ids, CSRF tokens or view state. The recording hard-codes the old value, so replay is rejected. Correlation captures the new value from a response and substitutes it into later requests. |
| Automatic or manual correlation? | Automatic rules and the correlation scan catch common patterns quickly. Manual correlation, comparing two recordings and writing a capture with left and right boundaries, is still needed for unusual values, and interviewers expect you to know how. |
| Where must the capture function go? | Before the request whose response contains the value. Capture functions are registered for the next request; placing one after the request finds nothing. |
| What is parameterization? | Replacing hard-coded inputs (users, products, search terms) with parameters fed from data files, so each Vuser and iteration uses realistic, varied data and the test does not just hit a cache. |
| Sequential, random or unique, and update on each iteration or each occurrence? | Selection controls which row a Vuser takes; update controls when it moves on. Unique rows are needed when the system rejects the same login twice at once, and the file needs enough rows for every Vuser and iteration. |
| Why add text checks? | An HTTP 200 can carry an error page. A text check (web_reg_find) fails the step when expected content is missing, which keeps fast error pages from looking like good response times. |
| How do you debug a script that fails on replay? | Replay with extended logs, compare the replay with the recording, find the first request that differs, and check for a missing correlation, a stale parameter or a server-side validation. |
What is lr_eval_string used for? | It returns the current value of a parameter as a string, so C code can test or log it, as in the check below. |
Action()
{
// Register the capture before the request whose response holds the token
web_reg_save_param_ex("ParamName=csrfToken",
"LB=name=\"csrf\" value=\"",
"RB=\"",
SEARCH_FILTERS, "Scope=Body",
LAST);
lr_start_transaction("01_Open_Login");
web_url("login_page",
"URL={BaseUrl}/login",
"Resource=0",
"Mode=HTML",
LAST);
lr_end_transaction("01_Open_Login", LR_AUTO);
lr_think_time(5); // outside the transaction, so it is not counted as response time
// A text check: a 200 response with an error page should still fail
web_reg_find("Text=Welcome back", "SaveCount=welcomeCount", LAST);
lr_start_transaction("02_Submit_Login");
web_submit_data("login",
"Action={BaseUrl}/login",
"Method=POST",
"Mode=HTML",
ITEMDATA,
"Name=username", "Value={UserName}", ENDITEM,
"Name=password", "Value={Password}", ENDITEM,
"Name=csrf", "Value={csrfToken}", ENDITEM,
LAST);
if (atoi(lr_eval_string("{welcomeCount}")) == 0) {
lr_error_message("Login failed for user %s", lr_eval_string("{UserName}"));
lr_end_transaction("02_Submit_Login", LR_FAIL);
return 0;
}
lr_end_transaction("02_Submit_Login", LR_AUTO);
lr_think_time(8);
return 0;
}Run-time settings, pacing and scenarios
- Pacing versus think time? Think time is inside an iteration, between steps. Pacing sets when the next iteration starts: as soon as the last one ends, after a fixed or random delay, or at a fixed or random interval. Interval pacing is how you hold a target business rate.
- Manual versus goal-oriented scenarios? In a manual scenario you set Vuser counts and the schedule. In a goal-oriented one you give a target (for example transactions per second or Vusers) and the Controller adjusts the load to reach it.
- Schedule by scenario or by group? By scenario applies one ramp-up, duration and ramp-down to everyone. By group gives each script its own timing, which helps when batch-like and interactive users start at different times.
- Why spread Vusers over several load generators? One overloaded generator adds its own delay to every response time. Watch generator CPU, memory and network during the run and add machines before they saturate.
- What is IP spoofing and when is it needed? Giving Vusers different source IP addresses on a generator, for systems that balance or limit traffic by client IP.
- What do the log settings change? Standard or extended logging helps while debugging, but heavy logging during a full load test slows generators. Log only on errors in the real run.
- What do browser emulation and cache settings do in web scripts? They decide whether Vusers behave like returning visitors with cached resources or like new ones downloading everything, which changes the load on the servers a lot.
import math
def pacing_plan(target_per_hour, vusers, iteration_seconds):
"""Fixed-interval pacing: each vuser starts an iteration every `pacing` seconds."""
pacing = vusers * 3600 / target_per_hour
if iteration_seconds <= pacing:
return f"pacing {pacing:.0f}s per vuser: target reachable"
best = vusers * 3600 / iteration_seconds
needed = math.ceil(target_per_hour * iteration_seconds / 3600)
return (f"pacing {pacing:.0f}s is shorter than a {iteration_seconds}s iteration: "
f"at most {best:.0f}/hour with {vusers} vusers, need at least {needed}")
print(pacing_plan(6000, 50, 25)) # pacing 30s per vuser: target reachable
print(pacing_plan(9000, 50, 25)) # ...at most 7200/hour with 50 vusers, need at least 63Analysis and senior scenario questions
| Scenario | What a strong answer covers |
|---|---|
| Response times climb while hits per second stays flat. | Something is queuing: the server cannot take more work, so extra Vusers only wait. Correlate with server CPU, thread pools, connection pools and database waits for the same minutes. |
| Throughput drops sharply at one point and errors appear. | Find the first error type and timestamp in Analysis, then match it to server logs. Timeouts, connection refusals or a pool limit are common first failures. |
| The test passed but production was slow at a lower volume. | Question the workload model and data: was the mix of business flows right, was cache-friendly data reused, were think time and pacing realistic, and did the test include the slow path users actually take? |
| Response times look excellent and nearly identical. | Suspect error pages or cached responses. Check text checks, error counts and response sizes before celebrating. |
| Average response time meets the target but users complain. | Averages hide the tail. Report percentiles per transaction and look at the slowest requests and their timing. |
| How do you set SLAs in Analysis? | Per transaction, using a percentile or average threshold agreed with the business, so the report shows pass or fail per step rather than a single verdict. |
| What server-side monitoring do you add? | CPU, memory, disk and network on every tier, application metrics such as thread and connection pool use, database waits, and garbage collection for JVM or .NET services, either through the Controller's monitors or the team's own monitoring tool. |
| The client wants a test against production. | Discuss risk, timing, data that real users might see, third parties that would receive traffic, and a stop plan. Many teams use a production-like environment instead. |
- How do you decide how many Vusers to run? From the business volume, not a round number: the target transactions per hour, the iteration length and pacing give the user count, with some headroom for the peak.
- How do you handle a third-party payment service in a load test? Stub or virtualize it unless the provider has agreed to the traffic, and say clearly in the report what was not tested.
- When would you choose an open-source tool over LoadRunner? When protocols are plain HTTP, budgets are tight and the team prefers code in Git. LoadRunner earns its place with protocols other tools handle poorly, such as Citrix, SAP GUI or terminal emulation, and with enterprise reporting needs. Mainframe green-screen flows are one example; mainframe interview questions covers that platform.
- How do you report results to non-technical stakeholders? One page: the volume tested, which transactions met their targets, the first bottleneck found, the risk if nothing changes and the recommended fix.
Fictional example
- Interviewer
- A login and checkout script replays fine with one Vuser. With ten, most iterations fail at checkout. What do you look at?
- Candidate
- Something is shared between users that should be unique. First the data: if every Vuser logs in as the same account or picks the same cart id, the application may reject concurrent sessions or lock the same order, so I would check the parameter file has enough unique rows and that selection is unique with the right update rule. Second, a value that was correlated once in vuser_init but changes per iteration, like an order token. I would replay with extended logs for two Vusers, compare their requests at the failing step, and fix whichever value is duplicated. Then I would add a text check on the order confirmation so the next run fails loudly instead of silently.
How to prepare for a LoadRunner interview
- Script one real flowIf you have access to LoadRunner through work or a trial, record login, search and checkout on a test app, then correlate, parameterize and add checks by hand.
- Know the function namesTransactions, think time, capture, text check, parameter evaluation and error messages, with where each goes in a script.
- Design a scenario on paperFrom a stated business volume to Vusers, pacing, ramp-up, duration and generator count.
- Read results aloudPractice explaining a response time, throughput and error graph together in two minutes.
- Prepare one bottleneck storyWhat you saw, what the server metrics showed, what changed and how the retest looked. Related tools that come up in test roles include LabVIEW on the hardware test side.
LoadRunner rounds mix tool recall with analysis, and the analysis answers fall apart if you skip steps. Natively, an AI interview assistant for Mac and Windows, transcribes a mock performance round on your computer so you can review how you walked through a graph, and it can suggest answers live while you practice. Screenshot a script snippet or an Analysis graph in practice and it can read it and suggest what to check. With Pro or the free trial it uses the résumé and job description you add, and the transcript and notes are saved to go over later.
Questions people ask
What LoadRunner questions are asked in interviews?
The components (VuGen, Controller, load generators, Analysis), protocols, vuser_init, Action and vuser_end, transactions, think time, rendezvous points, correlation, parameterization, text checks, pacing, scenario types and how to read Analysis graphs.
What is correlation in LoadRunner?
Capturing a value the server generates for each session, such as a session id or token, from a response and reusing it in later requests. Without it a recorded script replays stale values and fails.
What is the difference between think time and pacing?
Think time is the pause between steps inside one iteration. Pacing controls when the next iteration starts, which is how you hold a target transaction rate per Vuser.
Is LoadRunner still used?
It remains common in large enterprises, especially for protocols such as Citrix, SAP GUI and terminal emulation. Many teams also use open-source tools for plain HTTP, so interviews often ask you to compare them.
Where to go next
Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.
Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.
