configure Eclipse Env For Selenium Support

1. download PyDev from http://pydev.sourceforge.net/updates/ in Eclipse

(1)Click "Help" -> "Software Updates" -> "Find and Install..."-> "Search for new features to install "
(2) Click botton of "New Remote Site....." -> input "PyDEV" in field of "Name" -> copy URL " http://pydev.sourceforge.net/updates/" into field of "URL" -> "OK"
(3) Select check box of PyDEV -> Click botton of "finish"
(4) start get information of "PyDEV" packages.
(5) select will install features of PyDEV in window of Updates -> Click "Finish"
(6) Start download features module
(7)Completed.

2. Configure parse of python ( interpreter of Pydev)
(1) Click "Window" -> " Preferences" -> select "Pydev" in tree list -> "Interpreter -Python"
(2) Click "new" button ,Browser python.exe and select it , Will auto configure Python Path.

3. Create a new project of Pydev
(1) Click "File" -> "new" -> "Project..."-> "Pydev"->"Pydev Project" -> "next"
(2) input name of pydev project ->"next"
(3) Finished

4. Configure selenium
(1) Copy selenium.py lib from selenium packages to directory of python lib ,for exanple "C:\Program Files\Python\Lib"
(2) Create a new script
(3) The first line is "from selenium import selenium" in new script , require selenium lib

5. Launch Selenium RC Server
(1) Launch Server command : java -jar [patn]\selenium-server.jar

6. Configure CAS ,if your web site used CAS.
(1) copy /usr/local/gemini/atb/lib/jdk1.5.0_06/jre/lib/security/cacerts into jre security directory ,for example : " C:\Program Files\Java\jdk1.6.0_02\jre\lib\security"
Note : copy from Linux to Windows
(2) if your security-directory of JRE exist "cacerts" ,pls backup it

7. Start autotest with selenium.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值