Skip to main content

JMeter Interview Questions and Answers

What is JMeter?

Apache JMeter is an open source load testing application which is purely developed in Java. Apache JMeter is mainly used to test the performance and stability of an application.

What are the different type of applications you can test with JMeter?

You can test mainly web applications, it all supports to test PHP, Java, ASP.NET, web services, databases, mail servers, network etc.

What are the protocol JMeter supports?

IT support more than 10 protocols, here are some of the protocols that JMeter supports.
Web Protocol: To test the web applications, it supports both HTTP and HTTPS protocols.
Web Services: To test web services applications, it supports both SOAP and REST.
FTP: File Transfer Protocol, it is used to test the FTP servers and applications.
Database via JDBC: It is used to test the database applications.
LDAP: Lightweight Directory Access Protocol
Message-oriented middleware (MOM) via JMS
Mail – It is used to test mail servers such as SMTP(S), POP3(S) and IMAP(S)
MongoDB (NoSQL): it is recently supported protocol by JMeter.
Native commands or shell scripts
TCP

Why do you choose JMeter as your performance testing tool?

JMeter is an open source tool and is widely used tool in the market and it has the large online community support and is developed in pure Java and you can test more than 10 protocols.

What is the difference between JMeter and Loadrunner?

JMeter
Loadrunner
JMeter is an open source tool.
Loadrunner is one of the costliest tools in the market.
JMeter is primarily focusing on web and Java protocols.
Loadrunner supports more than 50 protocols.
JMeter has good online community support.
Loadrunner has technical support, but they hardly resolve your issue.
JMeter is a standalone application and there is no centralized process.
You can operate Loadrunner from a centralized process such as performance center.

What is a Listener? What are the different type of listeners?

Listener is a graph or an image that shows the results of different samplers. You have more than 50 listeners through standard JMeter and JMeter plugins.

List of listeners are: Aggregate graph, Aggregate report, Assertion Results, Backend Listener, Bean Shell Listener, BSF Listener, Comparison Assertion Visualizer, Distribution Graph (alpha), Generate summary results, Graph Results, JSR223 Listener, Mailer Visualizer, Monitor Results, Response Time Graph, Save responses to a file, Simple data writer, Spline Visualizer, Summary Report, View Results in Table, View Results Tree.

What are timers and what are the different timers available?

Timers is waiting time between requests, these timers are used to simulate real user behavior during each request, this helps to simulate real time production load on the server.
There are different timers available in JMeter: Bean Shell Timer, BSF Timer, Constant Throughput Timer, Constant Timer, Gaussian Random Timer, JSR223 Timer, Poisson Random Timer, Synchronizing Timer, and Uniform Random Timer.

What is assertion and what are the different type of assertions available in JMeter?

Assertions are used to define the check points in different parts of the script, there are different type of assertions available Bean Shell Assertion, BSF Assertion, Compare Assertion, Duration Assertion, HTML Assertion, JSR223 Assertion, MD5Hex Assertion, Response Assertion, Size Assertion, SMIME Assertion, XML Assertion.





Comments

Popular posts from this blog

NeoLoad Interview Questions and Answers

Here are some of the interview questions and answers on NeoLoad:
What is NeoLoad?
NeoLoad is a performance testing tool designed to test different types of web, standalone and mobile applications.
What is the difference between Loadrunner, JMeter and NeoLoad?
Click here for differences
What are the different counters you monitor in NeoLoad?
Average Response Time(requests), average response time(pages), average requests/s, average throughput, current response time(requests), current response time(pages), current requests, current throughput, current users count, controller cpu load, controller memory load etc.
What are the different type of tools you can integrate with NeoLoad?
App Dynamics, CA APM Integration, Dyna trace integration, HP ALM or Quality Center Integration, Java and Jamo Solutions M-eux Test Integration, Jenkins Integration, perfecto mobile integration, selenium integration.
What are the different type of Operating systems you can monitor?
Linux Monitor, Solaris Monitor, AIX …

File operations in loadrunner with examples

In this post I will explain how to capture a value from server response and save to a text file using vugen.
How to capture and save to text file using loadrunner:
First I have recorded the script using bing.com and then i searched for IBM. We will get 10 results. I have captured all the 10 values and saved to a file.
Here is the code for that.

LR Functions with Examples | Loadrunner Functions with Examples

LR Functions in Loadrunner with Examples.

lr_abort Stops the script execution.lr_advance_param It will take the next value in the parameter list.lr_continue_on_error Continue on error even if the request is failed.lr_convert_string_encoding Converts a string to a UTF 8 or Unicode.lr_db_dataset_action Validates database contents by setting checkpoints.lr_db_connect Connects to a database.lr_db_dataset_action Performs an action on a dataset.lr_db_disconnect Disconnects from a database.lr_db_executeSQLStatement Submits an SQL statement to a database.lr_checkpoint Validates the value of a parameter against an expected value (checkpoint).lr_db_getValue Retrieves a value from a dataset.lr_debug_message Sends a debug message to the LoadRunner output or Application Management agent log file.lr_decrypt Decrypts an encoded string.lr_disable_ip_spoofing Disables IP Spoofing.lr_enable_ip_spoofing Enables IP Spoofing.lr_end_sub_transaction Marks the end of a sub-transaction.lr_end_transaction Mark…