FTP client for Robot Framework
HTML Python
Latest commit 395d433 Jan 14, 2017 @kowalpy committed on GitHub Merge pull request #1 from johncylee/master
Python3 compatibility
Permalink
Failed to load latest commit information.
FtpLibrary.html Version 1.3 Jan 3, 2017
FtpLibrary.py Python3 compatibility Jan 13, 2017
LICENSE_gpl-3.0.txt Version 1.3 Jan 3, 2017
README.md Version 1.3 Jan 3, 2017
ftpLibraryExample.txt Version 1.3 Jan 3, 2017
setup.py Version 1.3 Jan 3, 2017

README.md

Robot Framework FTP Library

This library provides functionality of FTP client. FTP communication provided by ftplib.

Starting from 3rd of Janury 2017, project is hosted at Github.

License

LGPL 3.0

Keyword documentation

FtpLibrary.html

Version history

Version 1.3 released on 30th of January 2016.

What's new in release 1.3:

  • multiple connections in parallel
  • strongly refactored source code
  • enabling/disabling printout of messages returned by ftp server

Despite new features, 1.3 should be compatible with previous versions.

Installation

  • run command: pip install robotframework-ftplibrary

OR

  • download, unzip and run command: python setup.py install

OR

  • download, unzip and copy FtpLibrary.py file to a directory pointed by PYTHONPATH (for example ...\Python27\lib\site-packages).

Usage

The simplest example (connect, change working dir, print working dir, close):

 | ftp connect | 192.168.1.10             | mylogin | mypassword |
 | cwd         | /home/myname/tmp/testdir |         |            |
 | pwd         |                          |         |            |
 | ftp close   |                          |         |            |

It is possible to use multiple ftp connections in parallel. Connections are identified by string identifiers:

 | ftp connect | 192.168.1.10             | mylogin  | mypassword  | connId=ftp1 |
 | ftp connect | 192.168.1.20             | mylogin2 | mypassword2 | connId=ftp2 |
 | cwd         | /home/myname/tmp/testdir | ftp1     |             |             |
 | cwd         | /home/myname/tmp/testdir | ftp2     |             |             |
 | pwd         | ftp2                     |          |             |             |
 | pwd         | ftp1                     |          |             |             |
 | ftp close   | ftp2                     |          |             |             |
 | ftp close   | ftp1                     |          |             |             |

During library import it is possible to disable logging of server messages. By default logging is enabled:

 | Library | FtpLibrary.py |

To disable logging of server messages, additional parameter must be added to import:

 | Library | FtpLibrary.py | False |