Guideline to build JMeter plugin

99 views
Skip to first unread message

JOSE LUIS SASTOQUE REY

unread,
Jan 11, 2021, 10:57:28 AM1/11/21
to jmeter-plugins

Hi.

I wondering if there is some guideline that you recommend to follow to build JMeter plugin. I have checked the Developer Guide but I guess it is to add plugin on JMeter plugins project.

I have used the below POST to create custom configure and sampler elements for JMeter and works, any way I just want to know other way to do it.


Any advice will be great.

Thank you.

Dmitri Tikhanski

unread,
Jan 11, 2021, 11:55:14 AM1/11/21
to jmeter-plugins
  1. There is an official guide right at JMeter project web site: How to write a plugin for JMeter, I'm not sure if there are any better material
  2. There are some examples which you may find useful as well
  3. Community JMeter Plugins are open-source, Dummy Sampler is the easiest to start with - https://github.com/undera/jmeter-plugins/tree/master/plugins/dummy
  4. If you don't need the GUI:
    • JUnit Request sampler allows execution of JUnit test cases in multithreaded manner
    • Java Request sampler allows execution of arbitrary Java code and JMeter will measure the elapsed time and other metrics if you implement them
    • JSR223 Test Elements allow execution of arbitrary Groovy code (other languages are supported as well but not very recommended for using), this way you don't need to compile your code, it will be evaluated "on the fly" in the runtime
Reply all
Reply to author
Forward
0 new messages