Skip to content

loadmagic/jmeter-visual-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JMeter Visual Extractor

Visual JSON path builder and regex boundary selector for JMeter. Click a JSON field to generate a JSONPath extractor, or highlight response text to build a regex extractor — one click to insert.

The Problem

Building extractors in JMeter is tedious. You look at a response, figure out the JSONPath or regex manually, copy it, create the extractor element, paste the expression, set the variable name, configure defaults. Repeat for every dynamic value.

The Solution

This plugin adds two new renderers to JMeter's View Results Tree. Select a sample result, pick the renderer from the dropdown, and build extractors visually.

LoadMagic JSON Extractor

  1. Select "LoadMagic JSON Extractor" from the renderer dropdown
  2. Click any field in the JSON tree — the JSONPath is generated automatically
  3. Enter a variable name
  4. Click "Add JSON Extractor" — a JSONPostProcessor is inserted under the sampler

LoadMagic JSON Extractor

LoadMagic Regex Extractor

  1. Select "LoadMagic Regex Extractor" from the renderer dropdown
  2. Double-click a value in the response text — left and right boundaries are auto-placed
  3. Drag the green (left) and blue (right) handles to adjust
  4. Click "1. Confirm" — the regex pattern is generated
  5. Click "2. Insert" — a RegexExtractor is inserted under the sampler

LoadMagic Regex Extractor

Installation

  1. Download jmeter-visual-extractor-1.0.0.jar from Releases
  2. Copy to <jmeter>/lib/ext/
  3. Restart JMeter

The new renderers appear automatically in the View Results Tree dropdown — no configuration needed.

How It Works

The plugin registers two ResultRenderer implementations via Java's ServiceLoader mechanism. JMeter discovers them at startup and adds them to the renderer dropdown in View Results Tree.

When you click "Add JSON Extractor" or "Insert Regex Extractor", the plugin uses standard JMeter APIs (GuiPackage, JMeterTreeModel) to create the extractor element and insert it under the correct sampler in the test plan tree. The extractor is immediately visible and editable.

Supported Extractors

Renderer Creates Key Features
LoadMagic JSON Extractor JSONPostProcessor Interactive tree, auto-generated JSONPath, click to select
LoadMagic Regex Extractor RegexExtractor Visual boundary handles, double-click auto-placement, drag to adjust

Requirements

  • JMeter 5.6+ (uses ServiceLoader discovery)
  • Jackson (bundled with JMeter) for JSON parsing

Building from Source

mvn clean package

The JAR is at target/jmeter-visual-extractor-1.0.0.jar.

License

Apache License 2.0 — same as JMeter.

Author

LoadMagic — AI-powered performance testing.

About

Visual JSON path builder and regex boundary selector for JMeter — click to extract

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages