On 16/05/06, Gaël LHEZ <[EMAIL PROTECTED]> wrote:


-----Message d'origine-----
De : sebb [mailto:[EMAIL PROTECTED]
Envoyé : lundi 15 mai 2006 21:19
À : JMeter Users List
Objet : Re: Setting up some data before running the test (TestListener?)

On 15/05/06, Gaël LHEZ <[EMAIL PROTECTED]> wrote:
>> Hello
>>
>> Still working on jmeter, I'm making a plugin which add up some new
>> functions, so that I can inject parameter in URL (such as foo.php?x=145).
>> Those parameters come from a database, and that's here my problem lies :
>>
>> I'd like to set up an object that would listen for test start and test
>> end (equivalent of setUp() and tearDown() in Junit). After reading the
>> source of jMeter, I found the interface TestListener, and tried to
>> implements it, but it does nothing.

>It does work.

Hum, but how it is loaded into jMeter? My TestListener is not called while
it should propose a confirm dialog, log something (using LoggingManager),
and even print into the stdout output stream ('syso') ?

You have to add it a jar file in lib/ext, start JMeter and then add
the Gui to the test plan.

>> What I'm looking for, is something that would warn me once that the
>> test started (and not one time per thread, etc).

>The TestListener has the appropriate methods: testStarted() and
testStarted(host)

>I suggest you look at some existing code that implements TestListener, e.g.
Summariser.

It has a gui component, so I understand it is added as listener, but if I do
such gui component, how can I ensure that my data is set up before that any
thread group runs ? (I suppose it should be before any thread group in gui
tree? Right?)

The testStarted() methods are called as the thread starts.

> Thanks,
> LHEZ Gael


---------------------------------------------------------------------
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