Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grafana/jmeter-to-k6
Converts JMeter .jmx files to k6 JS code
https://github.com/grafana/jmeter-to-k6
converts-jmeter jmeter jmx-files k6 k6-converter load-testing maintainer-wanted performance-testing
Last synced: about 1 month ago
JSON representation
Converts JMeter .jmx files to k6 JS code
- Host: GitHub
- URL: https://github.com/grafana/jmeter-to-k6
- Owner: grafana
- License: apache-2.0
- Archived: true
- Created: 2018-11-01T10:02:32.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-07T12:39:26.000Z (over 2 years ago)
- Last Synced: 2024-04-13T06:54:45.135Z (7 months ago)
- Topics: converts-jmeter, jmeter, jmx-files, k6, k6-converter, load-testing, maintainer-wanted, performance-testing
- Language: JavaScript
- Homepage:
- Size: 743 KB
- Stars: 65
- Watchers: 123
- Forks: 21
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-k6 - jmeter-to-k6 - Tool for converting JMeter test cases to k6 test scripts. (Tools)
README
## ⚠️ This project is no longer maintained.
> Development and maintenance of the JMeter-to-k6 converter have been stopped in this repository.
If you are a JMeter user starting with k6, check out how [k6 compares to JMeter](https://k6.io/blog/k6-vs-jmeter/) and learn how to use k6 on the [documentation](https://k6.io/docs/).
-------------------------------------------------------------
**Install**:
Globally, and preferably using [nvm](https://github.com/creationix/nvm) (at least on Unix/Linux systems to avoid filesystem permission issues when using sudo):
```shell
npm install -g jmeter-to-k6
```Locally, into `./node_modules`:
```shell
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:
```shell
docker pull loadimpact/jmeter-to-k6
```**Convert**:
Convert [JMeter](https://jmeter.apache.org/) JMX to [k6](https://k6.io/) JS.
```shell
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](https://www.npmjs.com/package/npx) (avoiding the installation of the tool on your system):
```shell
npx jmeter-to-k6 example/full.jmx -o full
```Using the Docker image, you execute the tool as follows:
```shell
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:
```shell
k6 run /path/to/jmeter-files/MyTestOutput/test.js
```**Run test in k6**:
```shell
k6 run full/test.js
```