GithubHelp home page GithubHelp logo

yeshan333 / jmeter-jtl-parser Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 20 KB

parse jmeter jtl to xml, csv, json format. also can merge jtl files.

License: MIT License

Makefile 1.52% Go 95.70% Shell 2.77%
apache-jmeter jmeter-report jmeter-jtl-files

jmeter-jtl-parser's Introduction

Jmeter JTL Parser

Go Report Card | Go Tests

Stream decode JMeter JTL (xml-format) files and output them as XML, CSV, JSON, HTTP JSON.

Parse JMeter xml-format JTL files to "anything", supporting:

  • Nested samples
  • JMeter custom variables
  • Responses
  • Assertions
  • Cookies
  • More...

The parser is a stream decoder, meaning it's safe to use for very large jtl files.

Usage

❯ ./bin/jtl-parser-linux -h
Usage: jtl-parser-linux [--output OUTPUT] [--mergedfiles MERGEDFILES] [--reportcenterapihost REPORTCENTERAPIHOST] FILENAME

Positional arguments:
  FILENAME

Options:
  --output OUTPUT, -o OUTPUT
                         specify the output type, valid options: csv,xml,json,http [default: http]
  --mergedfiles MERGEDFILES, -f MERGEDFILES
                         merge jtl files
  --reportcenterapihost REPORTCENTERAPIHOST, -h REPORTCENTERAPIHOST
                         transfer jtl data to JSON, and post it to report center. [default: http://localhost:8080/jmeter]
  --help, -h             display this help and exit

Examples

git clone [email protected]:yeshan333/jmeter-jtl-parser.git
cd jmeter-jtl-parser
# compile bin file
make
# transfer to csv
./bin/jtl-parser-linux --output csv tests/github-etcd.jtl
# transfer to json
./bin/jtl-parser-linux --output json tests/github-etcd.jtl
# mmerge mutiple xml-format jtl files (3 files)
./bin/jtl-parser-linux --output csv tests/github-etcd.jtl --mergedfiles tests/github-etcd.jtl tests/github-
etcd.jtl

Output Formats

  • XML

  • JSON

  • CSV

  • HTTP JSON: for custom test report center show test data

Parse Validating

Output/Input XML is not in canonical format, in order to diff them, use the included compare.sh script:

$ ./compare.sh tests/github-etcd.jtl

Acknowledgements

jmeter-jtl-parser's People

Contributors

yeshan333 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.