16 new revisions:
Revision: 007db9b78c47
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Mon Sep 15 05:56:02 2008 UTC
Log: tag for 0.7
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=007db9b78c47
Revision: 8492b0e9c91f
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Thu Mar 5 05:37:35 2009 UTC
Log: tag for 0.9
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=8492b0e9c91f
Revision: 17c5cbcff55f
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Wed Aug 6 06:16:05 2008 UTC
Log: 0.6 tag
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=17c5cbcff55f
Revision: 7c3b86e08bce
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Fri Nov 7 12:19:39 2008 UTC
Log:
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=7c3b86e08bce
Revision: 6610468fcd4a
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Mon Sep 15 06:10:24 2008 UTC
Log: version, contact info
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=6610468fcd4a
Revision: d35a3ca55883
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Mon Nov 8 08:23:12 2010 UTC
Log: tag for 1.0
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=d35a3ca55883
Revision: 25dcc9a0802d
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Fri Jul 11 11:38:49 2008 UTC
Log: tag for first release
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=25dcc9a0802d
Revision: ebd30246e063
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Fri Aug 31 12:06:46 2012 UTC
Log: 1.1 tag
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=ebd30246e063
Revision: 3bca36e23a4a
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Fri Jul 11 11:48:35 2008 UTC
Log: fixed setup and manifest
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=3bca36e23a4a
Revision: 0d0cb7846a7e
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Wed Aug 6 12:25:57 2008 UTC
Log: the REAL 0.6
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=0d0cb7846a7e
Revision: 1d5d4f14d06e
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Mon Sep 15 06:47:29 2008 UTC
Log: added version
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=1d5d4f14d06e
Revision: a97fe0cbe525
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Thu Mar 5 05:45:41 2009 UTC
Log: version, doc
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=a97fe0cbe525
Revision: 7af1bd474d1f
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Fri Nov 7 12:20:49 2008 UTC
Log: version update
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=7af1bd474d1f
Revision: 0ff75d2effc8
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Wed Aug 6 12:31:54 2008 UTC
Log: version number
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=0ff75d2effc8
Revision: 7e2a9b02e04b
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Fri Nov 7 12:27:40 2008 UTC
Log: created new doc
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=7e2a9b02e04b
Revision: 6e56c5d9a580
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Wed Aug 6 12:47:29 2008 UTC
Log: fresh docs
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=6e56c5d9a580
==============================================================================
Revision: 007db9b78c47
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Mon Sep 15 05:56:02 2008 UTC
Log: tag for 0.7
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=007db9b78c47
==============================================================================
Revision: 8492b0e9c91f
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Thu Mar 5 05:37:35 2009 UTC
Log: tag for 0.9
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=8492b0e9c91f
==============================================================================
Revision: 17c5cbcff55f
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Wed Aug 6 06:16:05 2008 UTC
Log: 0.6 tag
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=17c5cbcff55f
==============================================================================
Revision: 7c3b86e08bce
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Fri Nov 7 12:19:39 2008 UTC
Log:
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=7c3b86e08bce
==============================================================================
Revision: 6610468fcd4a
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Mon Sep 15 06:10:24 2008 UTC
Log: version, contact info
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=6610468fcd4a
Modified:
/setup.py
=======================================
--- /setup.py Fri Jul 11 11:24:06 2008 UTC
+++ /setup.py Mon Sep 15 06:10:24 2008 UTC
@@ -5,10 +5,10 @@
def main():
setup(name = 'SSHLibrary',
- version = 'trunk',
+ version = '0.7',
description = 'Test Library for Robot Framework enabling SSH',
author = 'Robot Framework Developers',
- author_email = 'robotframework-sshlibr...@groups.google.com',
+ author_email = 'robotframework-de...@groups.google.com',
url
= 'http://code.google.com/p/robotframework-sshlibrary/',
package_dir = { '' : 'src'},
packages = ['SSHLibrary']
==============================================================================
Revision: d35a3ca55883
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Mon Nov 8 08:23:12 2010 UTC
Log: tag for 1.0
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=d35a3ca55883
==============================================================================
Revision: 25dcc9a0802d
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Fri Jul 11 11:38:49 2008 UTC
Log: tag for first release
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=25dcc9a0802d
==============================================================================
Revision: ebd30246e063
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Fri Aug 31 12:06:46 2012 UTC
Log: 1.1 tag
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=ebd30246e063
==============================================================================
Revision: 3bca36e23a4a
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Fri Jul 11 11:48:35 2008 UTC
Log: fixed setup and manifest
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=3bca36e23a4a
Added:
/MANIFEST.in
Modified:
/setup.cfg
/setup.py
=======================================
--- /dev/null
+++ /MANIFEST.in Fri Jul 11 11:48:35 2008 UTC
@@ -0,0 +1,3 @@
+include *.txt
+include lib/.jar
+include doc/*.html
=======================================
--- /setup.cfg Fri Jul 11 11:24:06 2008 UTC
+++ /setup.cfg Fri Jul 11 11:48:35 2008 UTC
@@ -1,5 +1,5 @@
[sdist]
-formats=tar.gz
+force-manifest=1
[bdist_wininst]
=======================================
--- /setup.py Fri Jul 11 11:24:06 2008 UTC
+++ /setup.py Fri Jul 11 11:48:35 2008 UTC
@@ -5,7 +5,7 @@
def main():
setup(name = 'SSHLibrary',
- version = 'trunk',
+ version = '0.5',
description = 'Test Library for Robot Framework enabling SSH',
author = 'Robot Framework Developers',
author_email = 'robotframework-sshlibr...@groups.google.com',
==============================================================================
Revision: 0d0cb7846a7e
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Wed Aug 6 12:25:57 2008 UTC
Log: the REAL 0.6
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=0d0cb7846a7e
==============================================================================
Revision: 1d5d4f14d06e
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Mon Sep 15 06:47:29 2008 UTC
Log: added version
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=1d5d4f14d06e
Modified:
/src/SSHLibrary/__init__.py
=======================================
--- /src/SSHLibrary/__init__.py Mon Sep 15 05:53:25 2008 UTC
+++ /src/SSHLibrary/__init__.py Mon Sep 15 06:47:29 2008 UTC
@@ -56,7 +56,8 @@
Both modes require that a connection is opened with `Open Connection`.
"""
- ROBOT_LIBRARY_SCOPE="GLOBAL"
+ ROBOT_LIBRARY_SCOPE = 'GLOBAL'
+ ROBOT_LIBRARY_VERSION = '0.7'
def __init__(self, timeout=3, newline='LF', prompt=None):
self._cache = utils.ConnectionCache()
==============================================================================
Revision: a97fe0cbe525
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Thu Mar 5 05:45:41 2009 UTC
Log: version, doc
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=a97fe0cbe525
Modified:
/doc/SSHLibrary.html
/src/SSHLibrary/__init__.py
=======================================
--- /doc/SSHLibrary.html Fri Feb 27 08:47:13 2009 UTC
+++ /doc/SSHLibrary.html Thu Mar 5 05:45:41 2009 UTC
@@ -79,7 +79,7 @@
</head>
<body>
<h1>SSHLibrary - Documentation</h1>
-<p><b>Version:</b> trunk</p>
+<p><b>Version:</b> 0.9</p>
<h2 id="introduction">Introduction</h2>
<p class='libdoc'>SSH Library is a test library for Robot Framework that
enables executing commands and transferring files over an SSH
connection.<br />
@@ -664,7 +664,7 @@
<p class="footer">
Altogether 23 keywords.<br />
Generated by <a
href="http://code.google.com/p/robotframework/wiki/LibraryDocumentationTool">libdoc.py</a>
-on 2009-02-27 10:46:41.
+on 2009-03-05 07:44:31.
</p>
</body>
</html>
=======================================
--- /src/SSHLibrary/__init__.py Fri Feb 27 10:42:41 2009 UTC
+++ /src/SSHLibrary/__init__.py Thu Mar 5 05:45:41 2009 UTC
@@ -28,7 +28,7 @@
else:
from pythonclient import SSHClient
-__version__ = 'trunk'
+__version__ = '0.9'
class SSHLibrary:
==============================================================================
Revision: 7af1bd474d1f
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Fri Nov 7 12:20:49 2008 UTC
Log: version update
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=7af1bd474d1f
Modified:
/src/SSHLibrary/__init__.py
=======================================
--- /src/SSHLibrary/__init__.py Fri Nov 7 12:05:56 2008 UTC
+++ /src/SSHLibrary/__init__.py Fri Nov 7 12:20:49 2008 UTC
@@ -26,7 +26,7 @@
else:
from pythonclient import SSHClient
-__version__ = 'trunk'
+__version__ = '0.8'
class SSHLibrary:
==============================================================================
Revision: 0ff75d2effc8
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Wed Aug 6 12:31:54 2008 UTC
Log: version number
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=0ff75d2effc8
Modified:
/setup.py
=======================================
--- /setup.py Fri Jul 11 11:24:06 2008 UTC
+++ /setup.py Wed Aug 6 12:31:54 2008 UTC
@@ -5,7 +5,7 @@
def main():
setup(name = 'SSHLibrary',
- version = 'trunk',
+ version = '0.6',
description = 'Test Library for Robot Framework enabling SSH',
author = 'Robot Framework Developers',
author_email = 'robotframework-sshlibr...@groups.google.com',
==============================================================================
Revision: 7e2a9b02e04b
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Fri Nov 7 12:27:40 2008 UTC
Log: created new doc
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=7e2a9b02e04b
Modified:
/doc/SSHLibrary.html
=======================================
--- /doc/SSHLibrary.html Thu Sep 4 09:43:51 2008 UTC
+++ /doc/SSHLibrary.html Fri Nov 7 12:27:40 2008 UTC
@@ -10,7 +10,6 @@
}
/* Generic Table Styles */
-
table {
background: white;
border: 1px solid black;
@@ -30,7 +29,6 @@
}
/* Columns */
-
td.kw {
font-weight: bold;
}
@@ -40,9 +38,23 @@
}
td.doc {
}
+
+ /* Tables in documentation */
+ table.doc {
+ border: 1px solid gray;
+ background: transparent;
+ border-collapse: collapse;
+ empty-cells: show;
+ font-size: 0.85em;
+ font-family: arial,helvetica,sans-serif;
+ }
+ table.doc td {
+ border: 1px solid gray;
+ padding: 0.1em 0.3em;
+ height: 1.2em;
+ }
/* Paragraphs */
-
.libdoc, .links {
width: 800px;
}
@@ -67,16 +79,18 @@
</head>
<body>
<h1>SSHLibrary - Documentation</h1>
+<p><b>Version:</b> 0.8</p>
-<h2>Introduction</h2>
+<h2><a name="introduction"/>Introduction</h2>
<p class='libdoc'>SSHLibrary is a test library for Robot Framework that
enables executing commands over SSH connection.<br />
<br />
-SSHLibrary works with both Python and Jython interpreters. To use
SSHLibrary with Python, you must first install paramiko SSH
implementation[1] for Python and it's dependencies. To use SSHLibrary with
Jython, you must have jar distribution of trilead SSH implementation[2] in
the Classpath during test execution<br />
+SSHLibrary works with both Python and Jython interpreters. To use
SSHLibrary with Python, you must first install paramiko SSH
implementation[1] for Python and its dependencies. To use SSHLibrary with
Jython, you must have jar distribution of trilead SSH implementation[2] in
the Classpath during test execution<br />
<br />
[1] <a
href="http://www.lag.net/paramiko/">http://www.lag.net/paramiko/</a><br />
[2] <a
href="http://www.trilead.com/Products/Trilead_SSH_for_Java/">http://www.trilead.com/Products/Trilead_SSH_for_Java/</a><br
/>
<br />
Currently, there are two modes of operation:<br />
+<br />
1. When keyword <a href="#Execute Command" class="name">Execute
Command</a> or <a href="#Start Command" class="name">Start Command</a> is
used to execute something, a new channel is opened over the SSH connection.
In practice it means that no session information is stored.<br />
<br />
2. Keywords <a href="#Write" class="name">Write</a> and <span
class="name">Read XXX</span> operate in an interactive shell, which means
that changes to state are visible to next keywords. Note that in
interactive mode, a prompt must be set before using any of the
Write-keywords. Prompt can be set either when the library is taken into use
or when a new connection is opened using <a href="#Open Connection"
class="name">Open Connection</a>, or using keyword <a href="#Set Prompt"
class="name">Set Prompt</a>.<br />
@@ -87,6 +101,7 @@
<div class='links'>
<a href="#Close All Connections" title="Closes all open connections and
empties the connection cache.">Close All Connections</a>
<a href="#Close Connection" title="Closes the currently active
connection.">Close Connection</a>
+<a href="#Enable Ssh Logging" title="Enables the logging of SSH protocol
output to given `logfile`">Enable Ssh Logging</a>
<a href="#Execute Command" title="Executes command on remote host over
existing SSH connection and returns stdout and/or
stderr.">Execute Command</a>
<a href="#Get File" title="Copies a file from remote host to local host
using existing SSH connection.">Get File</a>
<a href="#Login" title="Logs in to SSH server with given user
information.">Login</a>
@@ -120,7 +135,7 @@
<td class="arg"></td>
<td class="doc">Closes all open connections and empties the connection
cache.<br />
<br />
-After this keyword new indexes get from <a href="#Open Connection"
class="name">Open Connection</a> are reset to 1.<br />
+After this keyword indices returned by <a href="#Open Connection"
class="name">Open Connection</a> start from 1.<br />
<br />
This keyword ought to be used in test or suite teardown to make sure all
connections are closed.</td>
</tr>
@@ -130,6 +145,13 @@
<td class="doc">Closes the currently active connection.</td>
</tr>
<tr>
+ <td class="kw"><a name="Enable Ssh Logging"></a>Enable Ssh Logging</td>
+ <td class="arg">logfile</td>
+ <td class="doc">Enables the logging of SSH protocol output to given
<span class="name">logfile</span><br />
+<br />
+<span class="name">logfile</span> can be relative or absolute path to a
file that is writable by current user. In case that it already exists, it
will be overwritten.</td>
+</tr>
+<tr>
<td class="kw"><a name="Execute Command"></a>Execute Command</td>
<td class="arg">command, ret_mode=stdout</td>
<td class="doc">Executes command on remote host over existing SSH
connection and returns stdout and/or stderr.<br />
@@ -137,32 +159,33 @@
This keyword waits until the command is completed. If non-blocking
behavior is required, use <a href="#Start Command" class="name">Start
Command</a> instead.<br />
<br />
Examples:<br />
-<table border="1" style="border: 1px solid gray; background: transparent;
border-collapse: collapse; font-size: 0.9em; empty-cells: show;">
+<table border="1" class="doc">
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">${out}=</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Execute
Command</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">some command</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">#stdout is
returned</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
+<td>${out}=</td>
+<td>Execute Command</td>
+<td>some command</td>
+<td></td>
+<td>#stdout is returned</td>
+<td></td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">${err}=</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Execute
Command</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">some command</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">stderr</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">#stderr is
returned</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
+<td>${err}=</td>
+<td>Execute Command</td>
+<td>some command</td>
+<td>stderr</td>
+<td>#stderr is returned</td>
+<td></td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">${out}</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">${err}=</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Execute
Command</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">some command</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">both</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">#stdout and
stderr are returned</td>
+<td>${out}</td>
+<td>${err}=</td>
+<td>Execute Command</td>
+<td>some command</td>
+<td>both</td>
+<td>#stdout and stderr are returned</td>
</tr>
-</table></td>
+</table>
+</td>
</tr>
<tr>
<td class="kw"><a name="Get File"></a>Get File</td>
@@ -179,20 +202,21 @@
<br />
Examples:<br />
<br />
-<table border="1" style="border: 1px solid gray; background: transparent;
border-collapse: collapse; font-size: 0.9em; empty-cells: show;">
+<table border="1" class="doc">
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Get File</td>
-<td style="border: 1px solid gray; padding: 0.1em
0.3em;">/path_to_remote_file/remote_file.txt</td>
-<td style="border: 1px solid gray; padding: 0.1em
0.3em;">/path_to_local_file/local_file.txt</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"># single
file</td>
+<td>Get File</td>
+<td>/path_to_remote_file/remote_file.txt</td>
+<td>/path_to_local_file/local_file.txt</td>
+<td># single file</td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Get File</td>
-<td style="border: 1px solid gray; padding: 0.1em
0.3em;">/path_to_remote_files/*.txt</td>
-<td style="border: 1px solid gray; padding: 0.1em
0.3em;">/path_to_local_files/</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"># multiple files
with wild cards</td>
+<td>Get File</td>
+<td>/path_to_remote_files/*.txt</td>
+<td>/path_to_local_files/</td>
+<td># multiple files with wild cards</td>
</tr>
-</table></td>
+</table>
+</td>
</tr>
<tr>
<td class="kw"><a name="Login"></a>Login</td>
@@ -200,13 +224,14 @@
<td class="doc">Logs in to SSH server with given user information.<br />
<br />
Example:<br />
-<table border="1" style="border: 1px solid gray; background: transparent;
border-collapse: collapse; font-size: 0.9em; empty-cells: show;">
+<table border="1" class="doc">
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Login</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">john</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">secret</td>
+<td>Login</td>
+<td>john</td>
+<td>secret</td>
</tr>
-</table></td>
+</table>
+</td>
</tr>
<tr>
<td class="kw"><a name="Open Connection"></a>Open Connection</td>
@@ -222,87 +247,89 @@
For more information about <span class="name">timeout</span>, <span
class="name">newline</span> and <span class="name">prompt</span>, see <a
href="#Set Timeout" class="name">Set Timeout</a>, <a href="#Set Newline"
class="name">Set Newline</a> and <a href="#Set Prompt" class="name">Set
Prompt</a>, respectively.<br />
<br />
Examples:<br />
-<table border="1" style="border: 1px solid gray; background: transparent;
border-collapse: collapse; font-size: 0.9em; empty-cells: show;">
+<table border="1" class="doc">
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Open
Connection</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">myhost.net</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
+<td>Open Connection</td>
+<td>myhost.net</td>
+<td></td>
+<td></td>
+<td></td>
+<td></td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Open
Connection</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">yourhost.com</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">2nd conn</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"># alias</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
+<td>Open Connection</td>
+<td>yourhost.com</td>
+<td>2nd conn</td>
+<td># alias</td>
+<td></td>
+<td></td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">${id} =</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Open
Connection</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">myhost.net</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"># index to
variable</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
+<td>${id} =</td>
+<td>Open Connection</td>
+<td>myhost.net</td>
+<td># index to variable</td>
+<td></td>
+<td></td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">${id} =</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Open
Connection</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">myhost.net</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">${None}</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">23</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"># index and
port</td>
+<td>${id} =</td>
+<td>Open Connection</td>
+<td>myhost.net</td>
+<td>${None}</td>
+<td>23</td>
+<td># index and port</td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Open
Connection</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">myhost.net</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">3rd conn</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">25</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"># alias and
port</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
+<td>Open Connection</td>
+<td>myhost.net</td>
+<td>3rd conn</td>
+<td>25</td>
+<td># alias and port</td>
+<td></td>
</tr>
-</table></td>
+</table>
+</td>
</tr>
<tr>
<td class="kw"><a name="Put File"></a>Put File</td>
<td class="arg">source, destination=., mode=0744</td>
<td class="doc">Copies file(s) from local host to remote host using
existing SSH connection.<br />
<br />
-1. If the destination is an existing file, the source file is copied over
it.<br />
-2. If the destination is an existing directory, the source file is copied
into it. Possible file with same name is overwritten.<br />
-3. If the destination does not exist and it ends with path separator
('/'), it is considered a directory. That directory is created and source
file copied into it. Possibly missing intermediate directories are also
created.<br />
+1. If the destination is an existing file, the src file is copied over
it.<br />
+2. If the destination is an existing directory, the src file is copied
into it. Possible file with same name is overwritten.<br />
+3. If the destination does not exist and it ends with path separator
('/'), it is considered a directory. That directory is created and src file
copied into it. Possibly missing intermediate directories are also
created.<br />
4. If the destination does not exist and it does not end with path
separator, it is considered a file. If the path to the file does not exist
it is created.<br />
5. By default, destination is empty and the user's home directory in the
remote machine is used as destination.<br />
<br />
-Using wild cards like '*' and '?' are allowed. When wild cards are used,
destination MUST be a directory and only files are copied from the source,
sub directories are ignored. If the contents of sub directories are also
needed, use the keyword again. Default file permission is 0744 (-rwxr--r--)
and can be changed by giving a value to the optional <span
class="name">mode</span> parameter.<br />
+Using wild cards like '*' and '?' are allowed. When wild cards are used,
destination MUST be a directory and only files are copied from the src, sub
directories are ignored. If the contents of sub directories are also
needed, use the keyword again. Default file permission is 0744 (-rwxr--r--)
and can be changed by giving a value to the optional <span
class="name">mode</span> parameter.<br />
<br />
Examples:<br />
<br />
-<table border="1" style="border: 1px solid gray; background: transparent;
border-collapse: collapse; font-size: 0.9em; empty-cells: show;">
+<table border="1" class="doc">
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Put File</td>
-<td style="border: 1px solid gray; padding: 0.1em
0.3em;">/path_to_local_file/local_file.txt</td>
-<td style="border: 1px solid gray; padding: 0.1em
0.3em;">/path_to_remote_file/remote_file.txt</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"># single
file</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
+<td>Put File</td>
+<td>/path_to_local_file/local_file.txt</td>
+<td>/path_to_remote_file/remote_file.txt</td>
+<td># single file</td>
+<td></td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Put File</td>
-<td style="border: 1px solid gray; padding: 0.1em
0.3em;">/path_to_local_files/*.txt</td>
-<td style="border: 1px solid gray; padding: 0.1em
0.3em;">/path_to_remote_files/</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"># multiple files
with wild cards</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
+<td>Put File</td>
+<td>/path_to_local_files/*.txt</td>
+<td>/path_to_remote_files/</td>
+<td># multiple files with wild cards</td>
+<td></td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Put File</td>
-<td style="border: 1px solid gray; padding: 0.1em
0.3em;">/path_to_local_files/*.txt</td>
-<td style="border: 1px solid gray; padding: 0.1em
0.3em;">/path_to_remote_files/</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">0777</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"># file
permissions</td>
+<td>Put File</td>
+<td>/path_to_local_files/*.txt</td>
+<td>/path_to_remote_files/</td>
+<td>0777</td>
+<td># file permissions</td>
</tr>
-</table></td>
+</table>
+</td>
</tr>
<tr>
<td class="kw"><a name="Read"></a>Read</td>
@@ -317,29 +344,30 @@
<td class="doc">Reads and returns/logs everything currently available on
the output (stdout and/or stderr).<br />
<br />
Examples:<br />
-<table border="1" style="border: 1px solid gray; background: transparent;
border-collapse: collapse; font-size: 0.9em; empty-cells: show;">
+<table border="1" class="doc">
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">${out}=</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Read Command
Output</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
+<td>${out}=</td>
+<td>Read Command Output</td>
+<td></td>
+<td></td>
+<td></td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">${err}=</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Read Command
Output</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">stderr</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">#stderr is
returned</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
+<td>${err}=</td>
+<td>Read Command Output</td>
+<td>stderr</td>
+<td>#stderr is returned</td>
+<td></td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">${out}</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">${err}=</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Read Command
Output</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">both</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">#stdout and
stderr are returned</td>
+<td>${out}</td>
+<td>${err}=</td>
+<td>Read Command Output</td>
+<td>both</td>
+<td>#stdout and stderr are returned</td>
</tr>
-</table></td>
+</table>
+</td>
</tr>
<tr>
<td class="kw"><a name="Read Until"></a>Read Until</td>
@@ -373,18 +401,19 @@
The timeout is by default two seconds but can be changed using <a
href="#Set Timeout" class="name">Set Timeout</a> keyword.<br />
<br />
See <a href="#Read" class="name">Read</a> for more information on <span
class="name">loglevel</span>. Examples:<br />
-<table border="1" style="border: 1px solid gray; background: transparent;
border-collapse: collapse; font-size: 0.9em; empty-cells: show;">
+<table border="1" class="doc">
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Read Until
Regexp</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">(#|$)</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
+<td>Read Until Regexp</td>
+<td>(#|$)</td>
+<td></td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Read Until
Regexp</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">some regexp</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">DEBUG</td>
+<td>Read Until Regexp</td>
+<td>some regexp</td>
+<td>DEBUG</td>
</tr>
-</table></td>
+</table>
+</td>
</tr>
<tr>
<td class="kw"><a name="Set Default Log Level"></a>Set Default Log
Level</td>
@@ -408,23 +437,24 @@
Old prompt is returned and it can be used to restore it later.<br />
<br />
Example:<br />
-<table border="1" style="border: 1px solid gray; background: transparent;
border-collapse: collapse; font-size: 0.9em; empty-cells: show;">
+<table border="1" class="doc">
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">${prompt}</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Set Prompt</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">$</td>
+<td>${prompt}</td>
+<td>Set Prompt</td>
+<td>$</td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Do Something</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
+<td>Do Something</td>
+<td></td>
+<td></td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Set Prompt</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">${prompt}</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
+<td>Set Prompt</td>
+<td>${prompt}</td>
+<td></td>
</tr>
-</table></td>
+</table>
+</td>
</tr>
<tr>
<td class="kw"><a name="Set Timeout"></a>Set Timeout</td>
@@ -438,23 +468,24 @@
Old timeout is returned and it can be used to restore it later.<br />
<br />
Example:<br />
-<table border="1" style="border: 1px solid gray; background: transparent;
border-collapse: collapse; font-size: 0.9em; empty-cells: show;">
+<table border="1" class="doc">
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">${tout} =</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Set Timeout</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">2 minute 30
seconds</td>
+<td>${tout} =</td>
+<td>Set Timeout</td>
+<td>2 minute 30 seconds</td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Do Something</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
+<td>Do Something</td>
+<td></td>
+<td></td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Set Timeout</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">${tout}</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
+<td>Set Timeout</td>
+<td>${tout}</td>
+<td></td>
</tr>
-</table></td>
+</table>
+</td>
</tr>
<tr>
<td class="kw"><a name="Start Command"></a>Start Command</td>
@@ -466,12 +497,13 @@
Note that the <a href="#Read Command Output" class="name">Read Command
Output</a> keyword always reads the output of the most recently started
command.<br />
<br />
Example:<br />
-<table border="1" style="border: 1px solid gray; background: transparent;
border-collapse: collapse; font-size: 0.9em; empty-cells: show;">
+<table border="1" class="doc">
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Start
Command</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">some command</td>
+<td>Start Command</td>
+<td>some command</td>
</tr>
-</table></td>
+</table>
+</td>
</tr>
<tr>
<td class="kw"><a name="Switch Connection"></a>Switch Connection</td>
@@ -480,84 +512,88 @@
<br />
Index is got from <a href="#Open Connection" class="name">Open
Connection</a> and alias can be given to it.<br />
<br />
+Returns the index of previous connection, which can be used to restore the
connection later. This works with Robot Framework 2.0.2 or newer.<br />
+<br />
Example:<br />
<br />
-<table border="1" style="border: 1px solid gray; background: transparent;
border-collapse: collapse; font-size: 0.9em; empty-cells: show;">
+<table border="1" class="doc">
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Open
Connection</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">myhost.net</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
+<td>Open Connection</td>
+<td>myhost.net</td>
+<td></td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Login</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">john</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">secret</td>
+<td>Login</td>
+<td>john</td>
+<td>secret</td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Execute
Command</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">some command</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
+<td>Execute Command</td>
+<td>some command</td>
+<td></td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Open
Connection</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">yourhost.com</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">2nd conn</td>
+<td>Open Connection</td>
+<td>yourhost.com</td>
+<td>2nd conn</td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Login</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">root</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">password</td>
+<td>Login</td>
+<td>root</td>
+<td>password</td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Start
Command</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">another cmd</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
+<td>Start Command</td>
+<td>another cmd</td>
+<td></td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Switch
Connection</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">1</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"># index</td>
+<td>Switch Connection</td>
+<td>1</td>
+<td># index</td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Execute
Command</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">something</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
+<td>Execute Command</td>
+<td>something</td>
+<td></td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Switch
Connection</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">2nd conn</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"># alias</td>
+<td>Switch Connection</td>
+<td>2nd conn</td>
+<td># alias</td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Read Command
Output</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
+<td>Read Command Output</td>
+<td></td>
+<td></td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Close All
Connections</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
+<td>Close All Connections</td>
+<td></td>
+<td></td>
</tr>
-</table><br />
+</table>
+<br />
Above example expects that there was no other open connections when
opening the first one because it used index '1' when switching to it later.
If you aren't sure about that you can store the index into a variable as
below.<br />
<br />
-<table border="1" style="border: 1px solid gray; background: transparent;
border-collapse: collapse; font-size: 0.9em; empty-cells: show;">
+<table border="1" class="doc">
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">${id} =</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Open
Connection</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">myhost.net</td>
+<td>${id} =</td>
+<td>Open Connection</td>
+<td>myhost.net</td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"># Do
something ...</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
+<td># Do something ...</td>
+<td></td>
+<td></td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Switch
Connection</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">${id}</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;"></td>
+<td>Switch Connection</td>
+<td>${id}</td>
+<td></td>
</tr>
-</table></td>
+</table>
+</td>
</tr>
<tr>
<td class="kw"><a name="Write"></a>Write</td>
@@ -585,25 +621,26 @@
See <a href="#Read" class="name">Read</a> for more information on <span
class="name">loglevel</span>.<br />
<br />
Example:<br />
-<table border="1" style="border: 1px solid gray; background: transparent;
border-collapse: collapse; font-size: 0.9em; empty-cells: show;">
+<table border="1" class="doc">
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">Write Until
Expected Output</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">ps -ef| grep
myprocess\n</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">myprocess</td>
+<td>Write Until Expected Output</td>
+<td>ps -ef| grep myprocess\n</td>
+<td>myprocess</td>
</tr>
<tr>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">...</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">5s</td>
-<td style="border: 1px solid gray; padding: 0.1em 0.3em;">0.5s</td>
+<td>...</td>
+<td>5s</td>
+<td>0.5s</td>
</tr>
-</table><br />
+</table>
+<br />
This will write the 'ps -ef | grep myprocess\n' until 'myprocess' appears
on the output. The command is written every 0.5 seconds and the keyword
will fail if 'myprocess' does not appear on the output in 5 seconds.</td>
</tr>
</table>
<p class="footer">
-Altogether 21 keywords.<br />
+Altogether 22 keywords.<br />
Generated by <a
href="http://code.google.com/p/robotframework/wiki/LibraryDocumentationTool">libdoc.py</a>
-on 2008-09-04 12:31:20.
+on 2008-11-07 14:27:24.
</p>
</body>
</html>
==============================================================================
Revision: 6e56c5d9a580
Author: Janne Härkönen <janne.t.harko...@gmail.com>
Date: Wed Aug 6 12:47:29 2008 UTC
Log: fresh docs
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=6e56c5d9a580
Modified:
/doc/SSHLibrary.html
/src/SSHLibrary/__init__.py
=======================================
--- /doc/SSHLibrary.html Tue Aug 5 14:03:45 2008 UTC
+++ /doc/SSHLibrary.html Wed Aug 6 12:47:29 2008 UTC
@@ -231,6 +231,9 @@
switching between connections similarly as the index. See Switch<br />
Connection for more details about that.<br />
<br />
+For more information about timeout, newline and prompt, see 'Set
Timeout',<br />
+'Set Newline' and 'Set Prompt', respectively.<br />
+<br />
Examples:<br />
<table border="1" style="border: 1px solid gray; background: transparent;
border-collapse: collapse; empty-cells: show;">
<tr>
@@ -652,7 +655,7 @@
</table>
<p class="footer">
Altogether 21 keywords.
-Documentation generated 20080805 17:00:38.
+Documentation generated 20080806 15:45:12.
</p>
</body>
</html>
=======================================
--- /src/SSHLibrary/__init__.py Tue Aug 5 14:01:52 2008 UTC
+++ /src/SSHLibrary/__init__.py Wed Aug 6 12:47:29 2008 UTC
@@ -77,6 +77,9 @@
Optional alias is a name for the connection and it can be used for
switching between connections similarly as the index. See Switch
Connection for more details about that.
+
+ For more information about timeout, newline and prompt, see 'Set
Timeout',
+ 'Set Newline' and 'Set Prompt', respectively.
Examples:
| Open Connection | myhost.net |
| | | |
--
---
You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.