使用Robot Framework集成Selenium的自动化测试(六)

robotframework-selenium如果需要远程连接,建议引用包SSHLibrary,它的运行依赖于2个条件,[url]http://code.google.com/p/robotframework-sshlibrary/wiki/InstallationInstructions[/url]code-google上面有下面的描述:

[quote]
A precondition for using SSH Library with Python is having SSH module named paramiko installed. Paramiko itself has some other requirements listed in installation instructions (mainly PyCrypto) and these must naturally be installed too. PyCrypto binaries for Windows are available here for 32 bit Windows and here for 64 bit Windows.
In Windows, paramiko has to be installed from the source distribution, by unzipping the download, and then running python setup.py install in the unzipped directory.
[/quote]

需要Pycrypto和paramiko安装完以后才能起作用,(python肯定是需要的)

1. Pycrypto

下载地址:[url]http://www.voidspace.org.uk/python/modules.shtml[/url]在里面找到对应python版本的安装,

安装完成以后运行python.exe或者python的GUI界面,输入下面的命令:
[quote]
import Crypto
[/quote]
注意大小写,写错python就不能识别了。

2. paramiko

下载地址:[url]http://www.lag.net/paramiko/[/url]
因为没有exe格式的,只能下载zip的,放在本地,然后解压后进入
调用命令
[quote]
python setup.py build
python setup.py install
[/quote]
python是加到path里面去的

安装完成以后运行python.exe或者python的GUI界面,输入下面的命令:
[quote]
import paramiko
[/quote]
注意大小写,写错python就不能识别了。


3. SSHLibrary

下载地址就是上面文档的地址,exe正常安装即可

安装完成以后可以验证下,方法同上。

最后打开ride.py(前提是你装了RIDE) 可以将SSHLibrary导入。


参考了下面的博客,但是跳过了GCC
[url]http://www.cnblogs.com/gannan/archive/2012/02/06/2339883.html[/url]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值