Most Frequently asked LoadRunner Interview Questions.
In our previous tutorial, we explored all about Test Result Analysis in LoadRunner.
This article is going to focus on the most important commonly asked LoadRunner interview questions and answers that will help you be successful in any performance tester’s interview using LoadRunner.
LoadRunner is one of the best-licensed Performance Testing tools in the market. It is best suited for most of the upcoming technologies because of the wide range of supported protocols.
=> Click Here For Complete Series of LoadRunner Tutorials
A few basic pointers before we begin:
#1) LoadRunner interview questions can be categorized into 3 main types – Scripting, Execution, and Analysis. It is important for beginners to focus more on the scripting part.
#2) Http/HTML is mostly used Protocol, for a start try to perfect this protocol.
#3) Be sure to know the exact version of LoadRunner that you worked on. In case of work experience with a previous version, try to keep yourself updated with the features that are part of the newer/current versions.
#4) Performance Testing interviews are more practical than they used to be. Scenario oriented questions are common rather than straightforward ones. Some companies, even make scripting tests a part of the interview process. So, be prepared for the same.
#5) Even in scripting, it is preferred that you be able to customize code, instead of just record and replay.
#6) Expect questions on – think time, transactions, comments, recording options, runtime settings, etc. – these are to test your knowledge of scripting best practices.
The following are some of the Performance Testing interview questions that will need some experience to answer. Try to keep these questions in mind while working on your performance test projects, so the interview preparation activity becomes a continuous process.
- What are the different scripting issues you faced so far?
- What are the performance bottlenecks that you found in the projects you were working on? What are the recommendations made to overcome those issues?
- Have you applied Little’s law to your project? If so, how?
- What is your approach for analysis?
- What do you monitor while execution?
- How to extract server data for test execution and how to analyze that?
- How to identify performance bottlenecks?
Key question areas are:
- Challenges that you face during scripting
- Correlation function
- Error handling
- Different recording modes for Web HTTP/HTML protocol.
- Scenario creation
- Challenges during execution
- Analysis
Below we have provided a few common LoadRunner interview questions and answers to them. However, please note that the best results can be achieved by providing answers based on your exposure, expertise, and interpretation of the concepts. Learning just the answers to questions is not always optimum. Practice, Learn and Expert – this should be your approach for Performance Testing interview preparation.
LoadRunner Interview Questions And Best Answers
Q #1) What is the difference between Performance Testing and Performance engineering?
Answer: In Performance Testing, testing cycle includes requirement gathering, scripting, execution, result sharing, and report generation. Performance Engineering is a step ahead of Performance Testing where after execution; results are analyzed with the aim to find the performance bottlenecks and the solution is provided to resolve the identified issues.
Q #2) Explain Performance Testing Life Cycle.
Answer:
- Step 1: System Analysis (Identification of critical transaction)
Virtual User Generator - Step 2: Creating Virtual User Scripts (Recording)
- Step 3: Defining Users Behavior (Runtime setting)
LoadRunner Controller - Step 4: Creating Load Test Scenarios
- Step 5: Running the Load Test Scenarios and Monitoring the Performance
LoadRunner Analysis - Step 6: Analyzing the Results
Refer Performance Testing Tutorial #2 for more details.
Q #3) What is Performance Testing?
Answer: Performance Testing is done to evaluate the application’s performance under load and stress conditions. It is generally measured in terms of the response time of the user’s action on an application.
Q #4) What is Load Testing?
Answer: Load Testing is to determine if an application can work well with the heavy usage resulting from a large number of users using it simultaneously. The load is increased to simulates the peak load that the servers are going to take during maximum usage periods.
Q #5) What are the different components of LoadRunner?
Answer:
The major components of LoadRunner are:
- VUGen: Records Vuser scripts that emulate the actions of real users.
- Controller: Administrative center for creating, maintaining and executing load test scenarios. Assigns scenarios to Vusers and load generators, starts and stops loading tests.
- Load Generator: An agent through which we can generate load
- Analysis: Provides graphs and reports that summarize the system performance
Q #6) What is the Rendezvous point?
Answer: Rendezvous point helps in emulating heavy user load (request) on the server. This instructs Vusers to act simultaneously. When the Vuser reaches the Rendezvous point, it waits for all Vusers with Rendezvous point. Once designated numbers of Vusers reaches it, the Vusers are released. Function lr_rendezvous is used to create the Rendezvous point. This can be inserted by:
- Rendezvous button on the floating Recording toolbar while recording.
- After recording Rendezvous point is inserted through Insert> Rendezvous.
Q #7) What are the different sections of the script? In what sequence do these sections run?
Answer: LoadRunner script has three sections Vuser_init, Action, and Vuser_end.
- Vuser_init has requests/actions to login to the application/server.
- Action has actual code to test the functionality of the application. This can be played many times in iterations.
- Vuser_end has requests/actions to login out of the application/server.
The sequence in which these sections get executed is Vuser_init is at the very beginning and Vuser_end at the very end. The action is executed in between the two.
Q #8) How do you identify which protocol to use for any application?
Answer: Previously Performance tester had to depend much on the development team to know about the protocol that the application is using to interact with the server. Sometimes, it also used to be speculative.
However, LoadRunner provides great help in the form of Protocol Advisor from version 9.5 onwards. Protocol advisor detects the protocols that the application uses and suggests to us the possible protocols in which script can be created to simulate the real user.
Q #9) What is a Correlation? Explain the difference between Automatic Correlation and Manual Correlation?
Answer: Correlation is used to handle the dynamic values in a script. The dynamic value could change for each user action (value changes when action is replayed by the same user) or for different users (value changes when action is replayed with a different user). In both cases, correlation takes care of these values and prevents them from failing during execution.
Manual Correlation involves identifying the dynamic value, finding the first occurrence of dynamic value, identifying the unique boundaries of capturing the dynamic value, writing correlation function web_reg_save_param before the request having the first occurrence of a dynamic value in its response.
Automated correlation works on predefined correlation rules. The script is played back and scanned for autocorrelation on failing. Vugen identifies the place wherever the correlation rules work and correlate the value on approval.
Refer to this tutorial for more details.
Q #10) How to identify what to correlate and what to parameterize?
Answer: Any value in the script that changes on each iteration or with the different users while replaying needs correlation. Any user input while recording should be parametrized.
Q #11) What is Parameterization & why is Parameterization necessary in the script?
Answer: Replacing hard-coded values within the script with a parameter is called Parameterization. This helps a single virtual user (Vuser) to use different data on each run. This simulates real-life usage of an application as it avoids server from caching results.
Refer to this tutorial for more details.
Q #12) How you identify Performance test use cases of any application?
Answer: Test cases/Uses cases for Performance tests are almost the same as any Manual/Functional testing test cases where each and every step performed by the user is written. The only difference is that all Manual test cases can’t be Performance Testing use cases as there are few criteria for the selection as:
- The user activity should be related to the critical and most important functionality of the application.
- The user activity should be having a good amount of database activity such as search, delete or insert.
- The user activity should be having good user volume. The functionality of having less user activity is generally omitted from the Performance testing point of view. For Example, admin account activity.
Any of the Manual test cases that fulfill the above criteria can be used as a Performance Testing use case/test case. If manual test cases are not written step by step, the Performance team should create dedicated documents for them.
Q #13) While scripting you created correlation rules for Automatic Correlation. If you want to share the correlation rules with your team members working on the same application so that he/she can use the same on his workstation, how will you do that?
Answer: Correlation rules can be exported through the .cor file and the same file can be imported through VuGen.
Q #14) What are different types of Vuser logs that can be used while scripting and execution? What is the difference between these logs? When you disable logging?
Answer: There are two types of Vuser logs available –Standard log and Extended log. Logs are key for debugging the script. Once a script is up and running, logging is enabled for errors only.
Standard log creates a log of functions and messages sent to the server during script execution whereas the Extended log contains additional warnings and other messages. Logging is used during debugging and disabled while execution. Logging can be enabled for errors in that case.
Q #15) What is the Modular approach of scripting?
Answer: In Modular approach, a function is created for each request (For Example, login, logout, save, delete, etc.) and these functions are called wherever required. This approach gives more freedom to reuse the request and saves time. With this approach, it is recommended to work with web custom requests.
Q #16) What are the different types of goals in Goal-Oriented Scenario?
Answer: LoadRunner has five different types of goals in Goal-Oriented Scenario. These are:
- 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
Q #17) How is each step validated in the script?
Answer: Each step in the script is validated with the content on the returned page. A content check verifies whether specific content is present on the web page or not. There are two types of a content check which can be used in LoadRunner:
- Text Check: This checks for a text/string on the web page.
- Image Check: This checks for an image on a web page.
Q #18) How is the VuGen script modified after recording?
Answer: Once the script is recorded, it can be modified with the following process:
- Transaction
- Parameterization
- Correlation
- Variable declarations
- Rendezvous Point
- Validations/Checkpoint
Q #19) What are Ramp-up and Ramp Down?
Answer:
- Ramp-up: Rate at which virtual users add to the load test.
- Ramp Down: Rate at which virtual users exit from the load test.
Q #20) What is the advantage of running the Vuser as the thread?
Answer: Running Vusers as thread helps generate more virtual users from any machine due to the small memory print of the Vuser running a thread.
Q #21) What is wasted time in the VuGen Replay log?
Answer: Waste time is never performed by any browser user and just the time spent on the activities which support the test analysis. These activities are related to logging, keeping record and custom analysis.
Q #22) How do you enable text and image checks in VuGen?
Answer: This can be done by using functions web_find (for text check) and web_image_check (for image check) and enabling image and text check from runtime setting.
Run Time Setting–>Preference–>Enable the Image and text checkbox.
Q #23) What is the difference between web_reg_find and web_find?
Answer: web_reg_find function is processed before the request sent and is placed before the request in the VuGen script whereas a web_find function is processed after the response of the request comes and is placed after the request in VuGen script.
Q #24) What are the challenges that you will face to script the step “Select All” and then “Delete” for any mail account?
Answer: In this case, the post for “Select All” and “Delete” will change every time depending on the number of mails available. For this the recorded request for the two should be replaced with the custom request and string building is required to build the post. (Note– This question needs practical knowledge. So please this practically and formulate your answer).
Q #25) What is a difference between pacing and think time?
Answer: Pacing is the wait time between the action iterations whereas thinking the time is a wait time between the transactions.
Q #26) What is the number of graphs you can monitor using Controller at a time? What is the max of them?
Answer: One, two, four and eight graphs can be seen at a time. The maximum number of graphs that can be monitored at a time is 8.
Q #27) You have an application that shows the exam results of the student. Corresponding to the name of each student its mentioned whether he passed or failed the exam with the label of “Pass” and “Fail”. How will you identify the number of passed and failed students in the VuGen script?
Answer: For this text check is used for the web page for the text “Pass and “Fail”. Through the function web_reg_find, we can capture the number of texts found on the web page with the help of “SaveCount”. SaveCount stored the number of matches found. For example-
web_reg_find("Text=Pass", "SaveCount=Pass_Student", LAST); web_reg_find("Text=Fail", "SaveCount=Fail_Student", LAST);
Q #28) During the load test, what is the optimum setting for Logs?
Answer: For the load test log level is set to minimal. This can be achieved by setting the log level to the standard log and selecting the radio button “Send a message only when an error occurs”.
Q #29) How will you handle the situation in scripting were for your mailbox you have to select any one mail randomly to read?
Answer: For this, we will record the script for reading the first mail. Try to find what is being posted in the request to read the first mail such as mail ids or row no.
From the post where a list of emails is reflecting, we will try to capture all the email ids row no with correlation function and keeping Ordinal as All i.e. ORD=All. Replace the requested email id in the read post with any of the randomly selected email id from the list of captured email ids.
Refer to this Scripting Tutorial.
Q #30) What is the Think Time? What is the Threshold level for think time and how can be this changed?
Answer: Think time is the wait time inserted intentionally between the actions in the script to emulate real user`s wait time while performing an activity on the application. The Threshold level for Think time in the level below which recorded think time will be ignored. This can be changed from Recorded options->Script->Generate think time greater than the threshold.
Q #31) How is the Automated Correlation configured?
Answer: Any setting related to Automated Correlation can be done by General Options->Correlation. Correlation rules are set from Recording options->Correlations.
Q #32) How do you decide the number of load generator machines required to run a test?
Answer: The number of load generators required totally depends on the protocol used to create the script and configuration of the load generator machine. Each protocol has a different memory print and this decides how many virtual users can be generated from the give configuration of the machine (load generator).
Q #33) What are the capabilities exactly you look for while selecting the performance testing tool?
Answer: Performance testing tool should capable of:-
- Testing an application built using multiple technologies and hardware platforms.
- Determine the suitability of a server for testing the application
- Testing an application with a load of tens, thousand and even thousands of virtual users.
Q #34) How are concurrent users differing from simultaneous users?
Answer: All simultaneous users are concurrent users but vice versa is not true.
All the Vusers in the running scenario are Concurrent users as they are using the same application at the same time but maybe or may not be doing the same tasks. Simultaneous users perform the same task at the same time. Concurrent users are made Simultaneous users through rendezvous points.
Rendezvous points instruct the system to wait until a certain number of Vusers arrive so that they all can do a particular task simultaneously.
Q #35) How do you identify which values need to be correlated in the script? Give an example.
Answer: This can be done in ways:
- Record the two scripts with similar steps and compare them using WDiff utility. (See tutorial Correlation).
- Replay the recorded script and scan for correlation. This gives a list of values that can be correlated.
Session-Id is a good example of this. When two scripts are recorded and compared using WDiff utility. Session ids in the two scripts should be different and WDiff highlights these values.
Q #36) How does caching affect Performance Testing results?
Answer: When data is cached in the server’s memory, the server needs not to fetch the result and no server activity triggered. The test result does not reflect the same performance of real users using the application with different data.
Q #37) How will you stop the execution of a script on error?
Answer: This can be achieved through lr_abort function. The function instructs the Vuser to stop executing the Action section and end the execution by executing the vuser_end section. This function is helpful in handling a specific error.
This can also be used to handle a situation rather than error where execution is not possible. The function assigned “Stopped” status to the Vuser which stopped due to lr_abort function. In the Run-Time setting, “Continue on error” should be unchecked.
Over to you
We hope this huge compilation of LoadRunner interview questions with answers will prove useful to you all.
At STH, we always profess the importance of fundamentals. The same is true to succeed in the performance test professional as well. However, we wish that this performance testing interview questionnaire will be an instrumental reference point for all of you aspiring to find or advance in a performance testing career using LoadRunner.
Wish you all the very best!
=> Visit Here For Complete Series of LoadRunner Tutorials
PREV Tutorial | First Tutorial
I hope you enjoyed the whole range of tutorials in this LoadRunner Series.
Prakhar,
When you need to apply similar settings to more than one script you create a group and run those. This is helpful for stress testing where you actually involve a group to perform few actions first and then you add one more group etc.
For Memory leaks, please do an endurance test.
Very usefull
Thanks for the useful interview question answers, As a beginner it is very helpful to know about the subject and helps me to do well during interviews, The answers explained here are very easy to understand the subject. Thank You
Timestamp in unix format?
Simultaneous and Concurrent definition is wrong. It should be in reverse. Concurrent is – each user using the same application and doing the same task.
can you post some Manual testing Question with Answer please.
Can you provide text tutorial for all the major topics like 1. correlation, 2. parameterization, 3. controller 4. analysis ?
That will be helpful.
Also can you please provide interview questions on controler and analysis part specifically ?
Sushil
Really helpful. Thank u so much for sharing such a great stuff.
Question are useful..!
some question
1) what is difference between schedule by scenario and schedule by group ?
2) How to check for memory leaks in application ?
Thank you very much sire,
I learned a lot in this class in one hour
I can now start my new project with confidence thanks to your lessosn
good.
I have attended interview at infosys and most of the questions were asked from these.
Well, what you said is exactly right, Now the Whole things are changed even infosys is concentrating on the concepts on performance engineering like dynatrce and more performance monitoring tools are playing a good role to clear your interview.
Very useful for beginners to get into the PT with more detailed view at the components of load runner. Should provide enough data to get started. Useful content.
Thanks
Between manual & automatic correlation, which one is used preferred over the other?
thank you very much sir…
Well, what you said is exactly right, Now the Whole things are changed even infosys is concentrating on the concepts on performance engineering like dynatrce and more performance monitoring tools are playing a good role to clear your interview.
Hi All,
Now a days apart from given questions which are asked indirectly, interviewer ask scenario based question to check practical approach. He try to put the problem that he faced in a case study and expect to give a answer with detail approach. So there is no exact questions for that.
Great. But the definition of concurrent and simultaneous is wrong. Concurrent- Doing the same task at the same time. Simultaneous- Doing different task at different time. because , each we are not using Rendezvous point here, so some uvser will get the thread soon and will finish the task earlier. And does not wait for the next vuser.
Excellent…!Much Needed…!Expecting to share Server Resources…!
Hello
I have a question
How can we apply parameteriztion for railway booking process?
This too much USEFUL in LR,really appreciated about excellent answer given.
thanks for you this was so much help full for me. can post most critical quation in perfomance testing
Very Helpful…thanks a lot
could you plz send me quations and answers for experience candidates(on real time). i mean what they will ask quations on real time.
Very much useful and informative questions.
Its very good
That was very helpful. Could you please help me/us with file handling on vugen script? Thanks.
Thank you very much for this.
Is it sufficient for experience persons.
will they ask this quations only .
Excellent!!! much needed.. Thanks a lot…
can any one please tell me send me the customization/error handling in detail with example.thanks
“Year2016”- capture 2016.
How do we capture. Any syntax for such type.
In bangalore, techvision is the best institute for loadrunner training. They will give training on 6 protocols and various monitoring and profiling tools. contact them for best practical trianing
Very useful and easy to understand
Very useful and detailed. Helped to be strong in basics of LR. Thank you!!
Very useful material for LR interviews
Very Nice Compilation..!!! Answers are more in practical manner.
Thanks.
Useful and very good. Thanks a lot!
What might be the main reasons for failing of the requests?
This is very helpfull to me………Thanks
How to find out network issues
I have 10 URLs? How to test the URLs in in at a time
What are the elements of a LoadRunner scenario and how do you choose a scenario?
This is pretty useful for LR interviews. thanks for the detailed answers.
thanks these are much use full.can you give more about analysis?it will help more.
very nice article…..
Which is the very best institute to learn Load runner in Hyderabad. (Which supports more of Practical trainings)
-Thanks.
it is very good for new learnears thanks for your suport.
it will help full for me. i will go thorough this videos and i will get back to you once its done.
thanks,
G Rammohan
it will be worked on functional or non functional and then what is the diff b/w F and NF
Hai ,
Tech Vision is the best “LOADRUNNER” training institute in Bangalore, provides you real-time training with six important protocols along with six monitoring and profiling tools.
Our practical, real time LOADRUNNER project scenarios training helps to work on LOADRUNNER projects. Also provides free LOADRUNNER training materials of soft copy and hard copy to enhance your skills and practice by yourself.
Our LOADRUNNER training program helps every student to achieve their goal in LOADRUNNER career.
Contact Us:
Tech Vision
3rd Floor, ramanjaneya complex,
Tulasi theatre road, Marathahalli,
Bangalore-560037
Land line:080-42067117,080-42007811
Mobile:8050148265
IRCTC..book tkts for future date..What is the syntax and logic
what is the difference between benchmark and baseline?
what is lotus?
Baseline test – whenever we don’t have SLA we have conduct baseline with single user, single script, single iteration execute script with standard alone mode, get a response time consider as baseline test.
Benchmark test – benchmark test will give a repeatable set of quantifiable results which from current and feature releases these results has to be compared baseline test results.
Testing the application performance with industry standards we will call as benchmark and if we doesn’t have a defined SLAS we are going to perform baseline test, those based on that baseline results we can proceed for the future tests.
Need interview Questions for Experience people and Indepth Questions and Answers
If i run a script from VUGEN and it has 5 requests, and if 4th request fails. Then how do i troubleshoot the script.
Very Helpful…thanks a lot for Load runner Interview Question and Answer.
Can you provide Profiling,performance configuration parameter and memory check Process
document. if possible
Again Thanks a lot In Advance !!!
Hi,
good questions… it helps new borns…
what is the difference between WinInet and socket leval port mapping.
Thanks in Advance
Subba
I am creating a script for web application which don’t loads directly but through a macro which hits the url.
How to load test such scenario?
Thanks
Thanks.. It helps a lot.. Please provide real time interview questions if possible.