New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extras/format converters #5963
base: master
Are you sure you want to change the base?
Extras/format converters #5963
Conversation
Thanks for the contribution. If the converter is in Java/Kotlin, then it could use regular APIs to build the tree, and we won't need to support tree generation in several places. WDYT? |
If you have JavaScript/browser based solution, you can promptly test it and see the results immediately. JavaScript probably can be easier for contribution to add more converters, as it's claimed to be most coded language, if I can believe in stats: https://www.statista.com/statistics/793628/worldwide-developer-survey-most-used-languages/ That was also was my case - I know Java and JavaScript, Kotlin not yet. Though testing with JavaScript was much faster in contrast to recompiling and testing with Java. Also I didn't need to know whole context of integration. Conversion is "easy" task and don't need benefits of Java to make work done. Although I can get the point. I've also though about integration with core JMeter (and Java usage for this), but that was more time consuming (which I didn't have at this point). It always can be a starter, so another people can take a look into and convert to core JMeter with Java or Kotlin if they have time for this and better experience. This is up to your decision guys. |
Let us see what the others would say, however, have you thought of writing tests for your converters? |
Hi Vladimir and pmirek |
Testing of the code sounds reasonable. What would be expected/preferred way? |
We do not have much JavaScript code yet, and we do not have build and testing for JS. So it would be great if you could recommend something (jest?). By the way, have you considered TypeScript? PS. We have a HTML+JS-based report in https://github.com/apache/jmeter/tree/master/bin/report-template Currently it does not use bundler, howewer, it might be a good idea to combine them (js report, js converter) |
Let me check on possibilities, I probably won't go for re-typing to .ts due to lack of time, but I'll add something for testing of .js (command line based) |
I'm not sure we need to co-locate everything under the same directory when storing the files in Git though. |
I was looking around for some ways to test it, but so far the best I can think of is to use nodejs for command line based testing producing output and doing basic validation, but this is different environment that the one currently used for compiling and packaging JMeter. If you are OK with this way I can make a try. If you have came across anything else, please let me know. |
Description
This is browser/JavaScript based set of converters to .jmx format.
Supported ones are: har, postaman collections, soapui projects.
Added to already available extras directory.
Motivation and Context
This speeds up scenario creation, when application is not available for recording requests with jmeter. It also makes possible to get as input formats available form developers (har recorded with browser) or functional testers (postman or soapui). Speeds up, as you have templates, instead of starting from the scratch.
How Has This Been Tested?
Examples are provided for testing, it was tested with them and other ones not included here.
Screenshots (if appropriate):
Provided within extras/converters directory together with md and html README.
Types of changes
Checklist: