Special Offer - Enroll Now and Get 2 Course at ₹25000/- Only Explore Now!

All Courses
JMeter Interview Questions and Answers

JMeter Interview Questions and Answers

April 3rd, 2019

In case you’re searching for JMeter  Interview Questions and answers for Experienced or Freshers, you are at the correct place. There is parcel of chances from many presumed organizations on the planet. The JMeter advertise is relied upon to develop to more than $5 billion by 2020, from just $180 million, as per JMeter industry gauges. In this way, despite everything you have the chance to push forward in your vocation in JMeter Development. Gangboard offers Advanced JMeter  Interview Questions and answers that assist you in splitting your JMeter interview and procure dream vocation as JMeter Developer.

Best JMeter Interview Questions and Answers

Do you believe that you have the right stuff to be a section in the advancement of future JMeter , the GangBoard is here to control you to sustain your vocation. Various fortune 1000 organizations around the world are utilizing the innovation of JMeter to meet the necessities of their customers. JMeter is being utilized as a part of numerous businesses. To have a great development in JMeter work, our page furnishes you with nitty-gritty data as JMeter prospective employee meeting questions and answers. JMeter  Interview Questions and answers are prepared by 10+ years experienced industry experts. JMeter Interview Questions and answers are very useful to the Fresher or Experienced person who is looking for the new challenging job from the reputed company. Our JMeter Questions and answers are very simple and have more examples for your better understanding. By this JMeter Interview Questions and answers, many students are got placed in many reputed companies with high package salary. So utilize our JMeter Interview Questions and answers to grow in your career.

Q1) What is JMeter?

Answer: JMeter is a Java Open source Performance Testing apparatus to stack test utilitarian conduct and measure execution. You can utilize JMeter to examine and gauge the execution of web application or an assortment of administrations.

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

Answer: HTTP, FTP, SOAP-XML, JDBC and so on are the distinctive conventions we use utilizing JMeter.

Q3) What is the skeletal structure of a JMeter Script?

Answer:

  1. Test Plan
  2. Config Elements
  3.  Pre Processors
  4.  Thread Group
  5.  Post Processors
  6.  Listeners

Q4) How does JMeter function?

Answer: JMeter does not bolster the genuine program conduct. It doesn’t render the HTML site pages as the typical program does. The reaction will be seen in HTML arrange yet the genuine timings are absent in the produced tests.

Q5) What are the Benefits of Jmeter?

Answer: JMeter offers benefits on execution testing like
It can be utilized to test execution for both, static assets and also powerful assets
It can deal with a most extreme number of simultaneous clients then your site can deal with
It gives the graphical examinations of execution reports

Q6) What is Pre-Processing Element?

Answer: Pre-processors are JMeter components that are utilized to execute activities before the sampler demands are executed in the test situation. Pre-processors can be utilized for various execution testing needs, such as getting information from a database, setting a timeout between sampler executions or before test information age.

Q7) What is Post-Processing Element?

Answer: Post-Processors are JMeter components that are executed after the sampler demands are executed. Post-Processors can be utilized for some, reasons like separating the information from the reaction.

Q8) What are Listeners?

Answer: Audience members will give you a chance to see the outcomes as arranged information, charts, JSON Responses, etc.

Q9) Notice distinctive sorts of Listeners.

Answer:

  • Graph results
  • View results tree
  • Aggregate Report
  • Aggregate Graph
  • Assertion Results

Q10) What is the utilization of Regular Expression Extractor?

Answer: Standard Expression can be utilized for separating a few qualities powerfully from the reactions to use to it in the resulting solicitation or spare it for revealing purposes. Ordinary Expression is utilized in both Pre-Processors and also Post-Processors.

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

Answer: It relies upon the equipment arrangement of your framework which incorporates a processor, JVM, designated memory and so forth. Different variables which affect this are the quantity of segments in your test plan i.e. the quantity of config components or processors and it additionally relies upon whether you are utilizing GUI/Non-GUI Mode.

Q12) Can portable activities be recorded utilizing JMeter?

Answer: Indeed, JMeter can record HTTP or https ask for setting off to the server from your portable application moreover. Portable and JMeter ought to be on a similar system.

  • Configure your intermediary server in JMeter to keep running at a predefined port.
  • Set up an intermediary on your versatile Wi-Fi settings and enter a similar port number that is utilized in the recorder.
  • Install the Root CA declaration on your versatile.
  • Hit server ask for from your portable and watch it getting caught by the predetermined controller.

Q13) Would we be able to utilize Selenium Automated Scripts in JMeter?

Answer: Indeed, we can run selenium contents in JMeter to get a few thoughts on their execution. It very well may be done in 2 different ways.
You can utilize JUnit libraries to fabricate Selenium contents and spare as Jars and duplicate the equivalent in JMeter registry. And after that add Junit sampler to your test plan and import the Jar record.
Something else, Web driver sampler module can be included the JMeter Ext organizer and after that restart the JMeter. Compose your selenium code in the Web driver sampler and afterward execute to see the execution.

Q14) How might we oversee sessions and treats in JMeter?

Answer:

  1. Sessions and treats can be overseen in JMeter by utilizing config components, for example, HTTP Cache Manager which gives an alternative to clear the treats in each emphasis and furthermore permits to include client characterized treats.
  2. HTTP Cache administrator encourages you in clearing reserve after every cycle according to your necessity in the heap tests and furthermore restrains the quantity of components which can be put away in the store. Both of these config components can be appended to the HTTP sampler.

Q15) What is a Timer and what are the diverse kinds of Timers accessible in Jmeter?

Answer: A JMeter string as a matter of course will send asks for persistently immediately. To get a delay between the demand, Timers are utilized. 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.

Answer: With the assistance of a clock, JMeter can defer the time between each demand, which a string makes. It can take care of the over-burden issue of the server.

Q17) Clarify the contrast among Gaussian and Poisson Timers.

Answer: Both Gaussian and Poisson Timers chip away at a numerical recipe with some consistent 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?

Answer:
Consistent Timer: If we need to have each string delay for a similar measure of length, we utilize Constant Timer.
Consistent Throughput Timer: A Constant Throughput Timer will give the set throughput through a string gathering or a specific string.

Q19) What is Beanshell Scripting?

Answer: BeanShell is a lightweight Java scripting that is utilized in JMeter to play out some perplexing assignment. BeanShell sampler can perform different capacities with the utilization of coding. You can print the string number, get the present sampler executed, bring the treats and so on.

Q20) What is a root CA declaration?

Answer: HTTPS association requires an endorsement 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. For account activities by means of versatile, you need this endorsement in your portable to record the activities.

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

Answer: It is a config component utilized amid the heap test to give outside emphasis contributions to Parameters.

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

Answer: Indeed, 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?

Answer: Indeed, it is conceivable to run the JMeter in GUI. For this, the accompanying direction is utilized
:jmeter – n – ttest.jmx – l test.jtl

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

Answer: By synchronizing clock, JMeter Spike Testing can be accomplished. Synchronizing clock squares string until an explicit measure of strings has been blocked and after that discharge them all together in this manner making vast quick load.

Q25) What is Test Fragment?

Answer: Test piece is likewise a kind of component like Thread Group component. The main distinction is test piece isn’t actualized except if it is referenced by either a Module controller or an Include controller.

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

Answer: Test designs are typically spared in XML arrange, thus they don’t have anything to do with any 1. What is JMeter?
JMeter is a Java Open source Performance Testing device to stack test utilitarian conduct and measure execution. You can utilize JMeter to examine and quantify the execution of web application or an assortment of administrations.

Q27) What is a Listener?

Answer: Audience comes vigorously when the content is executed. 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. They are exceptionally valuable to investigate the trial and help to discover the main driver of the disappointments assuming any.

Q28) What are diverse kinds of Listeners in JMeter?

Answer:

  1. View Results in a Tree
  2. View Results in a Table
  3. Straightforward Data author
  4. Total Graph

Q29) Is there some other method to open JMeter other than GUI mode?

Answer: JMeter can be kept running in the non-GUI mode utilizing beneath order in Command brief
jmeter – n – t <scriptname.jmx>

Q30) What is the reason for a Timer?

Answer: Clocks are otherwise called Think Time in JMeter. They add certain deferral to the solicitations to which they are included. Including Timer isn’t required yet as a rule, are added to specific demands that should hit the server after a specific interim. Diverse kind of Timers is Constant Timer, Gaussian Random Timer, Uniform Random Timer, Synchronizing Timer and so forth.

Q31) What is a customary articulation?

Answer: Standard articulation or Regex are articulations that are made to get information progressively among solicitations and reaction. This is finished utilizing 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?

Answer:

  1. JMeter is open source and one need not pay for its permit.
  2. It is stage autonomous.
  3. Backings Multithreading
  4. No programming abilities are required
  5. Great Reporting

Q33) What is a preprocessor?

Answer: Pre-Processors are a lot of activities that are executed before the example demand is executed. There are diverse sorts 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?

Answer: Postprocessors are a lot of activities that are executed after the example demand is executed. There are distinctive sorts of post processors in JMeter like JDBC post processor, Regular articulation extractor, XPath Extractor

Q35) What is circulated trying utilizing JMeter?

Answer: As JMeter devours a great deal of memory and the utilization increments with the quantity of clients henceforth on the off chance that one needs to test with countless than the heap can be part between various machines. Each machine hits the server with some heap. For instance, in the event that one needs to mimic the heap of 900 clients than 3 machines of 300 burden each can be utilized. This is upheld by JMeter and that encourages us to utilize ‘n’ number of servers to create as much burden as we need.

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

Answer: Factors in JMeter can be utilized to parametrize 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 ${}
Arrangement
Name: Var1
Esteem: ${variableValue}

Q37) What is the increase time frame?

Answer: Toward the start of the heap trial of an application as opposed to putting every one of the clients live, we gradually increase the quantity of clients so as to think about their impact in the application’s execution. In JMeter, increase period characterizes the timeframe inside which all the predefined clients get in running state.

Q38) What are samplers in JMeter?

Answer: Samplers are utilized for sending distinctive kinds of solicitations to the server. A portion of the regularly utilized samplers are – HTTP Request, JDBC Request, SOAP-XML Request, JUnit demand, TCP Sampler and so forth.

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

Answer: Audience members are utilized for review, sparing of test outcomes and furthermore help in a forbidden and graphical examination of the test outcomes. A portion of the broadly utilized Listeners are – Aggregate Report, Aggregate Graph, Graph Results, View Results Tree and so on.

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

Answer: Circulated load testing is the procedure utilizing which numerous frameworks can be utilized for mimicking a heap of expansive number of clients. The purpose behind utilizing more than one framework for burden testing is the impediment of a solitary framework to create a substantial number of strings (clients). In JMeter, we can do conveyed load testing utilizing the ace slave design. [For complete strides to perform appropriated load testing allude to the post-Distributed burden testing in JMeter]

Q41) What are the diverse clocks in JMeter?

Answer: Clocks are utilized for ending the test execution of a string for a certain predefined time. These clocks are utilized for recreating the genuine client think time. The diverse kinds of clocks accessible in JMeter are – Constant Timer, Gaussian Random Timer, Uniform Random Timer, Constant Throughput Timer, Synchronizing Timer, Beanshell clock, BSF Timer and so on.

Q42) What is the utilization of Configuration components?

Answer: Arrangement components are utilized for modifying the sampler demands for example CSV Data Set Config can be utilized for parameterizing the sampler demands with qualities brought from the outside CSV document.

Q43) What are Pre-Processors?

Answer: Pre-processors are tried arrangement components that are executed before the sampler demand execution. Some ordinarily utilized pre-processor in JMeter are BeanShell PreProcessor, HTML Link Parser, HTTP URL Re-composing Modifier, RegEx User Parameters and so on.

Q44) What are Post-processors?

Answer: Post-processors are the test plan components that are executed after the sampler demand execution. For the most part, post processors are utilized for bringing a few qualities from the sampler reaction.

Q45) How might we lessen the asset necessity in JMeter?

Answer:

  1. 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-
  2. Utilize the non-GUI mode: JMeter – n – t-test.JMX – l test.jtl
  3. Use as couple of Listeners as could be allowed; if utilizing the – l banner as above they would all be able to be erased or crippled.
  4. 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.
  5. 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. [The Include Controller does not help here, as it includes all the test components in the record to the test plan.]

Q46) Try not to utilize JMeter’s useful mode amid the heap test executions.

Answer:

  1. Use CSV yield instead of XML.
  2. Just spare the information that you need.
  3. Use as couple of Assertions as could reasonably be expected

Q47) What Is The Execution Order Of Test Elements?

Answer: 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?

Answer: 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?

Answer: Employments of screen tests are:

  1. Screens are helpful for stress testing and framework the board.
  2. Utilized with pressure testing, the screen gives extra data about server execution.
  3. Screens make it less demanding to see the connection between server execution and reaction time on the customer side.
  4. 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?

Answer: The contrasts among pattern and benchmark testing are:

  1. Pattern testing is the way toward running a lot of tests to catch execution data. This data can be utilized as a point of reference when in future changes are made to the application while Benchmarking is the way toward looking at your framework execution against an industry standard that is given by some other association.
  2. Precedent: We can run benchmark trial of an application, gather and investigate results, and afterward alter a few files on a SQL Server database and run a similar test once more, utilizing the past outcomes to decide if the new outcomes were better, more terrible, or about the equivalent.

Q51) Can you design a J-METER scenario, where you should plan the execution of launch and login only once, even when the submit transaction should be executed multiple times?

Answer: I can make use of below Logic controllers to design a scenario where Login and Launch should be executed once and submit transaction (rest others) can be executed multiple times:

  • We can use Once Only Controller and put Login and Launch under it
  • We can put other transactions (here submit) into runtime controller which should be executed multiple times and assign the duration of test in seconds

Q52) Let us say you have got out of Memory Exception while Executing the J-meter, what can you do?

Answer: I will try to increase the heap memory size in the jmeter.bat file as per the system RAM.
To do this I Would have to open jmeter.bat file in notepad and change the heap memory as below:
Set HEAP=-Xms 2048m – Xmx
2048m -XX:MaxMetaSpaceSize=2048m

Q53) How to do correlation in J-METER?

Answer: Correlation in J-METER can be done using Regular expression post-processor. We need to put the regular expression in the place where the dynamic parameter is captured. we can find out RB and LB from the view result tree (response of the request). We should also verify those in Regular expression tester after the correlation.

Q54) How can we analyze test results of J-METER?

Answer: Results in J-METER are generated in the of form .jtl file format, we can add different graphs to these results like aggregate report, response time graph and can analyse TPS and response time. Sometimes there would be a requirement to install J-METER plugins to generate some of additional graphs in J-METER library(lib) folder.

Q55) How do we create scripts in J-METER?

Answer: To create, debug and record the scripts in J-METER, we need to add below elements:

  • Manager=&gt;Constant Timer=&gt;View Results Tree=&gt;CSV Data Set Config=&gt;Response Assertion=&gt;Aggregate Report
  • Test Plan=&gt;Thread Gruop=&gt;HTTP Request =&gt;HTTP Header Manager=&gt;HTTP Cookies

Q56) How can you pass Unique values into J-METER’s CSV Data Set Config?

Answer: Create a CSV format of unique values in the parameter file, J-METER always picks up the values from the parameter file in a sequential way by default. End-of-file options in CSV dataset config can also be controlled by us.

Q57) Do we have any limit on a number of users/threads that we can generate in J-METER?

Answer: J-METER always creates threads on the application under testing. since every thread created consumes part of RAM memory during execution, the number of threads that we can create always would depend on systems hardware config on which the J-METER is being ran on.

Q58) How can we test J-METER’s web services?

Answer: To test the web services on J-METER we need to get the XML file generated using SOAP UI and WSDL file from the developer.

  • Put the XML file from SOAP UI in body data of HTTP Request
  • Enter server IP and protocol as http/https, port number and method should be entered as POST

So that we can find out what parameters are needed for parameterization for that particular API.

Q59) Have you ever worked on BeanShell Sampler of J-METER?

Answer: Yes, I did get few opportunities to work on it while working with some of projects(or one of projects) with my previous organization, we used it to write Java code. There was a scenario where I had to import packages, create objects and pass string messages in XML format and validate the creation of SR using J-METER.

Q60) What types of recording have you used in J-METER?

Answer: In all types of performance tools, we will have two types of recordings to record scripts 1. Manual and 2. Automatic.
In J-METER we can make use of workbench for the automatic record, of scripts and Network log(F12) or fiddler to do it manually.

Q61) What versions of J-METER available in the market? And what are the features that are added into latest version of J-METER?

Answer: Latest version of J-METER that is released by Apache is 5.1.1,
The new features that are added into this version is

  • New Menu tools from which we can generate the HTML reports
  • Search in view results tree is implemented.
  • J-METER script from the different versions of it can be upgraded to latest version making use of New Plug-In managers

Q62) How can we configure load distribution on the Linux Platform using J-METER?

Answer: Load-Distribution on Linux platform can be done in 2 ways
1.GUI
2.Non-GUI
For both configurations we need to make sure that both versions of Java and J-METER are in sync, the firewall should be disabled and we need to update IP address of different machines of J-METER to startup the slave machine remotely.
For Non-GUI mode specifically, there is a need to make sure that the security group needs to be updated for allowing connections on both machines.

Q63) How do we configure Email Notifications in J-METER?

Answer: By using SMTP sampler Email notifications can be configured in our scripts, we can also use google server and Gmail account for trail purpose. Once the implementation is done in a project-specific way, we can take the permission from the clients to use google account for security purpose.

Q64) How can we configure JTL files in J-METER?

Answer: For using simple data writer or view result tree to record the info of all requests that has been executed we can save JTL/CSV files. These files saved would be much helpful while executing the scripts in Non-GUI mode, and in this mode,  we have the option to save all requests/Only failed request/only pass into JTL format.

Q65) How should we configure the HTML report in J-METER?

Answer: We used to configure HTML reports in older versions of J-METER in user property files and system property files before starting the execution, but as in latest version we have got new menus added in J-METER to generate the HTML reports along with the existing JTL and CSV files.

Q66) What is parameterization in J-METER, and what are different types of it?

Answer: Passing the values in test cases like input data like username/password to test cases is called as parameterization, we can make use of CSV data to pass the values either using CSV format or TXT format files.
Two ways of passing values into parameters are,

  • Pass values directly into body data
  • Data config using CSV

Q67) What exactly is the use of BeanShell script in J-METER?

Answer: Beanshell sampler can be used to allow java bean shell scripts into J-METER, for example if there is need to store test case values and compare those then we can use Java beans heel code to handle the jobs, we can also implement bean shell pre-processer or post-processer based on our requirements.

Q68) What is the use of using Workbench and Test Plan in J-METER?

Answer: The main use of Workbench is to record the scripts and also as a temporary place to store the requests or Test cases.
A test plan is used to build test cases using the necessary test cases. We can add in elements like a sampler, timers, listeners, test assertions, thread groups and processers as part of building the test plans.

Q69) How can we handle AJAX calls on the website that has a refresh rate of 5secs and data is updated for each refresh?

Answer: We can make use of a parallel controller for this. We can use IF Controller to check the 5 seconds condition and loop controller for looping the request for every 5 seconds.

Q70) What are the different Protocols Supported By J-Meter?

Answer:

  • Web Protocol: for testing web applications, supports both HTTPS(secured) and HTTP protocols.
  • Web Services: for testing web services and web applications, it supports both REST and SOAP.
  • FTP: For testing FTP Applications and servers
  • Database via JDBC: for testing DB applications
  • LightWeight Directory Access Protocol(LDAP)
  • MOM: Message Oriented Middleware via JMS
  • Mail: Test mail servers like POP3(S), SMTP(S) and IMAP(S)
  • NOSQL(MongoDB): most recent protocol supported by J-METER
  • Shell scripts and Native commands
  • TCP

Q71) What are different controller types in J-METER?

Answer: There are mainly two different types of controllers in J-METER
Sampler Controller: used by JMETER for posting the specific type of requests to the server, also simulates users’ requests for a webpage from the target servers.
Logical Controller: Used to control the order of execution of samplers in a thread.

Q72) Why can’t be J-METER considered as a browser?

Answer: There are two main reasons for this

  • J-METER doesn’t have javascript Execution engines like browsers, so it can’t execute java scripts.
  • It can’t render HTML pages as a browser does

Q73) How can we handle Correlation and Parameterization in J-METER?

Answer:
Parameterization:
Use Pre-Processors: Regex User Parameter, User Parameters, Bean Shell Pre-Processor etc.
Configuration Elements: Counters, CSV Data Set Configs
Correlation:
Use Post-Processors: Boundary Extractor, Regular Expression Extractor, and JSON Extractor etc.

Q74) What are Listeners in J-METER? And please list few listeners?

Answer: Listeners enables us to view the results of samplers in the form of graphs, tables, simple text in some log files or trees.
Few listeners used in J-METER are

  • Spline visualizer
  • Aggregate Report
  • View Result Tree

Q75) How Actually does a J-METER work?

Answer: J-METER works on the network level, it always acts like a proxy and can record network traffic between server and client(browser). We can also modify the recorded traffic and send it with multiple users(threads) for load and performance testing.

Q76) How can we do Percent Based Distribution in J-METER?

Answer: We should do both browser and network distributions in J-METER

  • Browser Distribution (40% to Chrome, 30% to Firefox and 30% to IE)
  • Network Distribution (60% to LAN, 20% to 4G, 10% each to 3G and 2G)

There are multiple ways in achieving these scenarios, using

  • By using multiple Thread Groups
  • Using Parameterization Techniques
  • Using Throughput Controller
  • Using Beanshell /JSR223 sampler
  • Using Switch Controller

Q77) How can we perform Testing on J-METER from different Geo-Locations?

Answer: We can make use of distributed testing using J-METER for testing on J-METER from different locations. There are two ways to do it

  •  On-Premise set up of JMeter on different locations
  • Using Blaze meter (Cloud-based)

Q78) What exactly is a thread group in JMeter?

Answer: Thread group is an element of test plan in J-METER which represents a pool of virtual users performing set of operations.

Q79) What test element should be added to perform recording in J-METER?

Answer:  HTTP(S) Script recorder

Q80) Does J-METER connect automatically to the internet without proxy or do we need setup browser proxy for Mozilla or chrome manually to record?

Answer: There is a need to set-up browser proxy to record in J-METER manually, this can be done by providing the address of the port in proxy settings of any browser.

Q81) What is difference between Pre_processer and Post_Processer in J-METER?

Answer:

  •  Pre-Processor is always executed before running Sampler and can be used to generate some input.
  •  Post-Processor is executed after running Sampler, can be used for clean-up or recovery

Q82) How can we manage Sessions and cookies in J-METER?

Answer: HTTP cache manager can be used to manage cookies and sessions in J-METER, which can allow to define user-defined cookies and also can clear the cookies after every iteration cycle. We can also regulate the clearing of the cache according to user requirements in load tests to restrict a number of elements stored in the cache and these elements can be attached to the Listener.

Q83) What are the Thread group’s main parts in J-METER?

Answer:

  • Sampler: used for sending different types of requests to the server.
  • Listeners: To save and view the results of the run.
  • Timer: used to run more realistic scenarios by insertion of delays in between requests.
  • Controller: used to control the flow of thread groups
  • Config Element: Info of requests that need to be added with samplers.
  • Assertion: used to check whether the responses generated are within given time and has expected data

Q84) How are requests sent to the server in J-METER?

Answer: Samplers are used to send requests to the server in J-METER. There are different samplers which are present in the J-METER and few of them are:

  • Junit request
  • JDBC request
  • HTTP request

Q85) How can we collect client-side metrics using J-METER?

Answer: A component called WebDriver Sampler can be used to collect client-side metrics

Q86) What exactly do you mean by term J-METER?

Answer: J-METER Java-based tool, open-source nature of it makes it very popular. We can use J-METER across different web-based apps or web services. Moreover, it is the capability to handle databases and also FTP servers.

Q87) Can I test run a script recorded on MAC on Windows?

Answer: Yes.

Q88) Which Listener is the best one to keep during a Load test?

Answer: Sample Data Writer

Q89) How can we monitor server metrics of a load test in J-METER when it is being run on a Windows platform?

Answer: Perfmon plugin of J-METER can be used to capture the performance metrics of the server during the load test.

Q90) Can you explain the flow of the Test Script Recorder?

Answer: HTTP(s) Test Script Recorder can be used to record the requests from Application to server. There are some configurations to be done in JMETER to make that work.
Here are the steps needed to be followed for recording HTTP(S) traffic:

  • Do Add HTTP(S) recorder to workbench
  • Enter the port number from which you want to start proxy and start the proxy server.

Now configure proxy settings your browser manually on your Browser by giving the same port number used in the recorder of test Script.

Q91) Suppose if you have 5 users and you want to maintain their own counter for each user then how you will achieve it?

Answer: >Using a ‘_Counter’ function, you can set a ‘True’ value for ‘TRUE, for each user to have own counter’  field
>Suppose there are 5 users then in the first iteration counter of all 5 users will be 1.
>In the second iteration it will be 2 for all users like that

Q92) If you want to hit your own machine’s ip then how you will achieve it ?

Answer: >Using functions available in Jmeter we can achieve it.
>Options->Function helper dialog->Choose a function-> select ‘_machineIP’->store in value example ‘IP’->Click on ‘Generate’->copy string->and paste in request->Server Name or IP field

Q93) What is a disadvantage of ‘Simple Controller’?

Answer: >Simple controller does not provide the total time required to execute all transactions

Q94) Is it possible to restrict output within time boundaries and which parameter will be used for the same?

Answer: >In the individual sampler connection time out can provide OR
>In http request defaults we can provide response time. If child samplers have there owned timeout then the child will override HTTP request defaults connection timeout value

Q95) Will it help to define an FTP protocol while downloading a file?

Answer: >No need to mention FTP explicitly..In FTP request we have to mention a remote file path, local file path and Server URL from where we want to download file

Q96) Which feature FTP request sampler provides to check downloaded file from server is correct or not?

Answer: >’Save File in response checkbox’-this saves file in a listener

Q97) How to extract the link from one http request sampler to other http requests?

Answer: >HTML link parser is used

Q98) How you will make sure that ‘Xpath Extractor’ post-processor has captured the right variable?

Answer: >We can use ‘Debug Sampler’ along with one listener

Q99) To parse a html response in view results tree listener which settings need to be done?

Answer: >Select an ‘Xpath Tester’ from output dropdown available and
>select checkbox of ‘Use Tidy <tolerant Parser>
>Pass Xpath Expression ->click on ‘test’ button then you can find expected variable from Xpath Tester

Q100) Which Sampler is similar to Constant Timer in Jmeter?

Answer: >’Test Action’ sampler is similar to Constant Timer in which you can select actions to ‘Pause’, ‘Stop’, ‘Stop Now’, and ‘Go to next loop iterations’ and can give time in ‘Duration(milliseconds)’ field as well

Q101) What is the use of ‘Include duration of the timer and pre-post processors in generated sample’ checkbox in the transaction controller?

Answer: >It gives a total transaction time required for executing requests +preprocessors execution time +postprocessor execution time52. Scenario: If you want to test load when 100 users are doing login and at the same time another 100 users are hitting the home page. How will you test?
You can use an ‘Interleave Controller’ so first login functionality will be tested and after that, if home page request is in another controller then that will be picked to execute rather than the second request from the first controller