简体   繁体   中英

Implementing selenium with Jenkins and PHPUnit

I'm trying to do set up some Selenium WebTests using PHPUnit, but php is no longer supported by Selenium IDE, does this mean I have to re-write all my tests into php in order to use this method?

I'm trying to set up a continuous integration system, but have never even used one before, I tried using jenkins-php.org but it wasn't very helpful.

The newer releasee Selenium IDE "claims" it does not support PHP, But you can still convert your IDE to PHP or PHPUnit.

(In Selenium IDE) Option > Options > Enable Experimental Functions. With this option checked you can switch your format under Options again. You may still want to review your code.

Hope this helps and it is what you meant by "Selenium IDE does not support PHP".

I was able to find: https://addons.mozilla.org/en-US/firefox/addon/selenium-ide-php-formatters/

It allows output from Selenium to PHP, either PHPUnit format or Selenium Testing.

However after all this playing around it became apparent that the best way was to use htmlSuite, it has the most support when it comes to automation and seems to work out of the box, whereas PHPUnit testing requires lots of tinkering.

After a lot of hacking around it became apparent that the best solution is this tool:

http://www.enjoyxstudy.com/selenium/autoexec/index.en.html

It works out of the box, supports htmlSuite, works with windows and linux, runs most browsers, sends email reports, can get new tests from SVN, integrates with Jenkins well, and works with Selenium tests, its not PHP based tests but it works wonders compared to the other tools I tried out.

Really, so much easier, very user friendly, free and works out the box.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM