Skip to content
 

Loadrunner Interview Questions and answers

<!– /* Font Definitions */ @font-face {font-family:”Cambria Math”; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:”"; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:”Arial”,”sans-serif”; mso-fareast-font-family:”Times New Roman”; color:black;} span.apple-style-span {mso-style-name:apple-style-span; mso-style-unhide:no;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-size:10.0pt; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} –>

#1. What is load testing?

Load testing is done to test an application’s load handling capability. It is done by checking how an application performs with a large number of simultaneous users and transaction. This is done to see the peak usage handling capability of an application. It is evident that the accurate load testing is done by practical rather than theoretical approach.

#2. What is a rendezvous point?

To simulate heavy user load on server rendezvous points are inserted into the Vuser script. Rendezvous points in a testing scenario are designed to instruct a Vuser to wait until all the Vusers arrive at a certain point so that all users can simultaneously perform a task to increase the load on the server. This is done to emulate the peak load on the server to check the performance of an application.

#3. Why parameters are created?

Parameters are used to pass message to fine tune a script. They are like script variables which are used to simulate real users by varying the script input. Each time the script runs different set of data is sent to the server. This ensures better simulation of the usage module for more accurate controller testing. This way a single script can simulate multiple users on the system.

#4. How LoadRunner scripts are debugged?

The Vuser script can be debugged by two options offered by VuGen which are the Run Step by Step command and breakpoints. During scenario execution the extent of the trace to be performed can be determined by the debug setting in the option dialog box. The message class can be set within the script by the lr_set_debug_message function which is required in order to receive a small script section’s debug informations.

#5. How many types of graphs does LoadRunner have?

LoadRunner has in total 5 different types of flag which are as follows:

The Hits per second graph that depicts the traffic volume of the application being tested for.

Pages download per second graph shows the rate at which the download processes are carried out at a particular instance of time.

The Transaction response time (load )

The Transaction response time (percentile) graph

Network delay time graph shows the time elapsed for the request/ response activities in the application.

#6. What is injector in LoadRunner?

Injectors can also be called as load generators in LoadRunner. In order to create multiple Vuser script it is essential to create a scenario where the load generator has to be specified first. This provides vital host information such as it is local or remote host. The load generators must add the IP addresses of the participating machines from where the Vusers are assimilated to run scripts but prior to that the load generator must be installed in them as they are to be used as injectors

#7. What is co-relation in LoadRunner?

The dynamic values of a script running under the virtual user generator can be captured and resubmitted in order to avoid standard session IDs this process is called as co-relation in LoadRunner. The web server always changes the session IDs. Thus the correlation scripts on running the script will capture the session ids. The web_reg_find method is used to do the capturing action.

#8. Explain the recording mode for web Vuser script?

When a user performs some typical business process on a client application, the Vugen develops a Vuser script by recording such act of that user. The activity between the client and the server is recorded and used by the Vugen to create this script. For example in the case of a web application the client end’s database is monitored by Vugen to trace all the request and response made between the server and that client.

#9. What is the relation between Response Time and Throughput?

The amount of data (in bytes) received per second from the server is graphically represented by the Throughput graph. Throughput and the response time are directly related as on comparison it is noticed that when throughput decreases the response time also decreases. In the same manner the peak throughput and the maximum response time would be occurring at the same instance.

#10. What are the changes you can make in run-time settings?

There are 4 types of offered run time settings which are:-

Pacing – this has the iteration setting

Log – standard and disable log are incorporated in this.

Extended think time- additionally it offers two more options the ignore and the replay think time.

General- under this the vusers can be set as multithreads or processes.

#11. How do you write user defined functions in LR?

Prior to user defined functions it is essential to create external library i.e. DLL files which should be added to the VuGen bin directory. Then the user defined functions should be added as a parameter. The function signature should be like this __declspec (dllexport) char* <function name>(char*, char*) . GetVersion, GetCurrentTime, GetPltform are some of the user defined functions generally used.

#12.  What is the difference between Overlay graph and Correlate graph?

Overlay graph as its name suggest is used to overlay content of two graphs that are sharing similar X-axis. While the right Y-axis shows the merged graph’s Y-axis value and the left Y- axis shows the value of the Y-axis of the current graph.

Correlated graphs merge the Y-axis of two graphs so that the Y-axis of the current graph becomes the X-axis of the merged graph and the Y-axis of the graph that was merged becomes merged graphs Y-axis.

#13. What is the difference between standard log and extended log?

During a script execution the standard log sends a subset of messages and function to a log. The subset is Vuser dependent. The extended log is used to send more detailed message of script execution to an output log. It is used to retain information about parameter substitution, advanced trace and data returned by the server during debugging.

 


loadrunner interview questions with answers vugen interview questions answers

Leave a Reply