Friday 8 July 2022

Why use Jmeter ? What are the pros and cons? How to install JMeter?


SDET Interview Question and Answers

TestNG Interview questions and answers

Jenkins Interview Questions and Answers

Appium Interview Questions and Answers

Selenium Interview Questions and answers

Java Coding Interview Questions and Answers

GIT Interview Questions and Answers


First lets try to understand why we even need performance testing, then we will learn about the feature and use of JMeter.

Table of Contents:

  • Performance Testing & Benefits
  • JMeter Introduction
  • Why Use JMeter
  • Features of JMeter
  • Pros & Cons
  • How to Install JMeter
  • How to run JMeter
  • Latest Version
  • Latency & Threshold

Performance Testing

Performance testing is a non-functional software testing technique that determines how the stability, speed, scalability, and responsiveness of an application holds up under a given workload. 
It's a key step in ensuring software quality, but unfortunately, is often seen as an afterthought, in isolation, and to begin once functional testing is completed, and in most cases, after the code is ready to release.

Basic benefits of undergoing performance testing include:

  • Increased customer satisfaction;
  • Better overall customer experiences;
  • Higher quality application;
  • Reduced risk of system downtime;
  • Implementing performance patches before taking your product live;
  • Eliminating scalability issues;
  • Benchmarking tools for performance engineering teams.

JMeter Introduction

Apache JMeter is a 100% pure Java desktop application designed to load test functional behavior and measure performance. It was originally designed for testing Web Applications but has since expanded to other test functions.

JMeter makes it relatively painless to stress test your service and find its weak points. It's incredibly easy to begin testing a service thanks to automatic request stub generation based on your WSDL

Another advantage of using JMeter is that it provides a minimal client that is used to test just the server-side of your code. Fewer moving parts in the system allows you to better isolate weak points in your service. 

In addition, a fleet of remote testers can easily be used to generate load much greater than any one machine could. Best of all, these features are all available through a few simple Apollo deployments.

Apache JMeter can measure performance and load test static and dynamic web applications.

It can be used to simulate a heavy load on a server, group of servers, network or object to test its strength or to analyze overall performance under different load types.

*******

==> How to create Docker Image From Scratch

*******

JMeter screen

Why use JMeter?

JMeter makes it relatively painless to stress test your BSF service and find its weak points. It's incredibly easy to begin testing a Codigo+BSF service thanks to automatic request stub generation based on your WSDL. 

Another advantage of using JMeter is that it provides a minimal client that is used to test just the server-side of your code. Fewer moving parts in the system allows you to better isolate weak points in your service. 

In addition, a fleet of remote testers can easily be used to generate load much greater than any one machine could. Best of all, these features are all available through a few simple Apollo deployments.

          ********

Check post for MAVEN commands and Interview Question:
MAVEN Commands

*******

Features:

  1. provides a GUI for writing test plans
  2. user can select any unit class and test method to build a complex test case
  3. a single test method can be assigned a success and failure code
  4. provides several ways to graph the results
  5. provides the aggregate listener to calculate the statistics
  6. supports distributed testing using multiple machines
  7. provides the option of not calling setUp and tearDown
  8. extensible
  9. more configurable than JUnitPef (can't simulate a specific request rate)
  10. assertion and functional capabilities better than JUnitPerf


Pros & Cons:

JMeter
ProsCons
multi-threadedmust use one time setup and teardown correctly, users will need to create a thread group and add all the classes they intend to test
test functions for FTP, JAVA, SOAP/XML-RPC, JDBC, and moreconfusing chart representation
supports distributed testingterminology not clear; hard to get it working
extensibiltiy: pluggable samplers allow unlimited testing capabilities; adding new features is simpleremote machines must be declared in a properties file before app is started
pretty simple to do the Test Plan from the GUItakes some time to learn
pain to get it working may not be worth the results

How to Install Jmeter


 ******************
HOW TO INSTALL DOCKER IN WINDOWS AND MAC


*********************

How to run JMeter

  1. Change to the bin directory
  2. Run the jmeter (Un*x) or jmeter.bat (Windows) file.

The Latest Version

Details of the latest version can be found on the JMeter Apache Project web site


When we talk about performace, how can we avoid two most imp concepts that is threshold and latency, as per basic definition: 

Latency is the amount of time that passes between when data changes on the source and when the update is applied to the target. 

Warning threshold (ms)—Specify the length of time, in milliseconds, that needs to pass before a subscription is considered latent and begins to cross the warning threshold.


STAY TUNED AND IN NEXT POST WE WILL DO PERFORMANCE TESTING WITH JMETER ON API



Learn (API-Microservice)Testing+(CoreJava+UI)-SDET with Self Paced Videos and one LIVE Doubt Session

SDET TRANING VIDEOS AVAILABLE with Live Doubt Session @4500/-(course-1 below,API TRaining Videos With ClassNotes and Coding Set) and 6500/- (API+UI, both course-1 & 2 below) Check Training Page for Course Content or reach out @whatsapp +91-9619094122

Entire course content can be found below:  COURSE CONTENT

 Check below link for question and answers with code:


*************************************************

SeleniumWebdriver Automation Testing Interview Questions:

API Testing Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Rest-API

 
Kubernetes Interview Question Set
https://automationreinvented.blogspot.com/search/label/Kubernetes

 
Docker Interview Question Set
https://automationreinvented.blogspot.com/2020/02/top-18-docker-commands-for-aytomation.html

 
Linux Interview question Set
https://automationreinvented.blogspot.com/search/label/Linux

 
Automation Testing/SDET Framework Design
https://automationreinvented.blogspot.com/search/label/FrameworkDesign


Java Related Interview Question Set

https://automationreinvented.blogspot.com/search/label/Java


GIT Interview Question Set:
https://automationreinvented.blogspot.com/search/label/GIT


Coding Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Coding%20Questions

Mobile Testing Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Mobile%20Testing

Python Interview Question Set for QAE - SDET - SDE:
https://automationreinvented.blogspot.com/search/label/Python

No comments:

Post a Comment

All Time Popular Posts

Most Featured Post

API Status Codes with examples for QA-Testers

  🔺 LinkedIn: https://www.linkedin.com/in/sidharth-shukla-77b53145/ 🔺 Telegram Group:  https://t.me/+FTf_NPb--GQ2ODhl 🏮In API testing, it...