RE: Custom Configuration Plugin

2014-07-02 Thread Ryabtsev Vladimir
e to use properties, you will be able to access properties from fields of various samplers using function: ${__property(my_prop)}. - VR -Original Message- From: Sam Drew [mailto:sam.d...@forgerock.com] Sent: Tuesday, July 01, 2014 7:18 PM To: JMeter Users List Subject: Re: C

Re: Custom Configuration Plugin

2014-07-01 Thread Mark Miller
Sam, I'm going to echo what's already been suggested with a little more explanation. The way I'd suggest for you to think about your problem is this: What interfaces can I access to sample (read) Server Instance properties? (Do they come from a file [ssh / OS Process Sampler] can I fetch them via

Re: Custom Configuration Plugin

2014-07-01 Thread Sam Drew
Thanks, It looks like that should be possible. I didn’t realise that BeanShell was able to run arbitrary Java classes. How would I go about putting the Map properties into bsh.shared so that other test elements can make use of them? Would iterating through the key set and doing vars.put(key,

Re: Custom Configuration Plugin

2014-07-01 Thread sebb
On 1 July 2014 08:22, Sam Drew wrote: > I’m trying to write a custom JMeter module, that will run a Java method that > I use for Server Setup and returns Map as configuration > properties that can be used in sampling. How are you going to use the Map? Why are the exsisting facilities for provi

RE: Custom Configuration Plugin

2014-07-01 Thread Ryabtsev Vladimir
You plan to use this configuration step just once during the test run, right? Why don't you use BeanShell Sampler in SetUp Thread Group with bsh.shared or something similar? - VR -Original Message- From: Sam Drew [mailto:sam.d...@forgerock.com] Sent: Tuesday, July 01, 2014 11:22 AM