Robot Framework test library for transferring files via Secure Copy (SCP)
Project description
Robot Framework test library for Secure Copy (SCP)
This library can be used to copy files to and from a remote machine using Secure Copy (SCP). It uses the Paramiko SSH Python library (just like robotframework-sshlibrary) and an SCP wrapper (‘scp’ by James Bardin).
The library does not currently support Jython or IronPython at this time.
Installation
This library may be installed via PyPi (pip) or by installing from the source distribution. To install from pip, run:
pip install robotframework-scplibrary
To install from the source distribution, download the and extract the source and run:
python setup.py install
Connection
Before files can be transferred a connection to remote machine must first be made. A connection can be made with the Open Connection keyword. Both normal username/password authentication and asymmetric key-pair authentication may be used.
Connections should be closed using the Close Connection when they are no longer in use.
File transfer
Files and directories can be uploaded to the remote machine using the Put File or Put Directory keywords or downloaded to the local machine using the Get File keyword.
A connection must be made using the Open Connection keyword before file transfers may be made.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for robotframework-scplibrary-1.1.1.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd511443a7b04993b6eb110f570924b86f5accb8387beccdbaf238b3986ed154 |
|
MD5 | 381457a215ce3d1ce85d73c38778175a |
|
BLAKE2b-256 | f34c38ffcedb2f9dbf5f819e6926850bcc1596e5a9b12ea8446922ebb1537db0 |
Hashes for robotframework_scplibrary-1.1.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74191f53b45c4943ecc53bf790a16395d4ffa5dc917685d04a03385f0fbc5790 |
|
MD5 | a9c07a562315c30dc1e11b75c5947baf |
|
BLAKE2b-256 | 2e1c7e74199699998167674fc8391f7080382c7002535693fd6d2d7e7a6725db |