Categories
Apache

JMeter – How to add random UUID in the POST body data ?

For POST request, I used the following Jmeter function

  • __UUID() – which returns an unique GUID structure
{
    "project": {
        "uuid": "${__UUID()}"
    }
}
Categories
Programming

How fix Jmeter on a Mac ? Could not initialize class org.apache.jmeter.gui.util.FileDialoger

If you are facing the following error

2021-07-14 11:31:46.861 java[1419:13909] JavaNativeFoundation: GetGlobalVM: Failed to locate @rpath/libjvm.dylib for JNI_GetCreatedJavaVMs(). A JVM must be loaded before calling this function.

2021-07-14 11:31:46.979 java[1419:13909] JavaNativeFoundation: GetGlobalVM: Failed to locate @rpath/libjvm.dylib for JNI_GetCreatedJavaVMs(). A JVM must be loaded before calling this function.

Uncaught Exception java.lang.IllegalAccessError: class com.github.weisj.darklaf.ui.filechooser.DarkFilePaneUIBridge$DetailsTableModel (in unnamed module @0x157632c9) cannot access class sun.awt.shell.ShellFolder (in module java.desktop) because module java.desktop does not export sun.awt.shell to unnamed module @0x157632c9 in thread Thread[AWT-EventQueue-0,6,main]. See log file for details.
Uncaught Exception java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.FileDialoger in thread 
Thread[AWT-EventQueue-0,6,main]. See log file for details.

The problem is that the team Dracula is failing

Solution is right below to change it to System

Jmeter => Look and Feel => System

Categories
Apache Technical

How to install Jmeter on a macBook ?

Here is the command line used to install Jmeter on my macbook

brew install jmeter

and here is how to open Jmeter

jemter