Hi, Steps: 1/ Add scala libraries and jar that contains scala JSR223 engine to jmeter/lib and restart jmeter 2/ Add a JSR223 Sampler 3/ In this sampler, select as language scala , if it does not appear check step 1 4/ Add you scala code in the script part, knowing that jmeter would have exposed the variables that are shown, see http://jmeter.apache.org/usermanual/component_reference.html#BSF_Sampler for code example regarding those variables
Regards @ubikloadpack On Tue, Dec 23, 2014 at 10:17 AM, Lorenzo Fundaró <[email protected]> wrote: > Ok, > > I will have to investigate a bit about the current state of Scala > implementation of JSR223 interface. AFAIK it's already implemented since > Scala 2.11. I will give it a try, although it's still not very clear how I > would do this with Jmeter, I think I am missing some core concepts here > with JSR233. > I will really appreciate it If you can give me some lights of where I > should focus my research. > > Thank you. > > > Lorenzo Fundaró García > > On Mon, Dec 22, 2014 at 5:25 PM, UBIK LOAD PACK Support < > [email protected]> wrote: >> >> Hello, >> This is already possible through JSR223 Family. >> But last time we tried it, as JSR223 Engine didn't seem to support >> Compilation (as Groovy does) performance were just awful making it >> unusable. >> >> Maybe this has changed , tests are welcome. >> I compilation is still not supported, maybe you could open a feature >> request on the scala project. >> >> >> Regards >> @ubikloadpack >> >> On Mon, Dec 22, 2014 at 5:20 PM, Lorenzo Fundaró < >> [email protected]> >> wrote: >> >> > Hello guys, >> > >> > I would like to know if we have a plan to introduce a >> > sampler/{pre,post}-processor using Scala Language. >> > Would this make sense ? If so, I would be really interested on >> implementing >> > it. >> > >> > Cheers ! >> > >> > Lorenzo Fundaró García >> > >> > -- Regards Ubik Load Pack <http://ubikloadpack.com> Team Follow us on Twitter <http://twitter.com/ubikloadpack> Cordialement L'équipe Ubik Load Pack <http://ubikloadpack.com> Suivez-nous sur Twitter <http://twitter.com/ubikloadpack>
