Posts

JMeter integration with InfluxDB and Grafana

Image
JMeter GUI is a huge resource-intensive mode which is meant for test recording, developing and debugging. Executing and monitoring the test/results with GUI becomes very challenging and non-realistic method on massive load.  When planning to run load tests with massive load, the standard way to use JMeter is in Non-GUI mode (Command Line Interface). By initiating the Run in cmd, users can save resources and ensure their test results are of reliable.  there is another drawback with JMeter when running JMeter in non-GUI Mode, real-time monitoring of results is not possible as the user have to wait for the test to finish. Therefore, this article will help you to enable real time monitoring the results of JMeter during the execution done in Non-GUI mode. By using this method we can obtain: Live results Clear graphs for metrics Ability to compare two or more load tests Stores the monitoring data as long as JMeter results in the same backend JMeter integration with Influxdb and ...

How to add arguments to HTTP Sampler in dynamically in JMeter

Image
Sometimes you need to send the arguments with HTTP Request that will be changing dynamically for each iteration/user (argument names and count). Lets take an example, where user have to select all the "in stock" products and these items may change randomly for each user or iteration. During recording,  we got 6 in stock items so JMeter captured 6 products ids as shown in the below image. if we try to replay the script, it may vary. In this case we have to dynamically construct/add the request parameters based on the "in stock" count. We can use JMeter scripting capabilities to achieve this (using any of the BeanShell Preprocessors). Steps: 1. Capture all the product ids which has "in stock" status using correlation (in order to capture all the occurrences, we will use Match No as "-1") 2. Based on the product ids count we can construct request arguments using BeanShell Preprocessor or JSR223 Preprocessor 3. Add BeanShell Pr...

How To Simulate Different Network Speeds In JMeter

By default JMeter can send the requests as fast as it can. But it's not a realistic scenario, real users don't choke the server/application with non-stop download. In real time, users may access the application with different network speeds - meaning connection speed will vary for each user. So it's always good to test your application under different network bandwidths for better performance. If you are testing a mobile application, it is recommended to test the app with different network speeds as the mobile users access the app with cellular network. This article can help you to simulate and control virtual users bandwidth in JMeter. Simulating Different Network Speeds Using JMeter JMeter does give you the option to limit outgoing bandwidth in order to simulate different network speeds. The bandwidth can be controlled through these two properties in jmeter.properties file: httpclient.socket.http.cps=0 httpclient.socket.https.cps=0 Formula To Calculate CPS ...

Key Areas To Be Focused While Doing Performance Testing for Mobile Apps

Image
When it comes to addressing the non-functional testing of mobile websites and apps, these are the key areas to be focused: App Level (APIs/Servers) Device Level Network Level Below image depicts, tools and metrics details: Happy Learning !!!

Read Data From A CSV File In Random Order - Apache JMeter

Image
The default CSV Data Set Config element could only read records in sequential order. But the "Random CSV Data Set" plugin can help you to read the data in random order from a CSV file. This post helps you to install and use this plugin. How to Install Random CSV Data Set Plugin Using Plugin Manager Open Plugin Manager on JMeter Search for "Random CSV Data Set" under "Available Plugins" tab Select "Random CSV Data Set" checkbox Click "Apply Changes and Restart JMeter" button How to Install Random CSV Data Set Plugin Manually Navigate to https://jmeter-plugins.org/ page Search for "Random CSV Data Set" in Search field Click on version number to download the plugin (It's recommended to use the latest version) Once download is completed, extract the ZIP file and copy the jar files to the specified location Restart the JMeter to effect the changes How to Use Ran...