开发者社区> 镜像站> NPM> jmeter-to-k6
jmeter-to-k6
Convert JMeter JMX files to k6 JavaScript
Last updated a year ago by robingustafsson .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install jmeter-to-k6 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.15                                ...           dev (2 years ago)
  • 1.0.0                                ...           latest (6 months ago)

11 Versions

  • 1.0.0                                ...           6 months ago
  • 0.1.19                                ...           7 months ago
  • 0.1.18                                ...           a year ago
  • 0.1.17                                ...           2 years ago
  • 0.1.16                                ...           2 years ago
  • 0.1.15                                ...           2 years ago
  • 0.1.4                                ...           2 years ago
  • 0.1.3                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 2
Dependencies (17)
Dev Dependencies (9)
Dependents (0)
None