You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Woonsan Ko <wo...@yahoo.com> on 2012/08/22 23:13:32 UTC

AccessLogSampler doesn't take variable for logFile

Hi,

I've tried to use variables for AccessLogSampler. It works with domain or portString as 'stringProp' elements.
However, it doesn't work for 'logFile' property. I have to set a physical path instead.
I found HttpSamplerBase, the ancestor class of AccessLogSampler, uses #setProperty() instead, unlike AccessLogSampler stores the member directly.
I guess #setProperty() provides the indirection to resolve the variables.
Am I in the right track? Then I think we can improve AccessLogSampler in the same way.

Thanks in advance,

Woonsan


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: AccessLogSampler doesn't take variable for logFile

Posted by sebb <se...@gmail.com>.
On 22 August 2012 22:13, Woonsan Ko <wo...@yahoo.com> wrote:
> Hi,
>
> I've tried to use variables for AccessLogSampler. It works with domain or portString as 'stringProp' elements.
> However, it doesn't work for 'logFile' property.

Works for me.

> I have to set a physical path instead.
> I found HttpSamplerBase, the ancestor class of AccessLogSampler, uses #setProperty() instead, unlike AccessLogSampler stores the member directly.
> I guess #setProperty() provides the indirection to resolve the variables.
> Am I in the right track? Then I think we can improve AccessLogSampler in the same way.
>
> Thanks in advance,
>
> Woonsan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org