the Gui is responsible for modifying the sampler. there's two methods
in the Gui class that are suppose to setup the sampler.

configure(TestElement)
modifyTestElement(TestElement)

take a look at how AccessLogSampler implements it. Say I have 4 http
requests in a single thread group. what jmeter does is it creates a
the threads for the thread group and calls modifyTestElement to set
the values for the sampler.

once the request is done, it goes to the next Http Request defined in
the thread group. In the case of test plans that use functions and
external files, the sampler will be responsible for getting the
necessary data for the next request.  take a look at
AccessLogSampler.sampleWithParser().  Does that help?

peter



On Mon, 27 Dec 2004 10:05:14 -0600, Anil Philip
<[EMAIL PROTECTED]> wrote:
> Question:
> How can the CorbaConfigGui obtain the reference of the CorbaSampler
> instance? Is there some way for the Sampler (the 'publisher' or the other
> way round) to obtain a list of its subscribers and so it can iterate through
> the list doing instanceOf() on each of them until it finds the
> CorbaConfigGui?
> 
> Background: I am writing a CorbaSampler and CorbaConfigGui based upon the
> TCPSampler and TCPConfigGui.
> 
> Apparently there does not seem to be direct linkages between components. A
> component cannot store the reference of another ie. it has no direct
> knowledge of another. Since it is a plugin, everything is by implementing
> interfaces or abstract classes.
> 
> So when the input data file is chosen at the CorbaConfigGui, there does not
> seem to be any facility for callbacks or notifications for the CorbaSampler
> to then load the data and return the names of methods. When these names are
> loaded in the combo box, and one is picked, the input data parameters for
> that method is returned. Then the Sampler is stored until it is time to run
> the test.
> 
> -
> Thanks,
> Anil Philip
> 
> ---------------------------------------------------------------------
> 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