Our Special Offer - Get 3 Courses at 24,999/- Only. Read more
Hire Talent (HR):+91-9707 240 250

Interview Questions

JMeter Interview Questions and Answers

JMeter Interview Questions and Answers

JMeter Interview Questions and Answers

JMeter is an Open Source Performance Testing Framework. Many IT companies are using Jmeter to as their business solution. In IT industry Jmeter Development is growing very fast and as per survey now Jmeter is $180 million but surely grow to more than $5 billion by 2021. As the industry grows the need of trained professionals will grow as well. So if you want to build your carrier in IT industry then Jmeter Developer is an excellent option.

After completion of the course, you have to face an interview and have to qualify the interview to establish your carrier as a Jmeter Developer. We have designed a bunch of advanced Jmeter Interview Questions and Answers. Our Jmeter Interview Questions and Answers are designed by the industry experts who have spent 10+ years in the industry. The JMeter Interview Questions and Answers are useful for both fresher and experienced candidates. The JMeter Interview Questions and Answers have helped many candidates to crack the Interview and got placed in many reputed companies with a high pay scale. Now it’s your turn to utilize the opportunity and get a dream job with a high salary in the IT industry.

Q1) What is JMeter?

JMeter is a Java Open source Performance Testing framework to test a pile of functional object conduct and measure implementation. You can use JMeter to test and compute the implementation of web application or a miscellaneous collection of administration works.

Q2) What are the distinctive kinds of Protocol we can use in JMeter?

HTTP, FTP, SOAP-XML, JDBC and some others are the characteristics protocol we can use in JMeter.

Q3) What is the skeletal structure of a JMeter Script?
  • Test Plan
  • Configuration Elements
  •  Pre Processors
  •  Thread Group
  •  Post Processors
  •  Listeners
Q4) How does JMeter function?

JMeter does not support the actual running program. It doesn’t display the HTML site pages as the particular program does. The reaction will be seen in HTML in required order yet the real timings are absent in the actual tests.

Q5) What are the Benefits of Jmeter?

JMeter offers benefits to implement testing like

  • You can use it to test the implementation for both, static assets and also powerful assets.
  • You can use it to deal with a large number of clients at the same time can deal with your site.
  • It gives the details examinations of implementation reports.
Q6) What is Pre-Processing Element?

Pre-processors are parts of JMeter that are used to perform a task before the sampler demands are implemented in the test situation. Pre-processors can be used for multiple performance testing needs, such as getting information from a database, setting a timeout between sampler implementations or before the test information age.

Q7) What is Post-Processing Element?

Post-Processors are parts of JMeter that are performing after the sampler demands are performed. Post-Processors can be use for some, reasons like split the information from the reaction.

Q8) What are Listeners?

You will get a chance to see the result as arranged information, charts, JSON Responses by an audience member.

Q9) Notice distinctive sorts of Listeners.
  • Graph results
  • View results tree
  • Aggregate Report
  • Aggregate Graph
  • Announcement of  Results
Q10) What is the utilization of Regular Expression Extractor?

Standard Expression can be used to separate a few qualities powerfully from the reactions to using it survey the resulting or second backup purposes. Ordinary Expression is used in both Pre-Processors and Post-Processors also.

Q11) What is the greatest number of strings that can be utilized in a string gathering?

It depends on the arranged implementation of your framework including a processor, JVM, selected memory etc. Differently inconsistent which affect this are the number of sections in your test plan i.e. the quantity of configured components or processors and it additionally depends on whether you are using GUI/Non-GUI Mode.

Q12) Can portable activities be recorded utilizing JMeter?

Yes Jmeter can record portable activities, but Jmeter and Portable have to be in the same system.

  • You can configure your joining server in Jmeter for running in a given port.
  • Set up a conjugation on your adaptable Wi-Fi settings and enter a similar port number which is used in the recorder.
  • Install the Root CA declaration on your adaptor.
  • To watch portable getting caught by the prearranged controller you have to hit server ask.
Q13) Would we be able to utilize Selenium Automated Scripts in JMeter?

Yes, we can run Selenium in Jmeter for executing some tasks. There are two types of process

You can use JUnit libraries to produce Selenium contents and alternate as Jars and duplicate the counterpart in JMeter registry. After that import, the Jar records by adding a Junit sample.

Q14) How might we oversee sessions and treats in JMeter?
  1. Sessions and treats can be overseen in JMeter by using configuration components, like, HTTP Cache Manager gives an ultimatum to clear the treats in each significance and additionally permit to include client specified treats.
  2. HTTP Cache administrator gives you the opportunity to clear reserve after every cycle as necessary in the heap tests and also prevent the number of components which can be put away in the store.
Q15) What is a Timer and what are the diverse kinds of Timers accessible in Jmeter?

Timers are used to get a delay between demand. A portion of the Timers utilized are Constant Timer, Gaussian arbitrary Timer, Synchronizing Timer, and Uniform Random Timer, etc.

Q16) Clarify the job of the clock.

Jmeter uses the timer to differentiate the time between each demand. It can also be used to solve extra load issues of a server.

Q17) Clarify the contrast among Gaussian and Poisson Timers.

Gaussian and Poisson Timers is both less effective at a numerical recipe with some positive Delay and extra balance. Contrast between the two lies in the reality how the lambda esteem is determined on account of Poisson clock and how deviation is determined on account of Gaussian Timer.

Q18) What is the contrast between Constant Timer and Constant Throughput Timer?

To delay each string for a similar measure of length, you can use Constant Timer. A Constant Throughput Timer will give the set throughput through a set of strings or a specific string.

Q19) What is Beanshell Scripting?

BeanShell is a lightweight Java scripting that is used in JMeter to play out some critical assignment. BeanShell sampler can perform various tasks with the use of coding. You can print the string number, get the present sampler executed, bring the treats etc.

Q20) What is a root CA declaration?

HTTPS association requires a backing to confirm the associations which get set up when the program hits the web server. JMeter produces it incidentally to catch the SSL traffic so as to record the activities. You need this backing in your portable to record the activities.

Q21) What is the utilization of a CSV Data Set Configuration?

It is a configuration component used in the middle of the heap test to give outside significant contributions to Parameters.

Q22) Would we be able to do versatility testing in JMeter? Assuming this is the case, how?

Yes, we can do adaptability testing in Jmeter. It should either be possible by running in numerous occurrences physically or in a similar occasion we can make the duplicate of the string gathering and utilize the scheduler highlight to begin the test according to plan.

Q23) Would we be able to run JMeter in GUI Mode?

Yes, it is possible to run the JMeter in GUI. For this, a similar direction is used: JMeter – n – ttest.jmx – l test.jtl

Q24) Would we be able to perform Spike Testing in JMeter?

We can perform Spike Testing by clock synchronization. Synchronizing clock squares string until an explicit measure of strings has been blocked and after that discharge them all together in this manner making a vast quick load.

Q25) What is Test Fragment?

The test piece is like the Thread Group component. The main difference is test piece isn’t actualized except it is referred by either a Module controller or an Include controller.

Q26) Are the test designs worked in Jmeter is OS Dependant?

Test designs are typically managed in XML arranges, every test design work as an individual.

Q27) What is a Listener?

The audience comes enthusiastically when the content is implemented. It tunes in to the solicitation and reaction and presentations it in a visual way. It very well may be comprehended as a report of the trial. Listeners come to investigate the trial process and help the main drive to discover if there any problem.

Q28) What are diverse kinds of Listeners in JMeter?
  • View Results in a Tree
  • View Results in a Table
  • Straightforward Data author
  • Total Graph
Q29) Is there some other method to open JMeter other than GUI mode?

JMeter can be kept running in the non-GUI mode by using Command brief.

JMeter – n – t <scriptname.jmx>

Q30) What is the reason for a Timer?

Clocks are called Think Time in JMeter. They add certain time postpone in the process in which they are part of. Diverse kind of Timers is Constant Timer, Gaussian Random Timer, Uniform Random Timer, Synchronizing Timer and so forth.

Q31) What is a customary articulation?

Standard articulation or Regex are communication process to gather information among solicitations and reaction. This is used the programming that coordinates the example in JMeter. Images, for example, ., $, +, ? to make articulation and match string.

Q32) What are the advantages of JMeter above different apparatuses in the market that are utilized for execution testing?
  • JMeter is open source and its free to access.
  • It is stage autonomous.
  • Backings Multithreading
  • You don’t need any programming skils
  • Great Reporting
Q33) What is a preprocessor?

Pre-Processors are a lot of activities that are implemented before the implementation of example demand. There are varieties of pre-processors in JMeter like BeanShell Pre-processor, JDBC pre-processor, User Parameters pre-processor and so forth.

Q34) What is a post-processor?

Postprocessors are a lot of activities that are implemented after implementing of example demand. There are varieties of post processors in JMeter like JDBC post-processor, Regular articulation extractor, XPath Extractor

Q35) What is circulated trying utilizing JMeter?

You know that Jmeter has a vast memory and its usefulness is incremented by client quality. So you can test heap in various machines. Each machine hits the server with some heap. It is much easier to take load of clients in various machines than a single one. So you can create a multiple numbers of servers to take the burd3en of clients.

Q36) By what method can we parameterize information? (Imperative JMeter Interview Questions)

Factors in JMeter can be used to parameterize information. Include config component – > User Defined Variables (Right snap Thread Group > Add > Config Element > User Defined Variables). The qualities in a variable are put away by ${}


Name: Var1

Esteem: ${variableValue}

Q37) What is the increase time frame?

In a heap trial application process you can gradually increase client numbers for live streaming. In JMeter, increase period characterizes the timeframe inside which all the predefined clients get in running state.

Q38) What are samplers in JMeter?

Samplers are used for sending particular kinds of response to the server. A portion of the regularly utilized samplers is – HTTP Request, JDBC Request, SOAP-XML Request, JUnit demand, TCP Sampler, etc.

Q39) What are Listeners in JMeter? Express a portion of the broadly utilized Listeners?

Audience member helps to get a review, sparing of test outcome and also helps in graphical examination of the test outcome. Listeners which are mostly used – Aggregate Report, Aggregate Graph, Graph Results, View Results Tree, etc.

Q40) What is dispersed burden testing? How might it be accomplished in JMeter?

Circulated load testing is the process in which lots of number frameworks can be used for copying a heap of a huge number of clients. You can use more than one framework to distribute a load of clients for burden testing. In JMeter, we can do conveyed load testing using the ace slave design.

Q41) What are the diverse clocks in JMeter?

The clock is used to complete the task in a perfect timing These clocks are used for displaying perfect time to the client. Different types of clocks available in JMeter are – Constant Timer, Gaussian Random Timer, Uniform Random Timer, Constant Throughput Timer, Synchronizing Timer, Beanshell clock, BSF Timer, etc.

Q42) What is the utilization of Configuration components?

Arrangement components are used for modification of the sampler demands. Like CSV Data Set Configuration can be used for parameterizing the sampler demands with qualities brought from the outside CSV document.

Q43) What are Pre-Processors?

Pre-processors arranged components that are implemented before the sampler demand implementation. Some ordinarily used pre-processor in JMeter are BeanShell PreProcessor, HTML Link Parser, HTTP URL Re-composing Modifier, RegEx User Parameters etc.

Q44) What are Post-processors?

Post-processors are the test plan elements implemented after the sampler demand implementation.  Postprocessors are basically used for bringing a few qualities from the sampler reaction.

Q45) How might we lessen the asset necessity in JMeter?
  • To make the best out of the accessible assets and by and large as a training, the accompanying practices ought to be fused in the tests-
  • Utilize the non-GUI mode: JMeter – n – t-test.JMX – l test.jtl
  • Use a couple of Listeners as could be allowed; if utilizing the – l banner as above they would all be able to be erased or crippled.
  • Try not to utilize “View Results Tree” or “View Results in Table” audience members amid the heap test, use them just amid the scripting stage to investigate your contents.
  • As opposed to utilizing heaps of comparative samplers, utilize a similar sampler in a circle, and use factors (CSV Data Set) to change the example. Or on the other hand maybe utilize the Access Log Sampler.
Q46) Try not to utilize JMeter’s useful mode amid the heap test executions.
  • Use CSV yield instead of XML.
  • Just spare the information that you need.
  • Use as couple of Assertions as could reasonably be expected
Q47) What is the Execution Order of Test Elements?

Following is the execution request of the test plan components:

  • Arrangement components
  • Pre-Processors
  • Clocks
  • Sampler
  • Post-Processors (except if SampleResult is invalid)
  • Statements (except if SampleResult is invalid)
  • Audience members (except if SampleResult is invalid)
Q48) How do you ensure Re-ease of use In your Jmeter Scripts?

Utilizing config components like “CSV Data Set Config”, “Client Defined Variables”, and so on for more prominent information reuse.

Modularizing shared errands and conjuring them through a “Module Controller”.

Composing your own BeanShell capacities, and reusing them.

Q49) What are the Monitor Tests?

Employments of screen tests are:

  • Screens are helpful for stress testing and framework the board.
  • Use pressure testing, the screen gives extra data about server execution.
  • Screens make it less demanding to see the connection between server execution and reaction time on the customer side.
  • As a framework organization instrument, the screen gives a simple method to screen different servers from one reassure.
Q50) What is the distinction among gauge and benchmark testing?

The contrasts among pattern and benchmark testing are:

  • Pattern testing is the way toward running a lot of tests to catch performance data. This data can be used as a point of reference when in future changes are made to the application while Benchmarking is the way toward looking at your framework implementation against an industry standard that is given by some other association.
  • Precedent: We can run benchmark trial of an application, gather and investigate results, and then can  alter a few files on a SQL Server database and run a similar test once more, use  the previous outcomes to decide if the new outcomes were better, more terrible, or about the equivalent.
Q51) How will you design a scenario in Jmeter where launch and login to be executed only once while submit transaction to be executed multiple times?

Ans:- I had to design a scenario where Launch and Login to be executed once and rest others transactions to be executed multiple times. I used below Logic Controllers to design this scenario: Once Only Controller: I put Launch and Login transaction under Once Only Controller Runtime Controller: Others transactions were put under Runtime Controller and I assigned duration of test in seconds.

Q52) What will you do if you are getting out of Memory while execution in Jmeter?

Ans:- I will open Jmeter.bat file in notepad and will increase the heap memory size as below as per the

Q53) How will you do correlation in Jmeter?

Ans:- Regular expression post processor is used to do correlation in Jmeter. I need to put the regular expression after the request from where dynamic parameter is being captured. LB and RB will be found from the response of the request in view result tree. After correlation we need to verify it in Regular expression Tester.

Q54) How will you analyze test results in Jmeter?

Ans:- Jmeter generates test result file in .jtl format. We can add different graphs like response time graph, aggregate report and we can analyze response time and TPS. Sometimes we need to install Jmeter Plugins to get some additional graphs in Jmeter lib folder.

Q55) How do you create script in Jmeter?

Ans:- we need to add below elements to record and debug the script in Jmeter. Test Plan=&gt;Thread Gruop=&gt;HTTP Request =&gt;HTTP Header Manager=&gt;HTTP Cookies Manager=&gt;Constant Timer=&gt;View Results Tree=&gt;CSV Data Set Config=&gt;Response Assertion =&gt;Aggregate Report 

Q56) How do you pass unique values in CSV Data Set Config in Jmeter?

Ans:- We just need to keep unique values in the csv format in the parameter file. Jmeter by default picks the value from the parameter file sequentially. We can control the End of File options in CSV Data Set Config as per our requirements.

Q57) Is there any limit of user/thread in Jmeter we can generate?

Ans:- Jmeter creates thread on to the application under test. Each thread consumes some part of RAM memory while execution. So number if user generated in Jmeter depends on the system hardware configuration on machine Jmeter is running. 

Q58) Have you used BeanShell Sampler in Jmeter?

Ans:- Yes, during my project in the previous organization I used BeanShell sampler to write some Java code. There was a scenario where I have imported some packages, created some objects and passed some string messages in xml format and validated the SR creation using Jmeter. 

Q59) How will you design a test case in Jmeter where 10 users should ramp up then run for 30min and then all 10 users should ramp down?

Ans:- To create this type of test case I need to use jp@gc- Stepping Thread Group. By default this thread group is not available in Jmeter. We need to install a Plugin into lib folder of Jmeter. After that we can put 10 users in thread, then hold load for 1800 se and then finally stop 10 users.

Q60) What are different type of versions in jmeter? And what features are added in latest version?

Jmeter 5.1.1 is the latest release from Apache. New menu TOOLS as been implemented and we can generate HTML report from using this new options. Plug-in Managers allows to upgrade the jmeter script from different versions of jmeter. Search option has been implemented on view results tree.

Q61) How to configure load distribution in Linux using jmeter?

Load distribution can be set up in two ways Either GUI Mode or Non- GUI mode. We have to make to sure both versions of Jmeter and Java should be same version. We have to update the IP address of different Jmeter machines in Property to start Slave machine remotely. Firewall should be disable. If Non_GUI mode Make sure Security group as to be update to allow connection of both machines

Q62) How to configure Email Notification in jmeter?

We can setup the Email notification in our scripts once test as start/stop by using SMTP sampler. for trail purpose we can use Google server and Gmail account. Once we are implemented into project specific you have to get approval from client to use google account as security purpose.

Q63) What are the types of recording in Jmeter?

In all performance tool we have two options to record the script as manual and automation. In Jmeter we can use workbench to record the script for automation record. For manual we can use fiddler or Network log (F12) to record the scriptby manual. While recording in both formate make sure necessary changes as made in network tab on browsers.

Q64) How to configure JTL files in jmeter?

We can save the JTL/CSV files to use View result tree or simple data writer to record the all request has been executed. It will be help full while we are executing the scripts on Non-Gui mode and we have option to save all request/Only Pass/Only failed request.

Q65) How to configure HTML report in jmeter?

In previous versions of jmeter we have to configure HTML report in User Property files and System Property files before starting the execution but in latest version new menus are added in Jmeter to generate the HTML report with existing CSV and JTL files.

Q66) How to execute script in GUI and Non -GUI modes?

Once scripts as developed we have to implement necessary parameters in test cases like correlation, Parametrization, Assertions, Timers, samplers and listeners. Once complete we start test and we can check results on veiw results tree in GUI. If non GUI we have to configure results files as mentioned on question no5 and has to prepare the test comment setup for Non-gui test

Q67) How to do correlation and parameterization in Jmeter? What is the types?

Correlation is nothing but we have to capture the dynamic values which is generated from server. We have to use Regular expressions to capture the dynamic values with help of left and Right boundary.

Q68) What is the use of beanshell script?

Bean-shell sampler can allow to Java bean shell scripts. For example if we need to store the to test cases values and need to compare it, we can use Java beans-heel code to handle the jobs. Here we can implement bean shell preprocessor or bean shell post processor which based on our requirements.

Q69) What is the use of workbench and testplan?

Workbench is used to record the script and we can use it for temporary place to store of test cases/request. Test plan is used to build the test cases which necessary elements. Here we can add the required elements like threads groups, sampler, test assertion, timers, processors and listeners.

Q70) How can you handle if we have Ajax calls in the website (page is refreshed for every 5sec and data is updated)

Ans: Parallel controller is used for this. We can use if contoller – to check 5 sec condition and loop controller to loop the refresh request for every 5 sec. Think of a situation where we are getting many errors in the load test running in Non GUI mode.

Q71) How do we stop the test now as running it further is of no use due to high errors?

For Windoows – stoptest.bat, shutodwn.bat – Double click on both these bat files in Jmeter/bin one by one. The test will be stopped. For Mac – stoptest.sh, shutodwn.sh – Double click on both these bat files in Jmeter/bin one by one. The test will be stopped.

Q72) How do you capture response time of previous request to use it in next request.

We can capture in beanshell/jsr223 sampler with function prev.getTime()

Q73) How do you monitor server metrics of a JMeter Load test assuming that application is hosted on windows server?

Ans: We can use Perfmon plugin in JMeter which captures performance metrics of server.

Q74) I have recorded the script in Mac, Will the test run in windows or not?

Ans: Yes

Besant Technologies WhatsApp