Apache Jmeter Interview Questions

11) Explain what is the configuration elements?

A configuration element works parallel with a Sampler. To set up defaults and variables for later use by samplers configuration elements can be used. At the start of the scope, these elements are processed before any samplers in the same scope.

16) Explain how you can perform spike testing in JMeter?

By synchronizing, timer JMeter spike Testing can be achieved. Synchronizing timer blocks thread until a specific amount of threads has been blocked and then release them all together thus creating large instantaneous load.

Q What are Samplers & Thread Groups?

Samplers – Sampler generates one or more sample results. These sample results have many attributes like elapsed time, data size, etc. It allows JMeter to send specific types of requests to the server, through samplers, thread group decides which type of request it need to make. Some of the useful samplers are HTTP request, FTP request, JDBC request etc.

samplers & threadgroups - performance testing interview questions - edurekaThread Groups – JMeter is the beginning part of thread group elements. It is an important element of JMeter, where you can set number of users and time to load all the users given in the thread group.

20) What do you know about the Pre-processors in JMeter?

Before the sample requests are accomplished, Pre-processors are executed. Basically, these are nothing but the test plan elements that are helpful in ensuring reliability. Some of the widely used Pre-processors in the JMeter are:

  • RegEx
  • Beanshell
  • Rewriting modifier
  • Link paper for HTML
  • Most Common JMeter FAQs

    Yes, it is possible to run the JMeter in GUI. For this, a simple command is used and i.e.

    :jmeter -n -ttest.jmx -l test.jtl

    It works very simply. There is nothing much you need to do. Actually, it simply acts as a pool of users that often sends their requests to the server. Collecting all the responses from the server is the responsibility of the JMeter. These responses are then considered for analyzing the performance of the apps.

    25) What are the main parts of a Thread Group?

    The main parts of Thread Group as mentioned below

  • Controller: which controls the entire flow of the thread group
  • Assertion: This is responsible for time management. Basically, it checks whether the response is there within the specified time or not.
  • Sampler: Its task is to send different requests to the server
  • Configuration elements: It manages information related to the requests that are to be integrated with samplers
  • Listeners: Its task is to save the final outcome of the run.
  • 14) Explain what is Assertion in JMeter? What are the types of assertion?

    Assertion helps to verify that your server under test returns the expected results

    Some commonly used Assertion in JMeter are

  • Response Assertion
  • Duration Assertion
  • Size Assertion
  • XML Assertion
  • HTML Assertion
  • Q What are Pre-processor & Post-processor Elements?

    Pre-processor – A Pre-Processor is something that will happen before a sampler executes. They are often used to modify the settings of a Sample Request just before it runs.

    Post-processor – A Post-Processor executes after a sampler finishes its execution. This element is most often used to process the response data.

    Q1 How to reduce the resource requirement in JMeter?

    To reduce the resource requirements in JMeter:

  • Use non-GUI mode.
  • During the load, test doesn’t use “view results tree” or “view results in table” listeners. It is used only during scripting phase.
  • Don’t use functional mode.
  • Do not use similar samplers. Instead, use the same sampler in loop and use variable to vary the sample.
  • JMeter tutorial 23 – JMeter interview Questions – Part 1 | Performance Testing Interview Questions

    Related Posts

    Leave a Reply

    Your email address will not be published. Required fields are marked *