It defines what to test and how to go about it. jMeter - Build Test Plan What is a Test Plan?Ī Test Plan can be viewed as a container for running tests. This is the main page and the default page of the tool. Now click on the following − OSĪfter a short pause, the JMeter GUI should appear, which is a Swing application, as seen in the following screenshot − In this case, it is /home/manisha/apache-jmeter-2.9/bin. Step 4: Run JMeterĪfter downloading JMeter, go to the bin directory. apache-jmeter-2.9) if you want, but do not change any of the sub-directory names. You can rename the parent directory (i.e. The directory structure should look like as shown below − For this tutorial, we downloaded apache-jmeter-2.9 and copied it into C:\>JMeter folder. Step 3: Download JMeterĭownload the latest version of JMeter from. Verify Java Installation using java -version command as explained above. OSĪppend the string C:\Program Files\Java\jdk1.7.0_25\bin to the end of the system variable, Path. Set the environment variable JAVA_HOME to C:\Program Files\Java\jdk1.7.0_25Īppend Java compiler location to System Path. Set the JAVA_HOME environment variable to point to the base directory location, where Java is installed on your machine. If you do not have Java installed, install the Java Software Development Kit (SDK) from We are assuming Java 1.7.0_25 as the installed version for this tutorial. Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode) Java(TM) SE Runtime Environment (build 1.7.0_25-b15) If you have Java installed in your system, you would get an appropriate output based on the OS you are working on. Open your console and execute one of the following java commands based on the operating system you are working on. System Requirement JDKįirst of all, verify whether you have Java installed in your system. JMeter is a framework for Java, so the very first requirement is to have JDK installed in your machine. Take a look at the following figure that depicts how JMeter works − jMeter - Environment JMeter simulates a group of users sending requests to a target server, and returns statistics that show the performance/functionality of the target server/application via tables, graphs, etc. It can also be used to perform automated and functional testing of the applications.
Its full multi-threading framework allows concurrent sampling by many threads and simultaneous sampling of different functions by separate thread groups. This means you can generate a test plan using a text editor. JMeter store its test plans in XML format. It has full Swing and lightweight component support (precompiled JAR uses packages javax.swing.* ). On Windows, it can be invoked by starting the jmeter.bat file. On Linux/Unix, JMeter can be invoked by clicking on JMeter shell script. JMeter can conduct load and performance test for many different server types − Web - HTTP, HTTPS, SOAP, Database via JDBC, LDAP, JMS, Mail - POP3, etc. Web − HTTP, HTTPS sites 'web 1.0' web 2.0 (ajax, flex and flex-ws-amf)įollowing are some of the features of JMeter −īeing an open source software, it is freely available. It can therefore run on any environment / workstation that accepts a Java virtual machine, for example − Windows, Linux, Mac, etc. JMeter is a Java desktop application with a graphical interface that uses the Swing graphical API. Apache later redesigned JMeter to enhance the GUI and to add functional testing capabilities. He wrote it primarily to test the performance of Apache JServ (now called as Apache Tomcat project). Stefano Mazzocchi of the Apache Software Foundation was the original developer of JMeter. JMeter is a software that can perform load test, performance-oriented business (functional) test, regression test, etc., on different protocols or technologies. Stress Test − This test is an attempt to break the system by overwhelming its resources. Load Test − This test is basically used for testing the system under the top load it was designed to operate under. It also highlights early in the testing process if any changes need to be made before the application goes into production. Performance Test − This test sets the best possible performance expectation under a given configuration of infrastructure. Before going into the details of JMeter, let us first understand a few jargons associated with the testing of any application.