JMeter Demo Using MCP

by vjgit-369

312 downloads
Not rated
GitHub

About

JMeter Demo Using MCP is a project that demonstrates how to combine JMeter with the Model Context Protocol (MCP) for automated performance testing. It is designed for testers and developers who want to run JMeter tests programmatically through an MCP-compatible client.

Details

Author
vjgit-369
Downloads
312
Categories
Other, Automation

- GUI and Non-GUI test execution
- Configurable thread count and test duration
- Automated HTML report generation
- Real-time test monitoring

Set the JMETER_HOME environment variable to your JMeter installation path, install the Python dependencies (mcp, pydantic), and then run python test_mcp.py. Test parameters such as thread count, ramp-up period, and duration can be modified directly in test_mcp.py.

# JMeter Demo Using MCP This project demonstrates how to use JMeter with Model Context Protocol (MCP) for automated performance testing. ## Prerequisites - Python 3.x - Apache JMeter - MCP-compatible client (e.g., Cursor) ## Project Structure ``` JmeterDemoUsingMCP/ ├── jmeter/ # JMeter installation directory ├── jmeter-mcp-server/ # MCP server for JMeter integration │ ├── test_mcp.py # Test execution script │ └── jmeter_server.py # JMeter MCP server implementation └── AutomationExercise_Test.jmx # Sample JMeter test plan ``` ## Setup 1. Install JMeter and set up the environment: ```bash # Set JMETER_HOME environment variable JMETER_HOME=/path/to/apache-jmeter ``` 2. Install Python dependencies: ```bash pip install mcp pydantic ``` ## Usage 1. Run tests in GUI mode: ```python python test_mcp.py ``` 2. Run tests with increased users: ```python # Modify test_mcp.py parameters: '-Jthreads=10' # Number of users '-Jrampup=20' # Ramp-up period '-Jduration=60' # Test duration ``` ## Features - GUI and Non-GUI test execution - Configurable thread count and test duration - Automated HTML report generation - Real-time test monitoring ## Test Results Results are saved in: - JTL files: `results*.jtl` - HTML reports: `report*/index.html` ## Contributing Feel free to submit issues and enhancement requests!
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.