|
Load Testing - August 28, 2008 at 17:10 pm by Rajmeet Ghai
Explain the difference between load test and performance test.
Answer
Performance testing is used to test the performance of the system.
Performance is measured in terms of response time to a particular request,
number of requests that can be processed per second etc. On the other hand Load
testing is done to test if the system can take load or not, to check if the
system is scalable or not. Both can be used together. E.g. I can check the
number of users that an application can adapt and testing the application.
Here, number of users (scalability) is a part of load testing while “how well
can the application adapt”(performance) is a part of performance testing.
What is performance baseline testing?
Answer
In Performance baseline testing a “benchmark” or “standard is defined and base
lined. For e.g. A particular server is known to perform well until the users
don’t exceed the figure 100. Here, the standard can be 100 users. In
performance baseline testing the performance of a new server can be compared to
the standard server.
Describe how to identify the memory leakage using loadrunner.
Answer
In Load runner, every application has a processor running in the
system. The processor needs to be identified. Using the performance tab we can
check the memory consumption of the processor. Continuous tracking needs to be
done while load testing. However, if the memory keeps increasing even on
stopping the test, a memory may have occurred. Also, if the memory is not
released on stopping the test, a memory may have occurred.
What are the types of Bottle necks in Performance testing?
Answer
Bottle neck in performance testing slows down the performance and the
typical goal of performance testing. Typical bottle necks include:-
1. Increased number of resources.
2. Increased number of hours.
3. Proper monitors to determine performance
Explain the difference between Load Test and Volume Test.
Answer
Volume testing checks if the system behaves as expected for certain
volume of data. Volume can be increasing size of the file. On the other hand,
load tests checks the performance of the system when the load is increased.
Load testing here can be increasing the number of files. Volume testing can be
used to measure the throughput while load testing can be used for measuring
performance.
What is the difference between Scalability testing and load testing?
Answer
Scalability can be considered as a part of performance testing which
checks if the system is scalable or not. To find if the functionality and the
performance of a system will scale up to meet specified requirements. Load
testing is to check if the system can take load or not. To check the expected
usage of a software program by simulating multiple users accessing the
program's services concurrently.
What is the basic flow in load testing?
Answer
Flow in Load testing:-
-
Plan the test: - Plan what testing needs to be done. What functionality or
module needs to be tested?
-
Create Virtual Users:- The main goal of the load testing is to check the
expected usage of a software program by allowing multiple users accessing the
program's services concurrently. Hence virtual users need to be created.
-
Creating the scenario:- create test scenarios to determine the load the needs
to be given to the system.
-
Running the test against the scenarios created
-
Analyze the test to see if the results of performance are as expected.
What is the difference between lr_error_message and lr_debug _message?
Answer
lr_error_message occurs when there is an error in the code of the
application. On the other hand lr_debug _message occurs when there is a flaw in
the functionality of the program. lr_error_message throws an error message in
LoadRunner while lr_debug _message throws a debug message in Load runner.
Explain how to use Regular Expression in Load Runner for web functions?
Answer
A function can be written in Load runner script to check if a pattern
matches against a given subject or not. The pattern and subject can be passed
as parameters to the function. Regexec() can be used to compare the subject
with the pattern. This script can be then executed to see the results.
E.g Pattern is: - b(c(.*))e
Subject: abcdef
Result: 1 (match found)
What is the difference between load testing and intersystem testing?
Answer
Load testing is done for a particular application. To check the
performance of the system and analyze the behavior when the system is subjected
to load. On the other hand, intersystem testing is done to check if the
application can accommodate or co exists with other applications or software
systems. E.g Bar code readers. Inter system will check if Proper parameters and
data are correctly passed between the applications, proper timings and
coordination exists between the applications.
|