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]

Reply via email to