Get Knowledge from Video instead of Content:

Tuesday 11 July 2017

LoadRunner - Interview Question #4

Q. 16 What are the different sections of the script?
Ans. LoadRunner script has three sections:
a. vuser_init: It may have Home Page and Login code.
b. Action: This section has the code to test the functionality of the application. This can be played many times in iterations. There could be more than 1 Action section as per requirement.
c. vuser_end: It has Logout code and other logic which needs to be executed before ending the test.
Q. 17 In what sequence the script sections are executed?
Ans: The sequence in which the above-mentioned sections get executed is vuser_init is at the very beginning and vuser_end at the very end. The Action(s) section is(are) executed in between vuser_init and vuser_end.

Q. 18 What are Monitors?
Ans: Monitors are used to "monitor" performance bottlenecks. They are used in the Controller or Performance Center section. There are different types of client and server side monitors are available in the LoadRunner. Additionally, LoadRunner/Performance Center can be configured with external monitoring tools like Micro Focus SiteScope to get more crisp details of the server performance. 

Q. 19 What is a correlation? 
Ans. Correlation is used to handle the dynamic values in a script coming from the server. 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, the cases correlation takes care of these values and prevents them from failing during execution. To get more detail on how and why correlation required; click here.

Q. 20 Explain the difference between automatic correlation and manual correlation?
Ans: Manual Correlation involves manual intervention in 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 dynamic value in its response. Link to get more detail on manual correlation.

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. Link to get more detail on automated correlation.

Click here, to understand the detailed difference between correlation functions. 


Next: LoadRunner Interview Question #5

Previous: LoadRunner Interview Question #3

No comments :

Post a Comment