jsr233

I have JSR233 listener which seems to be ignored in JMeter non-gui mode

依然范特西╮ 提交于 2020-04-30 08:20:32
问题 I have JSR233 listener under HTTP Request, it stores all the response time values, creates array and then sort the array to find 90% line and then marks the last transaction/Request Pass or Fail if the final 90% Line threshold is reached. Everything works perfect in GUI but I am running this test in Gitlab CI using Docker Image and it looks like this JSR233 script get ignored 8 out of 10 times but 2 times it works fine there as well. Really confused It behaves weird in windows console JMeter

How to get from JRuby a correctly typed ruby implementation of a Java interface?

℡╲_俬逩灬. 提交于 2020-01-30 12:29:10
问题 I'm trying to use JRuby (through the JSR233 interface included in JRuby 1.5) from a Java application to load a ruby implementation of a Java interface. My sample implementation looks like this: Interface: package some.package; import java.util.List; public interface ScriptDemoIf { int fibonacci(int d); List<String> filterLength(List<String> source, int maxlen); } Ruby Implementation: require 'java' include Java class ScriptDemo java_implements some.package.ScriptDemoIf java_signature 'int

Apache Velocity 2.0 Scripting Compilable not working

醉酒当歌 提交于 2019-12-13 00:06:44
问题 I'm trying to check velocity scripting engine 2.0 which Provide JSR 223 implementation and support of Compilable the Compilable interface has been implemented in the process. I use jars: velocity-engine-scripting-2.0.jar, velocity-1.7.jar, commons-collections-3.2.2.jar from previous answer I use the following code //class org.apache.velocity.script.VelocityScriptEngine final ScriptEngine engine = engineFactory.getScriptEngine(); if (engine instanceof Compilable) { try { ((Compilable) engine)

How to get from JRuby a correctly typed ruby implementation of a Java interface?

◇◆丶佛笑我妖孽 提交于 2019-12-02 13:38:10
I'm trying to use JRuby (through the JSR233 interface included in JRuby 1.5) from a Java application to load a ruby implementation of a Java interface. My sample implementation looks like this: Interface: package some.package; import java.util.List; public interface ScriptDemoIf { int fibonacci(int d); List<String> filterLength(List<String> source, int maxlen); } Ruby Implementation: require 'java' include Java class ScriptDemo java_implements some.package.ScriptDemoIf java_signature 'int fibonacci(int d)' def fibonacci(d) d < 2 ? d : fibonacci(d-1) + fibonacci(d-2) end java_signature 'List