You are on page 1of 8

37 Most Common LoadRunner Interview Questions and Best Answers

Posted In | Automation Testing, LoadRunner Tutorials, Questions & answers, Testing Interview questions In the past tutorials we have seen the basics of Performance testing and LoadRunner video tutorials. This article is going to focus on the most important commonly asked LoadRunner interview questions and answers that will help you be successful in 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 upcoming technologies because of the wide range of supported protocols. 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 straight forward 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, run time settings, etc. – these are to test your knowledge of scripting best practices.

execution. scripting. so the interview preparation activity becomes a continuous process. Learning just the answers to questions is not always optimum. What are the different scripting issues you faced so far? 2. Explain Performance Testing Life Cycle. Learn and Expert – this should be your approach for performance testing interview preparation. 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 See also => Performance Testing with LoadRunner Below we provided few common LoadRunner interview questions and answers to them. testing cycle includes requirement gathering. What are the performance bottlenecks that you found in projects you were working? What are the recommendations made to overcome those issues? 3. Practice. Try to keep these questions in mind while working on your performance test projects. What is the difference between Performance testing and Performance engineering? Ans => In Performance testing. Have you applied Little’s law in your project? If so. LoadRunner Interview Questions and Best Answers Q #1. What is your approach for analysis? 5. Q #2. how? 4. Ans => 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 . What do you monitor while execution? 6.The following are some of the performance testing interview questions that will need some experience to answer. results are analyzed with the aim to find the performance bottlenecks and the solution is provided to resolve the identified issues. expertise and interpretation of the concepts. result sharing and report generation. Performance Engineering is a step ahead of Performance testing where after execution. How to extract server data for test execution and how to analyze that? 7. However. please note that the best results can be achieved by providing answers based on your exposure. 1.

How do you identify which protocol to use for any application? Ans => Previously Performance tester had to depend much on the development team to know about the protocol that application is using to interact with the server. Action has actual code to test the functionality of the application. Q #8. Q #5. LoadRunner provides a great help in form of Protocol Advisor from version 9. Controller – Administrative center for creating. Assigns scenarios to Vusers and load generators. When the vuser reaches the Rendezvous point. Q #4.5 .Records Vuser scripts that emulate the actions of real users. Action and vuser_end. What is Load testing? Ans => 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. 2. Load Generator – An agent through which we can generate load Analysis – Provides graphs and reports that summarize the system performance Q #6. it waits for all Vusers with Rendezvous point. Function lr_rendezvous is used to create the Rendezvous point. What are the different components of LoadRunner? Ans => The major components of LoadRunner are: VUGen. Sometimes. What is the Rendezvous point? Ans => Rendezvous point helps in emulating heavy user load (request) on the server. Once designated numbers of Vusers reaches it. This can be inserted by: 1. However. What is Performance testing? Ans => Performance testing is done to evaluate application`s performance under load and stress conditions. Vuser_end has requests/actions to login out the application/server. maintaining and executing load test scenarios. This can be played many times in iterations. Q #7. it also used to be speculative. starts and stops loading tests. The sequence in which these sections get executed is vuser_init is at the very beginning and vuser_end at the very end.LoadRunner Analysis Step 6: Analyzing the Results Refer Performance Testing Tutorial #2 for more details. Load is increased to to simulates the peak load that the servers are going to take during maximum usage periods. the Vusers are released. What are the different sections of the script? In what sequence does these section runs? Ans => LoadRunner script has three sections vuser_init. Action is executed in between the two. It is generally measured in terms of response time of user’s action on application. This instructs Vusers to act simultaneously. Rendezvous button on the floating Recording toolbar while recording. Q #3. vuser_init has requests/actions to login to the application/server. After recording Rendezvous point is inserted through Insert> Rendezvous.

What is parameterization & why is parameterization necessary in the script? Ans => Replacing hard coded values within the script with a parameter is called Parameterization. . How to identify what to correlate and what to parameterize? Ans => Any value in the script that changes on each iteration or with different user while replaying needs correlation. II. In both the cases correlation takes care of these values and prevents them from failing during execution. The functionality having less user activity is generally omitted from Performance testing point of view. Refer this tutorial for more details. Any user input while recording should be parametrized. Performance team should create dedicated documents for them.g admin account activity. The script is played back and scanned for auto correlation on failing. writing correlation function web_reg_save_param before the request having the first occurrence of dynamic value in its response. Refer this tutorial for more details. The user activity should be having good amount of database activity such as search. III. Automated correlation works on predefined correlation rules. The user activity should be having good user volume. What is correlation? Explain the difference between automatic correlation and manual correlation? Ans => Correlation is used to handle the dynamic values in a script. Protocol advisor detects the protocols that application uses and suggest us the possible protocols in which script can be created to simulate the real user. 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: I. 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 different user). Vugen identifies the place wherever the correlation rules work and correlate the value on approval. finding the first occurrence of dynamic value. The user activity should be related to critical and most important functionality of the application. e. Manual Correlation involves identifying the dynamic value. This helps a single virtual user (vuser) to use different data on each run. identifying the unique boundaries of capturing the dynamic value. How you identify Performance test use cases of any application? Ans => Test cases/Uses cases for Performance test are almost same as any manual/functional testing test cases where each and every step performed by the user is written. Q #10. Any of the manual test cases that fulfill the above criteria can be used as performance testing use case/test case.onwards. This simulates real life usage of application as it avoids server from caching results. If manual test cases are not written step by step . Q #12. delete or insert. Q #11. Q #9.

it can be modified with the following process: Transaction Parameterization Correlation Variable declarations Rendezvous Point Validations/Check point . Once a script is up and running. save. Logging is used during debugging and disabled while execution. There are two types of content check which can be used in LoadRunner: Text Check.Q #13. Logging can be enabled for errors in that case. delete. logging is enabled for errors only. Q #18. With this approach it is recommended to work with web custom request.g. This approach gives more freedom to reuse the request and saves time. What is Modular approach of scripting? Ans => In Modular approach. logout. While scripting you created correlation rules for automatic correlation.This checks for an image on a web page. Logs are key for debugging the script. how will you do that? Ans => Correlation rules can be exported through . etc. A content check verifies whether specific content is present on the web page or not. Standard log creates a log of functions and messages sent to the server during script execution whereas Extended log contains additional of warnings and other messages. What are the different types goals in Goal-Oriented Scenario? Ans => LoadRunner has five different types of goals in Goal-Oriented Scenario. Q #16.This checks for a text/string on the web page Image Check. a function is created for each request (e. login. 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. Q #15.) and these functions are called wherever required. What are different types of vuser logs which can be used while scripting and execution? What is the difference between these logs? When you disable logging? Ans => There are two types of Vuser logs available –Standard log and Extended log. How is VuGen script modified after recording? Ans => Once the script is recorded. ------------ Q #14. How is each step validated in the script? Ans => Each step in the script is validated with the content on the returned page. If you want to share the correlation rules with your team member working on the same application so that he/she can use the same on his workstation.cor file and the same file can be imported through VuGen.

What are the number of graphs you can monitor using Controller at a time? What is the max of them? Ans => One. two. 2 LAST). Q #27. Q #20. What is difference between pacing and think time? Ans => Pacing is wait time between the action iterations whereas think time is wait time between the transactions. You have an application which shows the exam results of the student.This question needs practical knowledge. Q #22. Q #23. we can capture the number of texts found on the web page with the help of “SaveCount”. four and eight graphs can be seen at a time. What are the challenges that you will face to script the step “Select All” and then “Delete” for any mail account? Ans => In this case the post for “Select All” and “Delete” will change every time depending on the number mails available. These activities are related to logging. "SaveCount=Pass_Student". Run Time Setting–>Preference–>Enable the Image and text check box. For example1web_reg_find("Text=Pass". (Note. Q #21. How will you identify the number of passed and failed student in VuGen script? Ans => For this text check is used for the web page for the text “Pass and “Fail”. How do you enable text and image checks in VuGen? Ans => 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 run time setting. keeping record and custom analysis. Q #25. What is wasted time in VuGen Replay log? Ans => Waste time is never performed by any browser user and just the time spent on the activities which support the test analysis. Through the function web_reg_find. . For this the recorded request for the two should be replaced with custom request and string building is required to build the post.Rate at which virtual users add to the load test Ramp Down. The maximum number of graphs can be monitored in at a time is 8. So please this practically and formulate your answer). What is the advantage of running the Vuser as thread? Ans => Running vusers as thread helps generate more virtual users from any machine due to small memory print of the vuser running as thread. 3 web_reg_find("Text=Fail".Rate at which virtual users exit from the load test. Q #26.Q #19. Q #24. What is Ramp up and Ramp Down? Ans => Ramp up. What is the difference between web_reg_find and web_find? Ans => web_reg_find function is processed before the request sent and is placed before the request in the VuGen script whereas web_find function is processed after the response of the request come and is placed after the request in VuGen script. SaveCount stored the number of matches found. Corresponding to name of each student its mentioned whether he passed or failed the exam with the label of “Pass” and “Fail”.

Q #31.4 "SaveCount=Fail_Student". How will you handle the situation in scripting where for your mailbox you have to select any one mail randomly to read? Ans => For this we will record the script for reading the first mail. During the load test what is the optimum setting for Logs? Ans => For the load test log level is set to minimal. Try to find what is being posted in the request to read the first mail such as mail ids or row no. The Threshold level for Think time in the level below which recorded think time will be ignored. thousand and even thousands virtual users. Simultaneous users perform the same task at the same time. Refer this Scripting Tutorial. This can be achieved with setting the log level to the standard log and selecting the radio button “Send message only when an error occurs”. Each protocol has different memory print and this decides how many virtual users can be generated from the give configuration of the machine (load generator). Q #29. we will try to capture all the email ids row no with correlation function and keeping Ordinal as All i. Q #33. Replace the requested email id in the read post with any of the randomly selected email id from the list of captured email ids. 5 LAST). Q #32. How concurrent users are differing from simultaneous users? Ans => All simultaneous users are concurrent users but vice versa is not true. How is Automated Correlation configured? Ans => Any setting related to Automated Correlation can be done by General Options>Correlation. Concurrent users are made Simultaneous users . What is the Think Time? What is the Threshold level for think time and how can be this changed? Ans => Think time is the wait time inserted intentionally between the actions in the script to emulate real user`s wait time while performing activity on the application. How you decide the number of load generator machine required to run a test? Ans => Number of load generator required totally depends on the protocol used to create the script and configuration of the load generator machine. Q #34. This can be changed from Recorded options->Script->Generate think time greater than threshold. What are the capabilities exactly you look for while selecting the performance testing tool? Ans => Performance testing tool should capable of:   Testing an application built using multiple technologies and hardware platforms. Correlation rules are set from Recording options->Correlations.e. Q #30. From the post where a list of mails is reflecting. ORD=All . 6 Q #28. Determine the suitability of a server for testing the application Testing an application with load of tens. All the vusers in the running scenario are Concurrent users as they are using the same application at the same time but may be or may not be doing the same tasks.

Wish you all the very best! . “Continue on error” should be unchecked. How does caching affect performance testing results? Ans => When data is cached in server`s memory. 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. Q #36. This gives a list of values that can be correlated. Session ids in the two scripts should be different and WDiff highlight these values.through rendezvous points. (See tutorial Correlation). Q #35. Rendezvous points instruct the system to wait till a certain number of vusers arrive so that they all can do a particular task simultaneously. When two scripts are recorded and compared using WDiff utility. At STH. Same is true to succeed in the performance test professional as well. Session Id is a good example of this. we always profess the importance of fundamentals. How do you identify which values need to be correlated in the script? Give an example. This can also be used to handle a situation rather than error where execution is not possible. Test result does not reflect the same performance of real user using the application with different data. Q #37. Over to you We hope this huge compilation of LoadRunner interview questions with answers will prove useful to you all. Ans => This can be done in ways: a) Record the two scripts with similar steps and compare them using WDiff utility. How will you stop the execution of script on error? Ans => This can be achieved through lr_abort function. the server need not fetch the result and no server activity triggered. b) Replay the recorded script and scan for correlation. The function instructs the vuser to stop executing Action section and end the execution by executing the vuser_end section. The function assigned “Stopped” status to the vuser which stopped due to lr_abort function. However. This function is helpful in handling a specific error. In Run-Time setting.