Just tried a quick test, and TestPlan variables don't seem to be
picked up either ...

S.

On Mon, 20 Sep 2004 09:53:51 -0400, Michael Stover <[EMAIL PROTECTED]> wrote:
> Static variables, of the sort defined in the TestPlan element will be
> picked up, and so a file name could be set there.  The reason for
> notifying the test listeners at that point in time probably has to do
> with A) waiting until the TestPlan variables are available and B)
> notifying before elements are informed that all changes from now on are
> temporary (ie Running Versions of elements can change during a sampling,
> but must remember their original state and know how to return themselves
> to it after each sample occurs).
> 
> -Mike
> 
> 
> 
> On Mon, 2004-09-20 at 06:46, sebb wrote:
> > Managed to track down why variables and functions in the listener
> > filename field are not processed:
> > it turns out that the file is opened in the testStarted() method, and
> > closed in the testEnded() (Finished()?) method. However, the context
> > samplingStarted variable is only set true between these points, and
> > thus the Functions/Variables are returned in their Raw state.
> >
> > A comment in JMeterEngine.java says
> >         /**
> >          * Notification of test listeners needs to happen after
> > function replacement, but before
> >          * setting RunningVersion to true.
> >          */
> > - does anyone (Mike?) know why this is?
> >
> > I suppose the listeners could open the file once the first sample was
> > provided, and save the file handle for the close, but I wonder if this
> > is the best solution?
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> --
> Michael Stover <[EMAIL PROTECTED]>
> Apache Software Foundation
> 
> ---------------------------------------------------------------------
> 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