The ftp-filesize command sets the size of the file used in the FTP test.
The undo ftp-filesize command restores the default setting.
By default, the size of the file used in the FTP test is 1000 KB.
| Parameter | Description | Value |
|---|---|---|
size |
Specifies the size of the file used in the FTP test. |
The value is an integer that ranges from 1 KB to 10000 KB. |
Prerequisites
Before using the ftp-filesize command, run the test-type command to specify the type of the test instance as ftp.
Configuration Impact
For FTP upload tests, the uploaded files may have the following conditions according to different file names (configured by using the ftp-filename command) and file sizes (configured by using the ftp-filesize command):
The file size is configured but the file name is not specified.
On the NQA client, construct a file named NQA-ftp-client.txt, with a size specified by ftp-filesize, and upload the file to the server.
If the specified file is a local file, upload the local file to the FTP server. If the size of the local file is larger than the value of ftp-filesize, only part of the data in the local file is uploaded, and the size of the uploaded file is specified by the ftp-filesize. If the size of the local file is smaller than the value of ftp-filesize, the local file is directly uploaded.
For FTP download tests, if the size of a to-be-downloaded file is not specified, the entire file is downloaded by default. If the value of ftp-filesize is larger than the actual size of a file on the FTP server, the entire file is downloaded. If the value of ftp-filesize is smaller than the actual size of a file on the FTP server, only a part of the file is downloaded.
Precautions
You cannot change the configured size of the file when the test is configured.