Web Testing using Mozilla Firefox and Selenium
From Kb
Contact Article Author | Blog of Article Author | FirstPartners.net Home | LinkedIn profile of Author
Python in Eclipse Setup
Selenium writes it's (automated) tests as Python. Hence the optional Python setup steps
Setup of Firefox and Selenium
- Selenium RC Firefox Web Testing Plugin
- Selenium Plugin
- Selenium RC
- Selenium IDE
- Other Firefox Plugins
Running Selenium
- Record Python (or Ruby) Script using Selenium IDE in Firefox
- Right click to add assertions into test script.
- Save to sensible location (e.g. within a Eclipse Pydev project)
- Run the Selenium RC with a command similar to
java -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=80 -jar C:\selenium-remote-control-0.9.0\selenium-server.jar -firefoxProfileTemplate C:\projects\AutomatedTesting\aw52d9lu.selenium
- Run the python /ruby test script in whatever (J)Ruby or (J)Python
- You should be able to view your browser retracing it's steps and testing assertions

