Categories
Automation Programming

Manipulating Variables in JMeter

There are many reasons for manipulating variables in JMeter, especially when you are loading data from a CSV data set config element. You might want to trim a JMeter variable, or grab just a substring. In all of these cases, your existing knowledge of JavaScript can come to the rescue. Wherever you were about to […]

Categories
Automation

Simulate Real Users with JMeter

If you are setting up a JMeter test to simulate user load on your website or web application, you’ll need to follow these steps to make your tests as realistic as possible. Cache and Cookies Add a “HTTP Cookie Manager” and a “HTTP Cache Manager” to your test. Set them to clear on each iteration. […]

Categories
Automation

Separate Your JMeter Testing and Reporting

One of the common practices I have seen from people using JMeter is that of putting lots of listeners in their performance tests. There are a few good reasons to avoid this practice. JMeter uses up resources to display the listeners You repeat your listeners in many of your tests It makes your test plan […]

Categories
Automation

Really Useful JMeter Plugins PerfMon Metrics

If you are running JMeter tests against software running on a computer or server, the chances are you’ll be manually matching your JMeter results with a graph of CPU or Memory Usage from the server. You can make this process a whole lot easier using the PerMon Metrics Collector, which is a listener that communicates […]

Categories
Automation

JMeter Throughput Shaping Tip

Here is a quick tip about JMeter’s throughput shaping capability, when using the [email protected] Throughput Shaping Timer. If you want to test, for example, 8 messages per second, the Throughput Shaping Timer will adjust the rate to make sure that: You send no more than 8 messages per second on average You send no less […]

Categories
Automation

Switching JMeter Between Integration And Load Testing

We have been re-using our JMeter integration tests as load tests, which has been a great way of discovering various slow-downs in our REST APIs (in particular, we found that a large backup process slowing down our network significantly at 1am each morning). If you are using JMeter in the same way, you may find […]

Categories
Automation

Really Useful JMeter CSV Data Set Config

I wrote an article recently about the parameterized Controller plugin for JMeter. Today I’m going to present an even more flexible way to run different sets of data through the same test. The JMeter CSV Data Set Config node allows you to attach a set of data to a thread group or controller in order […]

Categories
Automation

Really Useful JMeter Plugins Parameterized Controller

There are lots of really useful JMeter Plugins out there but some of them are really, really useful and if you don’t know they exist you might think some things are too difficult or even impossible. Here are just a couple of scenarios you may find yourself in, which are included along with a bunch […]

Categories
Automation

Modularising JMeter Tests

JMeter is an awesome tool for writing load tests, but it isn’t obvious how you would break your tests into re-usable chunks. For example, if you are testing multiple scenarios that all require a login, it is a bit annoying to have a copy of the nodes required to log in and check the sign […]