Module Controller

Module Controller in Apache JMeter is crucial and frequently used in planning the load test of any software. In this article, we will take a look at how we can make our JMeter scripts with Module Controller. Why exactly do we need this controller? The general idea in load testing is that tests consist of a small functionality (i.e. Sign In, Create Account, Log Out…). This functionality can be stored as "modules" in the Controller (i.e. Simple Controller, Loop Controller, if Controller ...). The Module Controller will choose which module should be run. Module Controller allows you to redirect test [...]

By |2020-11-03T12:33:16+03:00September 29th, 2020|Tags: , , , |

How to Add a Variable Number of Parameters in Apache JMeter

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 [...]

In-depth Analysis: Throughput Controller in JMeter and Splitting Threads to Requests

What is throughput? Throughput, essentially, is the number of requests executed per unit of time. It is one of the basic concepts of performance testing. Since the main subject here is "performance", a term that features a measurement of "per unit of time" makes it an important one. In performance tests, there will be a lot of requests going on in a short period of time in order to apply necessary stress to the desired servers. However, not every server in a system has an equal priority or necessity to apply stress. One of the servers might be called [...]

Local Network Simulation On JMeter

Network Speeds Simulation in JMeter For almost three years, mobile had overtaken desktop traffic. It seems that this trend will continue to rise. But does it change in our lives? That means that our users are on the move. They are not sitting in their comfortable chairs and take benefit of great DSL network speeds. In most cases, mobile device users access the internet via their cellular operator network. The speed, reliability varies depending on the location of the user. You’ll realize that it’s always changing. That means speed varies mostly during the day. So we need to make sure [...]

By |2021-05-07T20:07:48+03:00February 14th, 2019|Tags: , , |

How to Use RegEx Extractor in Gatling Projects?

Regular expressions are very powerful with string manipulation. It’s fast and flexible but a little bit hard to learn. To be able to extract a data in performance test projects, the regular expression is a good fit. Gatling supports Regular Expression usage for data extraction. Let’s see how we can integrate this approach into our Gatling projects. How to Extract RegEx in Gatling Script? For this example, we are going to use an XML web service hosted on www.dneonline.com There is a calculator web service where you can do addition, multiplication, division and multiplication operations. Execute POST Command First, we [...]

By |2021-05-07T20:09:43+03:00January 29th, 2019|Tags: , , |

JMeter Distributed Testing Step-by-step

This short tutorial explains how to use multiple systems to perform stress testing. Before we start, there are a couple of things to check. The firewalls on the systems are turned off. All the clients are on the same subnet. The server is in the same subnet, if 192.x.x.x or 10.x.x.x ip addresses are used. If the server doesn't use 192 or 10 ip address, there shouldn't be any problems. Make sure JMeter can access the server. Make sure you use the same version of JMeter on all the systems. Mixing versions may not work correctly. Once you've made [...]

By |2021-09-30T14:10:09+03:00January 24th, 2019|Tags: , , , |

JSON Path Usage for Gatling Tests

As Loadium gives support to Gatling tool, we thought it would be great to give some tips about Gatling’s data extraction strategies. The purpose of Gatling test is not different than Apache JMeter test, and that is performing a load test on your application. For a realistic performance test, you need to use dynamic data. To overcome this challenge, you need to extract data from a JSON, XML or HTML file. Let’s take a look at jsonpath expression usage with some examples. How to Extract Data with JSONPATH We are going to use JSON Placeholder web services for JSON [...]

By |2021-09-30T12:51:29+03:00January 23rd, 2019|Tags: , , , , |

Record and Play Load Testing in 5 Steps

While Apache JMeter allows you to create a load test from scratch, it also gives you the opportunity to Record and Playback load test scenarios for your web or mobile applications. Recording performance test scenarios are very useful when it comes to web or mobile testing. Websites and mobile applications make many requests varying from initial server to 3rd party application like analytics sites etc. Therefore implementing those requests from scratch may not be the best idea. In those cases, we recommend you to use the Recording module of JMeter. JMeter has a special module for that purpose. It’s called [...]

By |2020-11-17T16:08:05+03:00January 4th, 2019|Tags: , , , |

5 Steps to Create a Realistic Load Test!

Functional testing and non-functional testing of an application are slightly different from each other. In terms of ISTQB, functional testing has structured tests scenarios. But when it comes to non-functional ones, we have performance testing and usability testing where the user’s perspective comes into play. Then we have uncertainty as stated below: QA Engineer walks into a bar. Orders a beer. Orders 0 beers. Orders 999999999 beers. Orders a lizard. Orders -1 beer. Orders a sfdeljknesv. But the First customer comes in and asks where the toilet is? The bar bursts into flames and the customer kills everyone. We all [...]

By |2020-11-04T17:02:08+03:00December 20th, 2018|Tags: , |

JMeter Timers

Why Do I Need a Timer in JMeter? User behavior in load tests depends on many factors. Those factors can be “ramp-up time”, “user count on the system in a specific time interval”, etc. and most of them rely on timing. The time between user actions defines the realism of the scenario. That’s why JMeter offers various Timer for you to use in your performance test projects. By default, JMeter executes all samplers one after another. There is no delay between sampler’s execution. This makes our tests non-realistic because no user goes into a page and clicks to a [...]

By |2021-09-30T12:50:21+03:00December 19th, 2018|Tags: , , , |
Go to Top