Robot Framework test library for transferring files via Secure Copy (SCP)
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.
This library may be installed via PyPI or from the source distribution. To install using pip, run:
pip install robotframework-scplibrary
To install from the source distribution, download the repo archive and extract the source and run:
python setup.py install
*** Settings *** Library SCPLibrary *** Test Cases *** Grab Files From My Server Open Connection 192.168.1.42 username=tyler password=teapot Get File remotefile.txt localfile.txt Get File /home/tyler/ mytylerdir/ recursive=True Close Connection Put File On My Server Open Connection 192.168.1.42 username=tyler password=teapot Put File mytea.txt /home/tyler/ Close 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 keyword when they are no longer in use.
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.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size robotframework_scplibrary-1.2.0-py2.py3-none-any.whl (4.5 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View hashes|
|Filename, size robotframework-scplibrary-1.2.0.tar.gz (3.7 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
Hashes for robotframework_scplibrary-1.2.0-py2.py3-none-any.whl
Hashes for robotframework-scplibrary-1.2.0.tar.gz