On 21/05/2008, Laurent Perez <[EMAIL PROTECTED]> wrote:
> Hi
>
>  I'm using the new "sample_variables" property in jmeter.properties (trunk)
>  in order to write additional columns to my summary report listener csv
>  output file ; it works as expected, except that the variable name gets
>  surrounded by double quotes in the csv column (very, very minor "bug" ;>).
>

That's deliberate - it allows the loader to distinguish user variables
from normal columns.

>  My usecase : I'm using a custom Java Request Sampler inside my plan, it's
>  returning results, and I would like to add part of these results as new csv
>  columns, using the above new functionality.
>
>  However, it doesn't look like the JavaSamplerContext object provided to the
>  sampler has methods to write or update variables (?) : what's the best way

                JMeterContext jmctx = JMeterContextService.getContext();
                JMeterVariables vars = jmctx.getVariables();

>  for my sampler to write or update them? I started writing a beanshell post
>  processor, because it can update variables (thru the "vars" put/get
>  methods), unfortunately I don't know how to access my sampler results thru
>  this post processor... is there a variable holding the "last sampler
>  results" ?

"prev", as per the manual

>
>  Thanks !
>  laurent
>
>
>
>  --
>  <a href="http://in-pocket.blogspot.com";>http://in-pocket.blogspot.com -
>  Mobile world, technology and more</a>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to