Selenium: How does it work?
I noticed that Selenium is in the dev tree now. Can anyone tell me how it works? What do I need to install, what do I need to code? My boss asked me to evaluate it for our company.
Re: Selenium: How does it work?
Reply #1 –
We are using it to run functional browser tests with phpunit although I still can't get the code coverage reports to work.
For us its a very basic setup. run selenium server (single .jar file) inside xvfb with firefox as the browser so a headless display setup. PhpUnit has a selenium extension that we use as a webdriver, it sends the commands to selenium with in turn runs the browser (or browsers if you want). You interact with Dom based syntax, byId, byName byCssSelector, click, move, etc ... and check results. Right now its really just to test our controller interaction and results vs any true browser support.
You would not have to run it headless necessarily, or could export the display. I'd expect you would probably use a grid setup with whatever browsers/os combo you support. The biggest thing of course is writing all the test cases to run.
Re: Selenium: How does it work?
Reply #2 –
Well, we have two FreeBSD servers and a number of OSX clients; on the other project, it's an OSX server with the same clients.
Is there any good, ehm, tutorial for that? I'm stuck between even the different Selenium downloads.
(I hate unit tests.)