Test FTP server with JMeter

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.