FTP-request Object

The FTP-request object uploads or downloads a file during test execution using the FTP, FTPS, or SFTP protocol.

Configuration

To configure the FTP-request object, specify the following properties:

Protocol

FTP protocol: Select the protocol type to use for the file transfer:

  • FTP – Standard FTP protocol (port 21 by default)
  • FTPS – FTP over SSL (typically uses port 990)
  • SFTP/SSH – FTP over SSH (typically uses port 22)

Connection Settings

  • Host: The hostname or IP address of the FTP server.
  • Port: The port number used by the server.
    Defaults:
    • FTP: 21
    • FTPS: 990
    • SFTP: 22
  • Enable SSL?: Select Yes to enable SSL encryption (applicable to FTPS).

Authentication

  • Username (optional): The username for FTP authentication.
  • Password (optional): The corresponding password.

Transfer Settings

  • Buffer size: Size of the buffer in bytes. Default is 1024.

Transfer Direction

  • Direction:
    • Upload – Upload a file to the FTP server.
    • Download – Download a file from the FTP server.

File Paths

  • Remote path: An expression that resolves to the remote file path on the FTP server.
  • Local path: An expression that resolves to the local file path on the test machine.

File Handling

  • Save file? (Download only): Enter Yes to save the downloaded file to the specified local path.

Properties:

NameDescription
FTP protocol(Required) The FTP protocol type. FTP (default), FTPS, SFTP/SSH
Host(Required) The FTP server host
Port(Required) The FTP server listening port. The default is 21. 990 is typical for FTPS. 22 is typical for SFTP
Enable SSL?Select Yes if the FTP server uses SSL. Otherwise, select No.
UsernameThe FTP server username.
PasswordThe FTP server password.
Buffer sizeThe size of the file buffer, in bytes. 1024 bytes is the default.
DirectionUpload to upload a file. Download to download a file.
Remote pathAn expression that returns the remote path of the file to upload or download
Local pathAn expression that returns the local path of the file to upload or download
Save file?If yes, save the file to the specified local path.
  • No labels