Need a new search?

If you didn't find what you were looking for, try a new search!

22 07, 2020

How to Add a Variable Number of Parameters in Apache JMeter

By |2021-09-30T14:11:50+03:00July 22nd, 2020|Tags: , , , , , |

Some requests have more than one parameter, and the number of parameters may change. You can also add dynamic parameters according to your scenario. To resolve this issue, we need to use JSR223 PreProcessor provided by JMeter. First, we add an HTTP request as shown below, then we delete all the parameters and add JSR223 PreProcessor. In this example, we choose the groovy language. Then we add a for loop to determine how many parameters we will add, and add the parameter insert code to use it inside the for a loop. When we run the test, we add [...]

22 05, 2018

Using Commandline Parameters in JMeter

By |2021-01-22T13:41:45+03:00May 22nd, 2018|Tags: , , , |

It is a common practice to create performance test scripts by using JMeter GUI. For test execution, however, it would be best to use command line mode of JMeter. So whenever you need to change a parameter like thread number, base url, etc.. you need to go to GUI mode, do some modifications and run your test. We can't call that a good practice. JMeter lets you pass parameters in command line mode. How to Pass Argument via Command Line Basic command line parameter is jmeter -n -t your_script.jmx -n - tells JMeter to run in non-GUI mode -t - specifies [...]

12 01, 2022

JMeter How to Solve NoHttpResponseException

By |2022-01-12T10:56:11+03:00January 12th, 2022|Tags: , , , , |

During load testing, it is very normal that you get some errors for your requests. But sometimes these errors don't occur because of server problems. One of the most common exceptions in JMeter is NoHttpResponseException. To solve this issue, you can try the following alternative solutions. Change the Implementation of Your HTTP Requests On JMeter, choose a specific HTTP request sampler. On Advanced tab, you will see a section called “Implementation”. Change this option to “HttpClient4”. Then rerun your load test. Change Your “user.properties” File Adding some values to your user.properties file [...]

4 01, 2022

What Does Stress Testing Your Website Reveal?

By |2022-01-04T14:58:01+03:00January 4th, 2022|Tags: , , |

Any software business that expects a significant volume of visitors due to a planned or unforeseen situation should be tested. Non-functional testing is used to assess the software's speed, stability, and scalability and evaluate how the website/application performs when under high load. A stress test is executed to establish the website's breaking point by simulating many visitors, which is the "load," and progressively raising it. When a website reaches a breaking point, it either crashes or suffers a considerable performance loss. In contrast to load testing, which tests the website for a particular load, stress testing raises the load to determine how the website behaves under [...]

17 12, 2021

JMeter Log4j Vulnerability

By |2021-12-17T10:29:38+03:00December 17th, 2021|Tags: , , |

Important Log4j vulnerability in open source Apache logging library Log4j, sent all IT experts scrambling over the last few days. Known as Log4Shell, the flaw is exposing some of the world's most popular applications and services to attack. It has been stated that hackers have been exploiting this bug since the beginning of this December 2021. Since Apache JMeter version 3.2, logging is configured through an Apache Log4j 2 configuration file. Experts from Apache team said that JMeter was also affected by this vulnerability. So if you have a JMeter project that uses a version higher than 3.2, there [...]

16 12, 2021

Real Time Monitoring with JMeter InfluxDB Integration

By |2021-12-16T09:57:02+03:00December 16th, 2021|Tags: , , |

There are lots of reasons why JMeter is one of the most popular performance testing tools in the market. And one of the biggest reasons is its reporting ability. Even though JMeter provides proper test results for your performance testing sessions, there are some problems as well. When you run your test in NON-GUI mode, you will need to wait until the test is complete to see the results. During long running sessions, seeing results immediately could be really crucial. Also, by applying some integrations -that will be shown below- you will have some sort of APM tool on [...]

15 12, 2021

The Top 10 Mistakes in Performance Testing

By |2021-12-15T10:09:29+03:00December 15th, 2021|

Today's apps are rapidly evolving, and consumers expect lightning-fast performance. Most  users will exit an app if it does not load within a few seconds, regardless of how attractive its design is. The only method to avoid being a part of this club is to do essential performance testing, which is often one of the last steps in the application development cycle but should be completed as quick as possible. Taking this into account , this post outlines the top ten frequent performance testing mistakes that contribute to poor performance testing quality, as well as how these issues may be resolved appropriately [...]

9 11, 2021

How To Send JMeter POST Requests

By |2021-11-09T15:11:41+03:00November 9th, 2021|Tags: , , |

In many cases, even an ordinary load test contains lots of different requests for different services. If you need to perform a load test for an end-to-end scenario, you’ll probably be dealing with lots of POST requests as well. Luckily, JMeter has the flexibility to create your JMeter POST requests easily. But to send JMeter POST requests to a specific service, you need to know how to use that service. Because there will be some parameters/body data to be filled, header to manipulate etc. If you haven’t written that service or don’t have any information about that, you should [...]

4 11, 2021

JMeter Listener Types | Part 2

By |2021-11-04T16:52:14+03:00November 4th, 2021|Tags: , , , |

JMeter Listeners that Consolidate Data Samples As we explained before, basic listeners have just basic displays. They collect and display data in basic formats. But now is time to explore JMeter listener that take a more complex approach to display the data. And we will be calling them as “Listeners that Consolidate Data Samples”. Aggregate Report Aggregate Report shows aggregated and statistical results and data for each sampler of your test. You are able to see metrics like “average response time, throughput, error percentage” and even more. And from the lower part of this listener, you [...]

26 10, 2021

How To Use “-1”/All On JMeter Selector

By |2021-10-26T14:16:06+03:00October 26th, 2021|

While scripting E-Commerce sites, situations, where cart service is not called after cart delete service, can be faced. It forces us to make only one request to cart and delete every item on cart one by one, without calling the cart request again. Let's check how to use “-1”/all on JMeter selector. Since the cart request is called only once, we have to get IDs of every item in the cart in only one selector. In this blog, you will see step by step how to overcome such situations.  You can also apply this solution to JSON and REGEX Extractors.  I want to find the right testing type [...]

Go to Top