It took a whole afternoon today to test the FTP server with JMeter and finally got it fixed before work.
Today's Test experience is recorded as follows:
1 JMeter When testing FTP server, it is simply divided into two functions one is get (DOWNLOAD) and the other is put (UPLOAD).
2 I did not make an error while testing the get file from FTP SERVER to local. The same file, multiple get to a local path is saved to a file name, each FTP sampler is passed by the test, because the local file can be successfully overwritten.
3 when testing the local same file put to the FTP server, using the listener "View the result tree", most of the FTP requests will fail, reporting the following error:
Response Message:org.apache.commons.net.io.CopyStreamException:IOException caught while copying.
My workaround is as follows:
Use the file name in the Remote file box with the Randow function, if uploaded 100 times, this box can be set to: Bu/2015/12/03/${__random (0,100000,)}.zip, that is, the Random function is set to a wide range of fields, Otherwise, you might be able to take the same value.
I was first set to ${__random (0,100,)}.zip, uploaded 100 times. However, viewing the corresponding path on the FTP server, only see more than 60 files, that is, the upload succeeded more than 60.
Finally, it is clear that all uploaded files on the FTP server do not allow duplicate names.
But also left a problem, that is, I use JMeter upload files to the FTP SERVER, image format file size will change, a 548K file uploaded to FTP after 550K, and this picture is not viewable. Don't know what the reason.
Fortunately, using our software to upload and download the front-end, viewing the file is normal, that is the problem of JMeter, later study.
Test FTP server with JMeter