/xk6-mllp

Simple MLLP sender for K6

Primary LanguageGoMIT LicenseMIT

xk6-mllp

Simple MLLP sender for K6

Build

To build a k6 binary with this extension, first ensure you have the prerequisites:

$ go get -u github.com/k6io/xk6/cmd/xk6
$ xk6 build --with github.com/j-petit/xk6-mllp 
$ ./k6 run --vus 60 --duration 1m test.js   

Docker

docker run -i gjergjsheldija/xk6-mllp:latest --vus 60 --duration 1m run - < test.js

Example

import mllp from 'k6/x/mllp';

const client = new mllp.Client({
    host: '127.0.0.1',
    port: '5000'
});

export default function () {
    client.send('./sample.hl7');
}