On 8 December 2011 17:34, aidy lewis <[email protected]> wrote:
> Hi,
>
> I am trying to extract data from response headers and saving it to a file.
> Is the Beanshell interpreter the best way of doing this?

Depends on how you want to use the extracted data.

You can use other elements such as Regex Extractor and XPath Extractor
to create variables.

Variables can then be saved in the JMeter output files:

http://jmeter.apache.org/usermanual/listeners.html#sample_variables

You could use a Java sampler that references the variable(s) with
attached Listener to create a file containing just those samples.
By suitable choice of listener config options you may find that is sufficient.
e.g. put the variable in the label and only save the label.

> And can I use it in non-GUI mode?

Yes; only GUI Listener code (i.e. the code that generates the listener
displays from the sample data) is not executed in non-GUI mode.


> Aidy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to