We need to write some automated UI Tests on a project which is done entirely in PHP Kohana Framework, all of our engineers have experience with PHP language but none in Java.
But there seems to be a short amount of alternatives regarding the use of phpunit with selenium server and no official support for PHP. If we use the class at phpunit’s page we would be stuck with Selenium RC1 server and that’s not something we would want as our site has a lot of ajax and dynamic content. We’ve read that there are 3 different projects that make use of selenium Json Wire protocol in order to give compatibility with webdriver options. But the facebook one seems incomplete, even send keys are not implemented but looks flexible to add our own code and functionality. The chibimagic webdriver has an awful convention (using underscores vs camel case) which would break our own conventions and we don’t like it that much. We think Lukasz Kolczynski class is the best of them but having to rely an important project to one single guy who could leave the project doesn’t seem as a smart option.
What would you do if this was your project? we can’t afford a QA engineer right now so two of our developers will write the tests for the moment and they know nothing of Java, they would require training in the language and the tools and looks like a good long term option but a very costly one. A lot of people seems to have this same question but I haven’t heard yet a good answer.
In the end what we decided to do was to create our own library to interact with the Selenium Json Wire Protocol and share it to the community.
We aimed to make it as similar as possible with the examples from other language official libraries so any example from Java would have a very similar syntax in php.
Here’s the link, hope it helps someone else: https://github.com/Nearsoft/PHP-SeleniumClient
If you like it share it, get involved, fork it or do as you please.
Regards, Mark.