This blog post aims to be a collection of sample JSR223, Beanshell and other useful reusable scripts. Use them freely in your JMeter projects to leverage the power of JMeter! Reuse them in JSR223 samplers directly as is, or modify them to fit your needs.
Many other example JSR223 samples can be found in our documentation.
You may have recognized the famous indie game Factorio used as the picture for this article. Factorio is best described as:
Factorio is a game in which you build and maintain factories. You will be mining resources, researching technologies, building infrastructure, automating production and fighting enemies.
Basically the goal of this game is to build a fully automated supply chain to produce a rocket to escape an hostile planet where you crashed. We may find similarities in software development. When you are a small team facing huge challenges, you know your time is precious.
At OctoPerf, we strongly believe the more you automate, the more time you can spend on tasks that really need your attention. We try to automate every single thing we can. From building cloud images to deploying a version, from testing the software to checking the code quality. This is how a compact team can have a huge throughput: delegate part of your work to routines executed by a machine.
Saving time is not the only reason to automate workflows: automation also prevents human errors. Try this yourself: make a paper ball and try to throw it in the recycle bin from 2m distance. I'm pretty sure you won't succeed all the time.
In the next coming sections, i'm going to explain the different problems we have faced and how we try to automate as much as possible.
You have always wanted to use JMeter, on your Mac, but you don't know how to get started. You might have downloaded JMeter so far, so now how do you get that software installed, up and running? Running a Java program on a Mac isn't obvious so we are going to explain how to install and run JMeter within minutes using a few command lines.
The great thing is JMeter is a Java program. Java programs are designed to be portable to Windows, Linux and MacOS.