jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "S.D." <sidd.da...@gmail.com>
Subject Re: BSF Scripts and User Defined Variables
Date Thu, 16 Jul 2009 19:01:18 GMT
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: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message