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 Apache 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 [...]
Need a new search?
If you didn't find what you were looking for, try a new search!
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 [...]
In this article we will learn how to integrate Jmeter with Dynatrace. First of all, let’s talk about what Dynatrace is, briefly. Then, we will take a look at the Dynatrace Integration with JMeter. What is Dynatrace? Dynatrace is an APM solution that monitors Web, Mobile and Cloud-Based applications, infrastructure, network and critical processes, and also provides performance management of all technology layers used, from the selection of users on the website to the application code running on the main system, with real user monitoring. Why Should We Use Dynatrace? While load testing tools provides [...]
The CSRF Token is something you might encounter on most e-commerce sites. For this reason, we receive a lot of questions about exceeding this token within a JMeter script. CSRF token usually changes multiple times in an end-to-end flow. The token you get in first visit is going to be different from the token you need to use after you login. So here is how to extract it using multiple post processors. Here is my request flow: We are getting our first CSRF Token from our login page html with CSS selector. It is [...]
Interpreting Test Results on Loadium Previously, we learnt how to install JMeter, how to create a scenario, and how to execute our tests on Loadium. In this part, we will briefly explain how to understand Loadium reporting screens and parameters. Let’s start to interpretation of test results with summary report page. On the summary report page, in addition to the values we saw on the previous page, we can see the values max and min response times, number of errors received, latency and connect time. Connect Time → Time taken to establish TCP connection between the server [...]
Stability Test Stability test is a type of software testing to check the quality and behavior of the software under different environmental parameters. It is defined as the ability of the product to continue to function over time without failure. It is a non-functional testing technique that focuses to stress the software component to the maximum. Stability testing is done to check the efficiency of a developed product beyond normal operational capacity which is known as the breakpoint. It has higher significance in error handling, software reliability, robustness, and scalability of a product under heavy load rather than [...]
If you are starting your career as a Performance Test Engineer, you will be dealing with lots of login flows during your working hours. Since it is really important for the sake of your load test, the login page should be tested thoroughly. Here are some tips for you to create and execute a proper test to test login page using JMeter. 1. Practice Login Flow Manually Before recording the requests for login flow, you should perform a couple of manual tests for login components. Make sure that the login button, user credential sections and other basic [...]
As a professional software testing services firm, we supply JMeter scripts to our clients so that they may use Loadium to run performance tests fast and easily. Even if you are not a Loadium customer, you can benefit this checklist to advance JMeter scripts in 9 Steps. We recognize that the scripts we provide are frequently utilized by teams that do not have formal JMeter training but still want to be able to modify them and understand what they do. We've been working on creating scripts that are simple enough for anyone who isn't a JMeter expert and can [...]
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 [...]
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 [...]