testinganswers.com

Category: JMeter Tutorial

Apache JMeter is an Apache project that can be used as a load testing tool for analyzing and measuring the performance of a variety of services, with a focus on web applications

JMeter Tutorial – FTP Test Plan

In this chapter, we will see how to test a FTP site using JMeter. Let us create a Test Plan to test the FTP site.  Rename Test PlanStart the JMeter window by clicking on /home/deepak/apache-JMeter-2.9/bin/JMeter.sh. Click on the Test Plan node. Rename this Test Plan node as TestFTPSite. Add Thread Group Add one Thread Group, which is a placeholder for all other elements like Samplers, Controllers, Listeners. Right-click on TestFTPSite(our Test Plan) > Add > Threads(Users) > Thread Group. Thread Group will get added under the Test Plan (TestFTPSite) node. Next, let us modify the default properties of the Thread Read More

JMeter Tutorial – Database Test Plan

In this chapter, we will see how to create a simple test plan to test the database server. For our test purpose, we have used the MYSQL database server. You can use any other database for testing. For installation and table creation in MYSQL. Once MYSQL is installed, follow the steps below to set up the database: Create a database with the name “tutorial”. Create a table tutorials_tbl. Insert records into tutorials_tbl : mysql> use TUTORIALS; Database changed mysql> INSERT INTO tutorials_tbl ->(tutorial_title, tutorial_author, submission_date) ->VALUES ->(“Learn PHP”, “John Poul”, NOW()); Query OK, 1 row affected (0.01 sec) mysql> INSERT Read More

JMeter Tutorial – Web Test Plan

Let’s build a simple test plan which tests a web page. We will write a test plan in Apache JMeter so that we can test the performance of one web page say a page is shown by the URL:https://www.testinganswers.com/. Start JMeter Open the JMeter window by clicking on /home/deepak/apache-jmeter-2.9/bin/jmeter.sh. The JMeter window will appear as below:  This is a JMeter window having nothing added yet. Details of the above window are: Test Plan node is where the real test plan is kept. Workbench node is where the temporary stuff is kept. Rename Test Plan Change the name of the test Read More

JMeter Tutorial – Test Plan Elements

A JMeter Test Plan comprises of test elements which are discussed below. A Test Plan would comprise at least one Thread Group. Within each Thread Group, we may place a combination of one or more other elements: Sampler, Logic Controller, Configuration Element, Listener, and Timer. Each Sampler can be preceded by one or more Pre-processor elements, followed by a Post-processor element, and/or Assertion element. Let’s see each of these elements in detail: ThreadGroup Thread Group elements are the beginning points of your test plan. As the name suggests, the thread group elements control the number of threads JMeter will use during Read More

JMeter Tutorial – Build Test Plan

What is a Test Plan? A Test Plan defines and provides a layout of how and what to test. For example the web application as well as the client-server application. It can be viewed as a container for running tests. A complete test plan will consist of one or more elements such as thread groups, logic controllers, sample-generating controllers, listeners, timers, assertions, and configuration elements. A test plan must have at least one thread group. We shall discuss these elements in detail in the next chapter Test Plan Elements.  Follow the below steps to write a test plan:  Start the JMeter Read More

JMeter Tutorial – Overview

What is JMeter? JMeter is software allowing to load test or performance-oriented business (functional) test on different protocols or technologies. Stefano Mazzocchi of the Apache Software Foundation was the original developer of JMeter. He wrote it primarily to test the performance of Apache JServ (Now called as Apache Tomcat project). Apache later redesigned JMeter to enhance the GUI and to add functional testing capabilities. This is a Java desktop application with a graphical interface using the Swing graphical API, can therefore run on any environment/workstation accepting a Java virtual machine, for example, Windows, Linux, Mac, etc. The protocols supported by Read More

JMeter Interview Questions

Q.1: What is JMeter?  A: JMeter is one of the Java tools which is used to perform load testing client/server applications. Apache JMeter is open source software, a 100% pure Java desktop application designed to load test functional behavior and measure performance of the application. It was originally designed for testing Web Applications but has since expanded to other test functions. Q.2: What is Performance Testing?  A: This test sets the ‘best possible’ performance expectation under a given configuration of infrastructure. It also highlights early in the testing process if changes need to be made before the application goes into Read More