jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Write responses to file in custom format using Java listener?
Date Thu, 02 Aug 2012 22:25:35 GMT
On 2 August 2012 21:21, Tai Tran <hutieuxao@gmail.com> wrote:
> I'm not feeling secure writing scripting language (no type safe, no
> checking whatsoever).

The test elements allow quick and relatively simple implementations to
be created.

> Can I write a traditional java class with main()
> which is the entry point where JMeter passes in the response data for me to
> process in the way I like? In other words, I don't know how JMeter gives
> the input to my Java listener class?

The data is passed in via the SampleListener interface.

Best to study the source to see how existing Listeners work.

> On Fri, Aug 3, 2012 at 2:08 AM, sebb <sebbaz@gmail.com> wrote:
>
>> On 2 August 2012 19:30, Tai Tran <hutieuxao@gmail.com> wrote:
>> > Can I write a listener in pure Java language to process responses from
>> > JMeter to write into file(s) in my own format?
>>
>> Yes.
>>
>> > I see JMeter supports JSR223
>> > Listener with various languages options (including java), but there is
>> > detailed no doc on that.
>>
>> The variables that are made available to the script are shown on the
>> GUI screen and are documented under the BSF Listener.
>>
>> > Please help, thanks in advance.
>> >
>> > Thanks,
>> > Tai
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> For additional commands, e-mail: user-help@jmeter.apache.org
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Mime
View raw message