Load Runner Interview Questions Part1

November 2nd, 2007 Rama Posted in Load Runner Interview Questions Part1 No Comments »

1. Why do you create parameters?
Parameters are like script variables. they are used to vary input to the server and to emulate real users. Different sets of data are sent to the server each time the script is run. Better simulate the usage model for more accurate testing from the controller; one script can emulate many different users on the system.

2. what is co-relation? Explain the different between automatic Co-relation and Manual co-relation?
Co-relation is used to obtained data which are unique for each run of the script and which are generated by nested queries. Co-relation provides the value to avoid errors arising out of duplicate values and also optimizing the code (to avoid nested queries). Automated Co-relation is where we set some rules for co-relation. It can be application server specific. Here values are replaced by data, which are created by these rules. In manual co-relation the value we want to correlate is scanned and create co-relation is used to co-relate

3. How do you find out where co-relation is required? Give few example from your projects?
Two ways: First we can scan for correlations, and see the list of values which can be correlated. from this we can pick a value to be correlated.
Secondly, we can record two scripts and compare them. We can look up the difference file to see for the values, which needed to be correlate.
In my project there was a unique ID developed for each customer it was nothing but insurance number, it was generated automatically and it was sequential and this value was unique. I had to correlate this value, in order to avoid errors while running my script. I did using scan for correlation.

4. Where do you set automatic correlation options?
Automatic Correlation from web point of view can be set in recording options and correlation tab. Here, we can enable correlation for the entire script and choose either issue online messages or offline actions, where we can define rules for the correlation. Automatic Correlation for database can be done using show output window and scan for correlation and picking the correlate query tab and choose which query value we want to correlate. If we know the specific value to be correlate, we just do create correlation for values and specify how the value to be created.

5. What is the function to capture dynamic value in the web Vuser script?
Web_reg_save_param function saves dynamic data information to a parameter.

6. When do you disable login Virtual User Generator, when do you choose standard and extended logs?
Once we debug script and verify that it is functional, we can enable login for errors only. When we add a script to a scenario, logging is automatically disabled
Standard log option: When you select standard log it creates a standard log off functions and messages sent during script execution to use for debugging. Disable this option for large Load test scenarios when you copy a script to a scenario logging is automatically disabled.
Extended log option: Select extended log to create and extended log, including warning and other messages. Disable this option for large load testing scenarios. When you copy a script to a scenario logging is automatically disabled. We can specify which additional information should be added to the extended log using the extended log options.

7. How do you debug a load runner script?
VuGen contains two options to help debug Vuser scripts-the run step by step command and break points.The debug settings in the options dialog box allow us to determine the extend of the trace to be performed during the scenario execution. The debug information is written to the output window we can manually set the message class within your script using the LR_set_debug_message function. This is useful if we want to receive debug information about a small section of the script only.

8. How do you write user defined fuctions in Load runner? Give me few functions you wrote in your previous project?
Before we create the user defined function we need to create the external library (DLL) with the function. We add this library to VuGen Bin directory. Once the library is added then we assign user defined function as parameter. The function should have the following format: _declspec(dllexport) char * < function name > (char*, char*) Examples of the user defined functions are as follows: Get Version Get Current Time, Getpltform are some of the user defined functions used in my earlier project.

9. What are the changes you can make in runtime settings?
The runtime settings that we make are
1)Pacing: It has iteration count.
2)Log: Under this we have disabled logging standard log
3)Extended think time: In think time we have two options like ignore think time and replay think time.
4)General: under general tab we can set the Vusers as process or as multi threading and whether each step as transaction.

10. Where do you set iteration for Vuser testing?
We set iteration in the run time settings of the VuGen. The navigation for this is runtime setting, phasing tab, set number of iterations.

AddThis Social Bookmark Button