Jmeter + Jruby-JSR223 options. Request + jmeter properties not assigned for more than 4 threads
I have set up a JMeter Ant task that gives a JMeter request with 3 properties already assigned for a JMeter Test Plan (JMX),
I read these properties in a Jruby script (JSR223 sampler) as shown below (for the first 4 streams, it gets all 3 property values ββcorrectly and assigns them to local variables (pvalue1mpvalue2) ..
pvalue1=$props.get("prop1")
pvalue2=$props.get("prop2")
pvalue3=$props.get("prop3")
But the problem is that from thread # 5, it starts throwing below exception
[jmeter] Jruby Exception is undefined method 'get' for nil:NilClass
[jmeter] Jruby backtrace is ["<script>:157:in '(root)'"]
I have a java_import like this in my jruby ...
java_import 'java.util.Properties'
+4
source to share
No one has answered this question yet
Check out similar questions: