Skip to main content

Posts

Loadrunner Interview Questions and Answers

Hello, looking for interview questions in loadrunner? I have tried my level best to put these interview questions. If you find any new questions, you can always send me through the comments below. I will include them in this list. Never give up in the interview. If you fail in one interview try for another interview, try and try until you get success. If you need any help you can always contact me through the comments  below. I will reply as soon as possible. All the best for your interview!
I have categorized the loadrunner interview questions and answers into 5 parts: Performance TestingLoadrunner General QuestionsVugen and ScriptingControllerAnalysisPerformance Testing Interview Questions and Answers: What is Performance Testing?
Performance Testing on a software application is done  to determine how speed, stability and scalability the application is. Speed refers to how fast the software application will respond, and stability refers to how the application handles varying workloads. …

Performance Testing and Types of Performance Testing

The importance of performance testing to a business cannot be underrated. It can save you from unforeseen bottlenecks and system failures that would be too expensive to recover from.

Software applications need to be tested in order to determine whether they can perform as expected. This is referred to as performance testing, and it's importance can never be emphasized enough. It is a form of quality assurance that involves many aspects. These aspects include: the software application's performance in terms of response time, and the features and functionality that a software application supports. The ultimate goal of performance testing is to identify bottlenecks, and come up with solutions.

A software application will be tested for speed, stability and scalability. Speed refers to how fast the software application will respond, and stability refers to how the application handles varying workloads. Scalability is the total amount of workload the software application can handle.
T…

Loadrunner PDFs, PPTs and Documents You Must Have

Loadrunner Web Services Tutorial Scripting in Two Ways

Web Services in loadrunner: We can do web services scripting in two ways:
By using Web Services Protocol. (Need additional License)By using Web Protocol. Scripting using Web Services Protocol: I have taken weather web service as example shown in this link.
Steps: First open the vugen and select Web Services protocol.Click on Manage Services on top nav bar and Click on Import and give the WSDL URL which is usually ends with wsdl http://www.webservicex.net/globalweather.asmx?WSDL.
Now Click on Add Web Service Call on top nav bar. Give the Input Arguments and Leave the out put arguments empty. And click on ok. As shown in the following image.
It will create a script in loadrunner as shown below. You can perform the steps one by one in this way for all the web services steps. You can use lr_xml_find and lr_xml_get_values to validate the page.
web_service_call( "StepName=GetCitiesByCountry_101",
"SOAPMethod=GlobalWeather|GlobalWeatherSoap|GetCitiesByCountry",
"ResponsePa…

lr_set_debug_message function in loadrunner with examples

Lr_set_debug_message – One of my favorite lr function in loadrunner. It is mainly useful when we are unable to find correlation value in a particular request.
We usually use Extended log -> Data Returned by Server in Run-time Settings to get all the response in replay log. Sometimes the vugen will crash or becomes slow as the vugen is writing all the response to replay log.
If it crashes or taking long time to execute the script then it’s better to use lr_set_debug_message instead of using Data Returned by Server.
In the following example we have added data returned by server only to particular request.
Example:

lr_set_debug_message(LR_MSG_CLASS_EXTENDED_LOG|LR_MSG_CLASS_FULL_TRACE,LR_SWITCH_ON);
web_url("Bing",
"URL=http://www.bing.com/",
"Mode=HTML",
LAST);
lr_set_debug_message(LR_MSG_CLASS_EXTENDED_LOG|LR_MSG_CLASS_FULL_TRACELR_SWITCH_OFF);


lr_set_debug_message can also be written in the following way:

Declare in globals the following way and call wherever …