You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Owen <ow...@gmail.com> on 2008/09/22 07:29:19 UTC

Problem with file upload using CSV for filename

Hi,

I have a test written that I am using to generate file upload requests to a
system.  The system has a requirement that each of the files uploaded has a
unique file name for each iteration.
To manage this I have created a set of files with the required naming
convention (file1.doc, file2.doc) and then I am referencing them using a CSV
data set config.

The problem that i have is that the first run will upload the file with no
problem, then with the next iteration jmeter appears to remember the
filename variable and attempt to upload the same file which generates an
error from the app being tested.

I have chucked a debugging controller at the end of the script to see if the
filename variable is updating with each iteration, which it is doing.  Any
help to get past this would be fantastic.

Cheers
Owen

Re: Problem with file upload using CSV for filename

Posted by sebb <se...@gmail.com>.
On 22/09/2008, Owen <ow...@gmail.com> wrote:
> Hi,
>
>  I have a test written that I am using to generate file upload requests to a
>  system.  The system has a requirement that each of the files uploaded has a
>  unique file name for each iteration.
>  To manage this I have created a set of files with the required naming
>  convention (file1.doc, file2.doc) and then I am referencing them using a CSV
>  data set config.
>
>  The problem that i have is that the first run will upload the file with no

Are you using POST with a variable filename?

If so, there was a problem with the first file name that has just been
fixed; you could try using the latest nightly build (from ).

Alternatively, try JMeter 2.3.1 which does not have the problem (but
only allows one file to be uploaded).

Or, upload a dummy file as the first file - variables work OK in the
second and later files.

>  problem, then with the next iteration jmeter appears to remember the
>  filename variable and attempt to upload the same file which generates an
>  error from the app being tested.
>
>  I have chucked a debugging controller at the end of the script to see if the
>  filename variable is updating with each iteration, which it is doing.  Any
>  help to get past this would be fantastic.
>
>  Cheers
>
> Owen
>

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