使用selenium自动测试环境的搭建

[b]Selenium介绍[/b]
是对WEB站点一个自动化测试的解决方案。
直接在浏览器上运行
支持多种浏览器。
支持多种脚本程序。
通过浏览器的插件能实现录制、回放等功能
Selenium录制功能使用
下载对应的浏览器插件 selenium-IDE.
http://selenium.openqa.org/index.html#Selenium_IDE

[b]Selenium 代理服务的使用[/b]
条件:
安装java1.5以上版本
启动:
在window下面加入
java -jar selenium-server.jar -firefoxProfileTemplate "C:\Documents and Settings\Administrator\Application Data\Mozilla\Firefox\Profiles\wr71whiw.default"


[b]Selenium 支持SSL 加密传输[/b]
参考资料:
Selenium 使用chrome模式的解决方案
http://selenium-rc.openqa.org/experimental.html
java 中构建SSL
http://java.ccidnet.com/art/3737/20060808/789375_1.html

实现方法:
1. 在selenum RC 0.93 版本的 chorme (firefox)、 ha(Ie) 这两种模式下支持SSL
2. 把服务端生成的CA证书 copy 到selenium-server.jar 运行的 JAVA_HOME\jre\lib\security 下.
3. 使用firefox浏览器,在pyhton中构建selenium对象时,使用chorme 模式。
4. 如果使用了chorme模式,启动代理服务的时候需要指定friefox的配置。
5. java -jar selenium-server.jar -firefoxProfileTemplate "C:\Documents and Settings\Administrator\Application Data\Mozilla\Firefox\Profiles\wr71whiw.default"
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值