Comment #7 on issue 72 by anssi.sy...@eficode.com: New keyword: `Get Current Connection`
http://code.google.com/p/robotframework-sshlibrary/issues/detail?id=72

We rather decided to implement a new keyword `Get Connection`, which retuns an object describing the connection, similarly as `Get Connections` returns a list of these objects.

Besides the new keyword, the connection objects now have `index` attribute in addition to the old ones. This was done by commit https://code.google.com/p/robotframework-sshlibrary/source/detail?r=574a4bb2f0cdb96fb58b624536033228f34e8790.

So using this keyword the following behaviour is possible:

Open Connection  far.host.com  alias=far
Open Connection  near.host.com
# Do something with near.host.com...
${farhost}=  Get Connection  far            # OR: Get Connection  1
Switch Connection  ${farhost.index}
# Do something with far.host.com

See library documentation (https://robotframework-sshlibrary.googlecode.com/git-history/master/doc/SSHLibrary.html#Get%20Connection) for more examples.


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- 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.

Reply via email to