All,

I would like to reference Java properties in the main JMeter thread, e.g., in 
the ResultCollector (View Results in Table) to pass the filename as a Java 
property. E.g., I would like to use ${__property(report.dir)}/file.xml in the 
Filename field and pass -Dreport.dir=/tmp/jmeter.

Unfortunately, this doesn't work because 
org.apache.jmeter.testelement.property.FunctionProperty.getStringValue() 
contains the following check:

        if (!isRunningVersion()
            || !ctx.isSamplingStarted())
        {
            log.debug("Not running version, return raw function string");
            return function.getRawParameters();
        }
        else

If I comment out this check, everything works the way I want. I assume that the 
responsible developer had a good reason for this check, I just cannot figure 
out what it was. Any ideas?

Or is there another way to achieve what I want to do?

Regards,

Martin

------------------------------------------ 
A v a l o q - essential for banking 
Avaloq Evolution AG 
Allmendstrasse 140, 8027 Z�rich 
T +41 1 488 6888, F +41 1 488 6868, <http://www.avaloq.com/> 
Martin B�chi <mailto:[EMAIL PROTECTED]> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to