What is Performance Testing? Types of Performance Testing, Tools for Performance Testing, Test Cases

What is Performance Testing?
  • Verifying the stability and response time of an application by applying load on it(Number of user) is called as performance testing.
  • Response time = Time is taken to send the request + time taken to do the processing + time taken to get the response back.
  • Load: Total number of users accessing the application at a given point of time is called a load.
  • There are two types of requirement :
  1. Non-Functional requirement. 
  2. Functional requirement.
  • Performance Testing is a kind of non-functional testing type.
Why performance testing?
  • Feature in the software or application is not only important. An application performance like stability, response time, speed also plays an important role.
  • Performance testing is done to make sure software application is working properly in terms of speed, stability, and scalability.
  • With the help of performance testing, we come to know things to improve before the application goes live in the market.
  • Without performance testing, our application will suffer from an issue like slow speed when many users are using the application simultaneously.
Types of performance testing :
  • Load Testing: Testing the stability and response time of the application by applying load which is less than or equal to the number of users.
  • Stress Testing: Testing the stability and response time of the application by applying load more than the defined number of users and we keep applying load until the application crashes.
  • Volume Testing: Here we transfer a huge volume of data from one location to another and then we check did this happened in the specified amount of time. To perform volume testing there are no ready-made tools available, we have to develop a script in order to perform volume testing.
  • Soak Testing: Testing stability and response time of application by applying load continuously(48 hours, 96 hours) for a particular period of time and make sure we do not exceed the number of defined users is called as soak testing.
  • Spike Testing: Suddenly increase and decrease of the load to check the performance of the application is called a spike testing.
Most commons performance problems:
  • Long Load time: Load time should be kept to a minimum, users should not have to wait for too long for an application to start.
  • Poor response time: Response time is, time taken to send the request + time taken to do the processing + time taken to get the response back. Response time should be very quick. If response time is not quick then the user has to wait for too long and the user will lose interest if this happens.
Performance testing test case examples:
  • Verify the response time when many users are using the website.
  • Verify maximum load(Number of users) an application or software can handle.
  • Verify the response of application when more than expected number of users are using the application.
  • Verify the response time of application by suddenly increasing and decreasing the load.
  • Verify the response time of application by continuously applying the load for a particular period of time.
Performance testing tools :
  • Neoload: It is a power full performance testing software used for automating testing of API and load testing of applications.
  • Load Ninja : It is one of the best load testing tool. Load ninja provide us record and playback load test and run this test in real browsers at scale.
  • Load Runner : It is most popular load testing tool.Load runner helps us to test the performance of application under load.It helps us to simulate thousands of concurrent user to generate real-time load.
  • Jmeter : Jmeter is a open source tool used for load testing as well as automating of Api. it helps us to analyze and measure the performance of application.Also it is platform independent.

Comments

Popular posts from this blog

Online Ticket Booking System Test Case

Test Cases and Test scenarios: Definition, Examples, Template

What is smoke testing?How to perform smoke testing?Difference between smoke and sanity?