Top 10 Advices For JMeter Beginners | Loadium

Top 10 Advices For JMeter Beginners

JMeter is one of the most used open-source load testing tools, and as all Loadium Blog visitors will realize that it is also a popular…

Top 10 Advices For JMeter Beginners

JMeter is one of the most used open-source load testing tools, and as all Loadium Blog visitors will realize that it is also a popular topic to talk about and examine with all aspects for us. In this blog we will share 10 advices, tips & tricks for JMeter beginners.

1. Certificate

Did you know that you can extend your JMeter Certificate validation time?

Sometimes you are working with more than one test devices and browsers to take record with JMeter. When validation time of your JMeter Certificate ends, you really need to put an effort to move old certificate from all devices and browsers and upload the new one again. Here is a trick to extend your JMeter Certificate validation time to avoid this situation.

2. Start Next Thread Loop

If your script includes a login step or if requests are chained each other with selector, when you get an error from a service, the requests following this service will also fail. To prevent this and decrease your error percentage, you can select your action to be taken after an error on Thread Group configurations, Start Next Thread Loop. By that, after an unexpected response, an empty variable will not be passed to your next request.

3. Faster with Groovy

In solo runs, JavaScript will be faster on JSR223 Processors. However, during stress tests, when the Processor is used by more threads, Groovy will act faster. Our advice is to use Groovy in JSR223 Processors in the scripts which you are planning to use for load test.

4. Cookies

On infinite iteration scenarios, you may want to set unique cookies for each running of a scenario to prevent misloading. Let’s say you are adding some items to cart without login. For every thread to start the scenario with an empty card, you can simply use HTTP Cookie Manager, and select the checkbox to clear cookies each iteration.

5. Recorder Installation

To record service traffic of a mobile app, you can use JMeter Recorder with both physical and emulated mobile devices. Here are the steps you need to watch.

I. Transfer and run your certificate

II. Set your Wifi Proxy

6. Recording

You can use JMeter’s recorder for recording service traffic of an app both on Web and Mobile.

7. Simple Controller

You can use Simple Controller for better documentation. You can divide services into pages inside a Simple Controller to make your script more understandable and easier to fix.

8. Web

You can record service traffic of a network through your web browser by importing your JMeter certificate. For Firefox, you can find the importing section at the bottom page of Security section.

9. CSV

You can use a CSV file as a data source for your script. For a login scenario, you can use different usernames and password through a CSV file. You can find the details of working with CSV files, in this link.

10. User Defined Variables

At the beginning of scripting, if there are variables which you may need to change in the future, you can define them in User Defined Variables. For example, if you are doing your scripting in test environment but you are planning to run your test at production environment, you can just change your host from User Defined Variables and you are good to go!

Conclusion

That’s all. As JMeter beginners, now it is easier for you to use JMeter with all these tips and tricks. We hope you enjoyed reading this blog and will enjoy while running tests on Loadium. You can discover here, which features Loadium has, and start here using this easy-to-use load testing tool.

Happy load testing with Loadium!

Latest articles

All Articles →

Postman Alternatives for Api Testing

Postman Alternatives for Api Testing

How To Use Json Extractor in Jmeter

How To Use Json Extractor in Jmeter

What Is Multi Location Load Testing

What Is Multi Location Load Testing