Hi
I believe the .bsh file should be in the bin directory . check your
jmeter.log for errors
This is the Structure I have and it seems to work
Thread Group
   Http Request
     HTTPHeaderManager
        val1 ${GUID}
   User Defined Variables
        GUID ${__BeanShell(source("function.bsh"))}

What version of JMeter are you using?
regards
deepak

On Thu, Jul 16, 2009 at 12:01 PM, S.D. <[email protected]> wrote:

> I apologize .. but I must be missing something very basic here.  As you
> can see I'm just trying to see it work:
>
> This is my function.bsh.  It is in the same directory as the jmeter jmx:
> return "this is a test";
>
> This is the GUID user defined variable:
> name=GUID value=${__BeanShell(source("function.bsh"))}
>
> This is in the JMETER_ID in the Http Headers:
> name=JMETER_ID value=${GUID}
>
> All I ever see in the response is this:
> JMETER_ID: ${__BeanShell(source("function.bsh"))}
>
> Thanks again for any insight.
>
> On Thu, 2009-07-16 at 11:27 -0700, Deepak Shetty wrote:
> > Also note that (from docs)
> >
> > ${__BeanShell(source("function.bsh"))} - processes the script in
> > function.bsh
> > is what you'd probably use to run a script...
> > regards
> > deepak
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to