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.
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
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.
Why Move to Loadium, High-Performing Load Testing Tool
Have everything your team needs about load testing to take your product beyond the high performance
Feature-rich and easy-to-use load testing platform
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.
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.
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!
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.