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.

你可能感兴趣的:(eclipse,linux,.net,python,Security)