Performance Testing Interview Questions and Answers 2019
Q1. What is Performance Testing?
Ans: Performance Testing is done to determine the response time of some additives of the device carry out underneath a selected workload. It is generally measured in phrases of response time for the consumer interest. It is designed to test the overall overall performance of the gadget at high load and stress situation It identifies the drawback of the architectural layout which helps to tune the software. It consists of the subsequent:
The growing variety of users interacting with the gadget.
Determine the Response time.
Repeating the weight continually.
Monitoring the machine components under managed load.
Providing sturdy analysis and reporting engines.
Q2. Why Performance Testing is finished?
Ans: Performance Testing is completed to assess application performance underneath some load and strain condition. It is usually measured in terms of response time for the user interest. It is designed to test the whole performance of the system at high load and strain situation.
Example: Customer like to withdraw money from an ATM counter, a client inserts debit or credit card and look ahead to the response. If the gadget takes greater than five min. Then in line with requirements gadget functioning is fail.
Type of Performance Testing:
Load: analogous to quantity testing and decide how utility cope with a massive amount of facts.
Stress: study application conduct beneath peak bursts of activity.
Capacity: degree universal capacity and determine at what time reaction time grow to be unacceptable.
Q3. What is the testing lifecycle?
Ans: There is no preferred trying out existence cycle, but it is encompass the subsequent stages:
Test Planning (Test Strategy, Test Plan, Test Bed Creation)
Test Development (Test Procedures, Test Scenarios, Test Cases)
Result Analysis (examine Expected to Actual outcomes)
Q4.What is performance tuning?
Ans: To improve the gadget overall performance we comply with a mechanism, called Performance Tuning. To improve the performance of the gadget there are two types of tuning done:
Hardware tuning: Optimizing, adding or replacing the hardware components of the device and changes within the infrastructure level to improve the performance of the device is called hardware tuning.
Software tuning: Identifying the software level bottlenecks by profiling the code, database, etc. Fine tuning or modifying the software to restore the bottlenecks is referred to as software tuning.
Q5. What is the throughput in Performance Testing?
Ans: Throughput in Performance checking out is the amount of statistics despatched by using the server in response to the patron request in a given time period or it's miles the variety of gadgets of labor that can be handled per unit of time. The throughput is measured in phrases of requests per 2d, calls according to day, hits in keeping with 2d, reports consistent with year, and so on. In most of the instances, the throughput is calculated in bits in keeping with seconds. Higher the throughput fee, better the overall performance of the utility It is includes the patron-aspect records.
Q6. What are the gear of performance testing?
Ans: Following are a few famous commercial trying out equipment are:
LoadRunner(HP): this for net and other software. It presents a ramification of software environments, structures, and database. A wide variety of server video display units to assess the performance dimension of each component and tracking of bottlenecks.
A load(Compuware): used for load testing of web, database and char-based machine.
WebLoad(RadView): it lets in evaluating of strolling check vs. Check metrics.
Rational Performance Tester (IBM): used to pick out the presence and cause of device overall performance bottlenecks.
Silk Performer (Borland): permit prediction of the conduct of e-commercial enterprise environment earlier than it's far deployed, no matter size and complexity.
Q7. What is the need for Performance trying out?
Ans: Performance trying out is needed to verify the below:
Response time of application for the meant number of users
Maximum load resisting potential of the application.
The capability of application to managing the quantity of transactions.
Stability of utility underneath expected and surprising consumer load.
Ensuring that customers have a right response time on the production
Q8. What sports are executed throughout performance trying out of an utility?
Ans: Following sports are executed for the duration of checking out of application:
1. Create person scenarios
2. User Distribution
4. A dry run of the software
five. Running load check and reading the end result.,
Q9. How are we able to perform spike testing in JMeter?
Ans: Spike Testing is done to recognize what adjustments take place at the software while abruptly a big quantity of consumer increased or decreased. Sudden changes in the variety of users by using increasing or reducing at a sure point of utility and then monitoring the behavior. In JMeter, spike testing can be executed using Synchronizing Timer. The threads are blocked by way of synchronizing the timer till a particular wide variety of threads had been blocked, and then launch them without delay accordingly developing big instant load.
Q10. What is baseline testing?
Ans: Baseline checking out is testing that's performed at the software before coming to any conclusion. It can be either the verification or validation system which offers an concept of what the subsequent degree has to do. It is a totally critical trying out approach, if executed nicely, 85% of performance troubles can be recognized and solved whilst proper baseline tests are done.
Q11. What is the difference among baseline and benchmark checking out?
Ans: The differences between baseline and benchmark testing are:
Baseline trying out is the system of going for walks a set of assessments to seize overall performance records. This facts can be used as a point of reference when in destiny adjustments are made to the utility while Benchmarking is the procedure of comparing your device overall performance in opposition to an industry widespread that is given by a few other corporation.
Example: We can run baseline test of an software, accumulate and analyze results, and then alter several indexes on a SQL Server database and run the equal check once more, using the preceding effects to decide whether or now not the brand new outcomes had been better, worse, or about the equal.
Q12. What is concurrent consumer hits in load trying out?
Ans: When the a couple of users, without any time difference, hit at the equal event of the application below the burden test is called a concurrent user hit. The concurrency factor is delivered in order that multiple Virtual User can paintings on a single occasion of the software. By adding concurrency point, the digital users will await the alternative Virtual customers which can be jogging the scripts, in the event that they reach early. When all the users reached to the concurrency factor, only then they begin hitting the requests.
Q13. What is the reason behind performing automatic load testing?
Ans: Following drawbacks of manual Load Testing that leads to Automation load checking out:
Difficult to degree the overall performance of the application appropriately.
Difficult to do synchronization between the customers.
Number of real-time customers are required to involve in Performance Testing
Difficult to investigate and become aware of the results & bottlenecks.
Increases the infrastructure value
Q14. Mention what is the advantage of LoadRunner on trying out tools?
Ans: The benefit of LoadRunner testing gear is
Q15. Explain what's Endurance Testing and Spike Testing?
Endurance Testing: It is one type of overall performance trying out in which the testing is performed to evaluate the conduct of the gadget while a substantial workload is given continuously
Spike Testing: It is also a type of performance testing that is performed to investigate the conduct of the gadget while the load is improved considerably.
Q16. Explain what are the commonplace mistakes finished in Performance Testing?
Ans: The common errors performed in Performance Testing are
Direct bounce to multi-person tests
Test consequences now not tested
Unknown workload details
Too small run durations
Lacking lengthy length sustainability check
Confusion at the definition of concurrent users
Data now not populated sufficiently
The massive distinction among take a look at and manufacturing environment
Network bandwidth not simulated
Underestimating performance trying out schedules
Incorrect extrapolation of pilots
Inappropriate base-lining of configurations
Q17. Mention the steps required in JMeter to create a overall performance test plan?
To create a performance test plan in JMeter
Add thread institution
Add JMeter factors
Add Graph result
Run take a look at & get the end result
Q18. What is shipped load testing?
Ans: Distributed load trying out: in this, we check the software for a number of users gaining access to the software at the equal time. In distributed load trying out check instances are performed to decide the application conduct. Now utility behavior is monitored, recorded and analyzed when multiple customers simultaneously use the system. Distributed load trying out is the manner using which more than one systems can be used for simulating the burden of the massive wide variety of customers. The motive for doing dispensed load testing is to overcome the predicament single device to generate a large range of threads.
Q19. Explain the primary necessities of Performance test plan.
Ans: Any Software Performance Test Plan must have the minimum contents as stated underneath:
Performance Test Strategy and scope definitions.
Test process and methodologies.
Test tool information.
Test cases details along with scripting and script maintenance mechanisms.
Resource allocations and obligations for Testers.
Risk control definitions.
Test Start /Stop criteria along side Pass/Fail standards definitions.
Test surroundings setup necessities.
Virtual Users, Load, Volume Load Definitions for Different Performance Test Phases.
Results Analysis and Reporting layout definitions
Q20. What are the automatic Performance trying out levels?
Ans: The levels worried in automated overall performance testing are:
Planning/Design: This is the primary section in which the crew could be collecting the necessities of the overall performance trying out. Requirements may be Business, Technical, System and Team requirements.
Build: This section consists of automating the requirements collected at some stage in the layout section.
Execution: it is executed in more than one phases. It includes numerous sorts of testing like baseline, benchmarking testing
Analyzing and tuning: During the performance trying out we will be capturing all of the details related to the gadget like Response time and System Resources for identifying the primary bottlenecks of the system. After the bottlenecks are identified we must track the system to enhance the overall overall performance.
Q21. Explain the sub-genres of Performance trying out.
Ans: Following are the sub-genres of Performance Testing:
Load Testing: it's miles performed to have a look at the overall performance of the software for a selected predicted load. The load may be improved by way of growing the range of the user appearing a selected project at the application in a particular term.
Stress Testing: is carried out to evaluate system performance by using growing the wide variety of users greater than the bounds of its particular necessities. It is performed to recognize at which degree software crash.
Volume Testing: check an application so one can decide how plenty quantity of facts it may deal with efficaciously and efficaciously.
Spike Testing: what modifications occur on the application while unexpectedly a huge quantity of user increased or decreased.
Soak Testing: is achieved to recognize the utility behavior whilst we practice load for a long time frame what occurs on the steadiness and response time of utility.
Q22. What are the exiting and coming into criteria in the performance trying out?
Ans: We can start the overall performance checking out of utility during the design. After the execution of the overall performance testing, we accumulated the consequences and analyzed them to enhance the overall performance. The performance tuning processed will be done at some stage in the application development life cycle. Performance tuning is executed that is primarily based on factors like launch time of application and person requirements of utility stability, reliability and scalability under load, strain and performance tolerance criteria. In a few projects, the stop criteria are defined based totally at the patron overall performance requirements described for every phase of the application. When the product reaches the anticipated stage then that can be taken into consideration as the stop standards for overall performance testing.
Q23. How do you discover the overall performance bottlenecks situations?
Ans: Performance Bottlenecks can perceive with the aid of tracking the software against load and strain circumstance. To find bottleneck state of affairs in performance testing we use Load Runner because gives exceptional types of video display units like run-time monitor, web resource screen, community put off reveal, firewall display, database server display, ERP server resources reveal, and Java overall performance display. These monitors can help us to decide the situation which reasons multiplied reaction time of the software. The measurements of the performance of the application are based on response time, throughput, hits in step with sec, community put off graphs, and so on.