jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Shetty <shet...@gmail.com>
Subject Re: [JMeter] BeanShell Sampler using a script file
Date Mon, 20 Jul 2009 16:37:59 GMT
hi
I dont think you can do what you want directly
The returned value is used when you call the BeanShell function using ${*
__BeanShell*(...)}
If you want a value stored into the variable use vars.put("name",value)  in
your function instead of using the return value.
regards
deepak
.


On Mon, Jul 20, 2009 at 9:18 AM, annie35 <nie_h@yahoo.fr> wrote:

>
> Hi,
>
> 1- I create an external beanShell which taken a string in param and return
> a
> string :
>
> getChannelList(String sChannelName){
> return sChannelName;}
>
> 2- I create a BeanShell Sampler with in parameters field: ${myParam} and in
> the script file field : scripts/getChannelList.bsh
>
> my BSH is recognied, because I don't have any error, but how can I do to
> get
> the return string value ?
>
> thanks to help me
> annie35
> --
> View this message in context:
> http://www.nabble.com/-JMeter--BeanShell-Sampler-using-a-script-file-tp24572864p24572864.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message