Skip to content
Converts JMeter .jmx files to k6 JS code
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Add CircleCI config Dec 21, 2018
bin
doc Translate thread group sample error responses Jan 27, 2019
example example: Correct CSV file path Apr 2, 2019
src Optimize compatibility layer Apr 2, 2019
test
.ava.json
.dockerignore
.editorconfig Add full example Jan 9, 2019
.gitattributes Add gitattributes Dec 10, 2018
.gitignore Consolidate bundling Apr 2, 2019
.jsdoc.json
.npmignore
CHANGELOG.md
Dockerfile
LICENSE Initial commit Nov 1, 2018
README.md Add Dockerfile and Docker install instructions Apr 1, 2019
ava.config.js Add test infrastructure Dec 10, 2018
package.json

README.md

jmeter-to-k6 CircleCI branch

Convert JMeter JMX to k6 JS.

Usage

Install:

npm npm dockerhub

Globally, and preferably using nvm (at least on Unix/Linux systems to avoid filesystem permission issues when using sudo):

npm install -g jmeter-to-k6

Locally, into ./node_modules:

npm install jmeter-to-k6

Note that this will require you to run the converter with node node_modules/jmeter-to-k6/bin/jmeter-to-k6.js ....

Alternatively, you can install the tool from DockerHub:

docker pull loadimpact/jmeter-to-k6

Convert:

jmeter-to-k6 example/full.jmx -o full

This will create a directory ./full/ with a file called test.js and a sub-directory called libs.

One-off execution using npx (avoiding the installation of the tool on your system):

npx jmeter-to-k6 example/full.jmx -o full

Using the Docker image, you execute the tool as follows:

docker run -it -v "/path/to/jmeter-files/:/output/" loadimpact/jmeter-to-k6 /output/MyTest.jmx -o /output/MyTestOutput/

and then execute the k6 test using:

k6 run /path/to/jmeter-files/MyTestOutput/test.js

Run test in k6:

k6 run full/test.js

Other similar tools

You can’t perform that action at this time.