We're using JRuby extensively in our functional tests - but we run
everything as a single thread functional test, so I can't comment on your
question about thread safety.

We've gotten good results with Gems such as Gibberish for handling password
encryption in testplans and JSON for outputing structured JSON content from
samplers. We've also found great utility in storing Ruby objects in JMeter
variables (putObject, getObject).

I would expect that, if you are working within the bounds of normal JMeter
variables, that you get the thread safety inherent in JMeter's design.

I'm also curious about any input others may have around your questions. I'd
be down to experimentation, myself.

Mark


On Wed, May 7, 2014 at 4:20 PM, Sergio Boso <[email protected]>wrote:

> Hi everybody.
>
> I find JavaScript a little bit clumsy, so I did some test with Jruby.
>
> It is very straightforward to use, and relatively fast, after the first
> execution.
> However, I had some trouble when running the same routine at the same time
> multiple threads.
>
> So may question is:
> - is thee any real world experience in using Jmeter +Jruby?
> - Is Jruby really thread-safe? can I use a variable "myvar" in multiple
> instances?
> - What is the behaviour of $myvar (which is a global static variable in
> standard Ruby)?
>
> Thank you in advance
>
>
>
> --
>
> Ing. Sergio Boso
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


--

Reply via email to