You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by David Luu <ma...@gmail.com> on 2012/09/25 04:36:55 UTC

Can't use relative path reference from test script for file uploads in HTTP sampler?

I've been using various components of JMeter test plan and notice that
writing table listerner results to file (I think, didn't use too much) and
reading CSV dataset config can use relative path references, and it will be
relative to the location of test plan script being run.

But for file uploads in HTTP request sampler (send files with the request
section), relative path (from test plan script) doesn't work (fails to find
the file). Didn't test thoroughly but assume in that case it might be
relative to JMeter's working directory (or JVM's working directory). Is
that a known issue and by design?

I'm using JMeter 2.5.

Re: Can't use relative path reference from test script for file uploads in HTTP sampler?

Posted by sebb <se...@gmail.com>.
On 25 September 2012 03:36, David Luu <ma...@gmail.com> wrote:
> I've been using various components of JMeter test plan and notice that
> writing table listerner results to file (I think, didn't use too much) and
> reading CSV dataset config can use relative path references, and it will be
> relative to the location of test plan script being run.
>
> But for file uploads in HTTP request sampler (send files with the request
> section), relative path (from test plan script) doesn't work (fails to find
> the file). Didn't test thoroughly but assume in that case it might be
> relative to JMeter's working directory (or JVM's working directory). Is
> that a known issue and by design?

File uploads are currently relative to the current working directory.

> I'm using JMeter 2.5.

You should upgrade.

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