JMeter Interview Questions

  • JMeter Interview Questions as well as Answers
    1) What is Jmeter?
    •    Influenza A virus subtype H5N1 multifunctional opened upward root software testing tool amongst huge online community back upward as well as large database of fans.
    •    Jmeter is developed inwards Java. Due to its pluggable nature amongst dissimilar tools, it is giving huge contest to dissimilar tools as well as has occupied large marketplace part inwards software testing as well as is growing twenty-four hours past times day.
    •    Jmeter is used for dissimilar types of testing – Performance Testing, Functional Testing, Regression Testing, Unit Testing.

    2) Give a brief history virtually Jmeter?
    A Brief History of Jmeter:
    Stefano Mazzocchi is credited for existence the developer of this unique tool- Apache JMeter, which is claimed to receive got been developed to essay the strength as well as performance of the Apache JServ. However; it was subsequently redesigned to become inwards capable of doing, performance testing, functional testing, regression testing, as well as unit of measurement testing equally well.
    Since Nov 2011, the Apache JMeter projection has been included inwards the grouping of the company’s Top Level projects as well as today it consists of a separate website as well as a dedicated Project Management Committee to handgrip its operations as well as to render assistance.

    3) Explain how JMeter works?
    JMeter acts similar a grouping of users sending requests to a target server. It collects answer from target server as well as other statistics which demonstrate the performance of the application or server via graphs or tables.

    4) What is Performance Testing?
    Performance Testing is performed to determine answer fourth dimension of the simply about components of the organisation perform nether a item workload. It is mostly measured inwards price of answer fourth dimension for the user activity. It is designed to essay the overall performance of the organisation at high charge as well as stress condition. It identifies the drawback of the architectural pattern which helps to melody the application.

    5) What is Load Test?
    This essay is basically used for exercising\discovering the organisation nether the meridian charge it was designed to operate under.

    6) What is distributed charge testing? How tin strength out it hold out achieved inwards JMeter?
    Distributed charge testing is the procedure using which multiple systems tin strength out hold out used for simulating charge of large number of users. The argue of using to a greater extent than than i organisation for charge testing is the limitation of unmarried organisation to generate large number of threads (users). In JMeter nosotros tin strength out practice distributed charge testing using the principal slave configuration.

    7) What is concurrent user hits inwards charge testing?
    When the multiple users, without whatever fourth dimension difference, hits on a same lawsuit of the application nether the charge essay is called a concurrent user hit. The concurrency signal is added so that multiple Virtual User tin strength out piece of work on a unmarried lawsuit of the application. By adding concurrency point, the virtual users volition hold off for the other Virtual users which are running the scripts, if they ambit early. When all the users reached to the concurrency point, entirely as well as then they foremost hitting the requests.

    8) What are the benefits that JMeter offers for performance testing?
    JMeter offers benefits on performance testing like,
    •    It tin strength out hold out used to essay performance for both, static resources equally good equally dynamic resources
    •    It tin strength out handgrip a maximum number of concurrent users as well as then your website tin strength out handle
    •    It provides the graphical analyses of performance reports

    9) What is baseline testing?
    Baseline testing is a testing which is performed on the application earlier coming to whatever conclusion. It tin strength out hold out either the verification or validation procedure which provides an thought of what the side past times side phase has to do. It is real of import testing technique, if done properly, 85% of performance problems tin strength out hold out identified as well as solved when proper baseline tests are done.

    10) What is the involve for Performance testing?
    Performance testing is needed to verify the below:
    •    Response fourth dimension of application for the intended number of users
    •    Maximum charge resisting capacity of application.
    •    Capacity of application to treatment the number of transactions.
    •    Stability of application nether expected as well as unexpected user load.
    •    Ensuring that users receive got proper answer fourth dimension on production

    11) What is the argue behind performing automated charge testing?
    Following drawbacks of manual Load Testing that leads to Automation charge testing:
    •    Difficult to mensurate the performance of the application accurately.
    •    Difficult to practice synchronization betwixt the users.
    •    Number of existent fourth dimension users are required to involve inwards Performance Testing
    •    Difficult to analyze as well as position the results & bottlenecks.
    •    Increases the infrastructure cost

    12) What is performance tuning?
    To better the organisation performance nosotros follow a mechanism, known equally Performance tuning. To better the systems performance in that location are 2 types of tuning performed they are,
    •    Hardware tuning: Optimizing, adding or replacing the hardware components of the organisation as well as changes inwards the infrastructure grade to better the systems performance is called hardware tuning.
    •    Software tuning: Identifying the software grade bottlenecks past times profiling the code, database etc. Fine tuning or modifying the software to create the bottlenecks is called software tuning.

    13) What is Spike testing as well as how tin strength out nosotros perform it inwards JMeter?
    Suddenly spiking or increasing the number of users at certainly signal of application as well as and then monitoring the conduct at that intervals is spike testing.
    In JMeter spike testing tin strength out hold out achieved using Synchronizing Timer. Synchronizing timer blocks the threads until a item number of threads receive got been blocked, as well as and then unloosen them at in i lawsuit thence creating large instantaneous load.

    14) What are the other applications tested past times Jmeter?
    JMeter may hold out used to essay performance both on static as well as dynamic resources (files, Servlets, Perl scripts, Java Objects, Data Bases as well as Queries, FTP Servers as well as more)

    15) What is Test Plan inwards Jmeter?
    Test programme describes a serial of steps JMeter volition execute when run. Influenza A virus subtype H5N1 consummate essay programme volition consist of i or to a greater extent than Thread Groups, logic controllers, as well as sample generating controllers, listeners, timers, assertions, as well as configuration elements.

    16) What are Controllers as well as its types?
    JMeter has 2 types of Controllers, they are
    •    Samplers Controllers
    •    Logical Controllers
    Samplers Controllers:Samplers enjoin JMeter to shipping requests to a server.
    For example, add together an HTTP Request Sampler if you lot desire JMeter to shipping an HTTP request. You tin strength out also customize a asking past times adding i or to a greater extent than Configuration Elements to a Sampler.
    Logical Controllers:Logical Controllers allow you lot customize the logic that JMeter uses to create upward one's hear when to shipping requests. Logic Controllers tin strength out alter the social club of requests coming from their youngster elements.
    For example, you lot tin strength out add together an Interleave Logic Controller to alternate betwixt 2 HTTP Request Samplers.

    17) What are listeners inwards Jmeter?
    Listeners inwards Jmeter are used to capture the answer information of charge test. We tin strength out receive got answer information (result) inwards cvs, icon (graph) or inwards html format.

    18) Name 4 to v listeners inwards jmeter, which are unremarkably used?

  • •    View number tree
    •    Summary report
    •    Aggregate Graph
    •    Response fourth dimension vs. thread
    •    Composite graph
     
  • 19) What is median inwards jmeter listener?
    It is a number which divides the samples into 2 equal halves. Half of the samples are smaller than the median, as well as one-half are larger.

    20) What is throughput inwards jmeter listener?
    Throughput is relation betwixt fourth dimension as well as data. It shows the relation betwixt http asking as well as unit of measurement time. Means how many requests are processed inwards how much time.
    Throughput = Number of requests / Time(second or millisecond)

    21)What is heap size inwards jmeter?
    Jmeter is piece of work inwards java, as well as heap size is related to java. Java heap is the heap size allocated to JVM applications which takes tending of the novel objects existence created. If the objects existence created hap the heap size, it volition throw an fault of java.lang.out.of.memory.
    Java's default heap size bound inwards Jmeter is 256 MB.

    22) Is it possible that, if nosotros increment the heap size inwards Jmeter, as well as then application(jmeter) powerfulness non work?
    Yes, it is possible. Because heap size depends upon the empty infinite of your machine inwards c drive equally good equally your RAM. If the RAM is 1 GB as well as you lot increased the heap 2048, it may non work.

    23)What is 90% line of piece of work inwards JMeter?
    •    The aggregate written report listener receive got 90% line of piece of work equally i of the metric. The Apache JMeter manual describes 90% line of piece of work as- "90% of the samples took no to a greater extent than than this time". It is genuinely the xc percentile of the answer times of the samples -
    •    xc percentile = (90/100)*N+1/2 where due north is the number of samples
    •    So, if in that location are 10 samples as well as then 90%line volition hold out 9.5 or 9. It agency the ninth value inwards the sorted listing of samples (sorted according to ascending social club of their answer times) volition hold out the 90%line value.

    24) What is Blaze Meter?
    Blaze Meter is a cloud based service compatible amongst Apache JMeter. It generates large amount of instant charge as well as render real comprehensive reporting as well as analysis features.
    In Blaze meter nosotros tin strength out simply upload the JMeter script as well as run the charge essay on cloud amongst predefined number of users.

    25) What is correlation?
    Correlation is the most of import facial expression of scripting. It mostly includes fetching dynamic information from preceding requests/calls as well as posting it to the subsequent requests.

    26) Explain parameterization inwards JMeter?
    Parameterization is procedure of generalizing simply about user input, so equally to exercise it for multiple users or executions.

    27) Which Jmeter elements are used for Parameterization?
    •    User parameter
    •    CSV Data Set config

    28) Explain what a timer inwards JMeter is as well as what are the types of it?
    A JMeter thread past times default volition shipping requests continuously without whatever pause. To become a respite betwixt the request, Timers are used. Some of the Timers used are Constant Timer, Gaussian Random Timer, Synchronizing Timer, as well as Uniform Random Timer as well as so on.
    31)Explain what is the role of Timer inwards JMeter?
    With the assist of timer, JMeter tin strength out delay the fourth dimension betwixt each request, which a thread makes. It tin strength out solve the overload work of the server.

    29) Explain what is Assertion inwards JMeter? What are the types of assertion?
    Assertion helps to verify that your server nether essay returns the expected results.
    Some unremarkably used Assertion inwards JMeter are,
    •    Response Assertion
    •    Duration Assertion
    •    Size Assertion
    •    XML Assertion
    •    HTML Assertion

Sumber http://www.gcreddy.com/
Post a Comment (0)
Previous Post Next Post