Hi, we (Zenika, http://www.zenika.com) would like to contribute a JSR-223 (ScriptEngine) PreProcessor, PostProcessor and Listener. Of course this means running on JDK 6, so that's probably a problem for the patch build integration, and so on. I'm opening this enhancement request so that the code doesn't get lost. Tell me if you think we could rework this. Thanks!
Created attachment 24353 [details] Proposed diff
Apache BSF3 is an implementation of JSR-223 which runs on Java 1.4, so the restriction of Java 1.6 is not a problem. From a brief look, the proposed new code does not itself require Java 1.6. Thanks for the contribution - I hope to find time to add it to JMeter soon.
Added to SVN. URL: http://svn.apache.org/viewvc?rev=829133&view=rev Log: Bug47952 - Initial JSR223 test element implementation I had to make a few changes, e.g. if the script implementation is not found, it does not default to Groovy: URL: http://svn.apache.org/viewvc?rev=829144&view=rev Log: Unused imports Tidy error handling URL: http://svn.apache.org/viewvc?rev=829145&view=rev Log: Unused imports Wrong items being passed to script parameters URL: http://svn.apache.org/viewvc?rev=829146&view=rev Log: Unused imports Ensure file is always closed Use correct eval() method Don't default to Groovy engine Don't continue if implementation is not found
Hello, Before next release, don't forget to add BSF jar to 3.x in JMeter. Now (6/27/2010), don't works with jdk1.5
(In reply to comment #4) > Hello, > Before next release, don't forget to add BSF jar to 3.x in JMeter. > Now (6/27/2010), don't works with jdk1.5 Good point. Either need to include the jar or document that it is needed for Java 1.5. Decided to include the jar.
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2297