# HAR to JMX Lite — HAR to JMeter 5.6 & Redacted API Docs

> Zero-dependency Python CLI to turn browser HAR captures into redacted Markdown API docs and JMeter 5.6 .jmx test plans with noise filtering and leak validation.

HAR to JMX Lite — HAR to JMeter 5.6 & Redacted API Docs is a free AI agent skill on Agensi by SunQi, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [SunQi](https://www.agensi.io/creators/sunqi)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Version: 1.0
- Last updated: 2026-11-25
- Security: scan passed (2026-11-25); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/har-to-jmx-lite-har-to-jmeter-5-6-redacted-api-docs
- Tags: testing, api, devops, python, jmeter, api-documentation, performance-testing, har

## About this skill

Browser .har exports are noisy and risky to share raw: they mix static .js/.css/image traffic with real API calls and embed live Authorization or Cookie credentials.

HAR to JMX Lite gives your coding agent a zero-dependency Python 3.9+ CLI (scripts/har_to_jmx_lite.py) to convert .har captures into clean test assets:
- Smart Noise Filtering (`scan`): Drops static assets, OPTIONS preflight requests, and non-HTTP traffic; normalizes numeric IDs and UUIDs into /{id} and /{uuid}.
- Credential-Redacted API Docs (`doc`): Generates EN/ZH Markdown documentation with Authorization, Cookie, and API-key headers automatically redacted.
- JMeter 5.6 Ready & 417-Safe (`jmx`): Generates parameterized .jmx plans (${PROTOCOL}, ${BASE_HOST}, ${BASE_PORT}, ${AUTH_TOKEN}) and avoids the reverse-proxy 417 Expectation Failed pitfall.
- Fail-Closed Static Validator (`validate`): Verifies XML structure and blocks leaked Bearer/JWT tokens.

Open Source (MIT License, Free) — Full source code, demo HAR fixture, unit tests, and CI available in repository sunqi-2025/har-to-jmx-lite on GitHub.

## Requires

- Python

## Known limitations

Requires Python 3.9+. Does not automate dynamic token correlation (e.g., extracting a login token for subsequent requests). Not for use on production hosts.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the HAR to JMX Lite — HAR to JMeter 5.6 & Redacted API Docs skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What specific problem does Har to Jmx Lite solve for developers?

This skill automates the tedious process of turning browser network captures into structured API documentation and functional JMeter test plans, while ensuring sensitive credentials like cookies and tokens are automatically redacted.

### Which versions of JMeter and Markdown are supported?

The skill generates XML files fully compatible with JMeter 5.6 and higher, and standard Markdown documentation that can be read by any common viewer or repository host.

### Can I filter out third-party trackers and static images from the final output?

Yes, the skill includes built-in noise filtering that automatically excludes static assets (images, CSS, JS) and third-party trackers, allowing you to focus purely on your backend API logic.

### Does this skill handle dynamic session token parameterization for load tests?

While the tool automatically redacts headers like 'Authorization' and 'Cookie', it does not currently handle dynamic session token extraction; you will need to manually parameterize those variables within JMeter.

### What are the system requirements for running this skill?

The skill is designed for environments running Python 3.9 or higher and operates entirely using the standard library, meaning no third-party 'pip' installations are required.

### What is included in the purchase of Har to Jmx Lite?

You receive the full Python-based conversion engine, the CLI interface for managing scans and generation, and documentation on how to integrate it into your existing testing workflow.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
