Reputation: 37658
It seems there is very few comparison between Selenium / WatiN and SimpleTest (which has web testing features too).
I tried Selenium and found the GUI great to create tests as you can see what's going on and record without typing all commands manually.
As for running the tests, Selenium is way more complex than SimpleTest. For SimpleTest you just have to run a PHP script which does all the tests (client or browser side). This means that whatever browser or browser settings you're using, you can simply go to the test URL and it'll work just the same.
What would be useful here are some comments from people that used Selenium or WatiN: Why is Selenium so famous? In other words, what would be the main benefit of using Selenium for example, over SimpleTest?
PS: Please exclude reasons like "SimpleTest requires PHP"; that's pretty obvious is PHP is included in most LAMP anyway.
Upvotes: 10
Views: 3893
Reputation: 4946
Also note that simpletest needs the drupal codebase to be patched. You cannot test your site on an exact mirror of your production site.
Regards.
Upvotes: 0
Reputation: 31931
Just to add another option, TestPlan works with both the Selenium back-end and HTMLUnit, so it can be used with our without a browser. The scripting language is simple and allows fast creation of automation tasks.
The browserless backend supports JavaScript very well, but for those cases where it just doesn't work you just switch to the Selenium mode and use a real browser.
Upvotes: 0
Reputation: 28114
Since SimpleTest only deals with the HTML content of a page you can't test pages with it that rely on JavaScript behavior. At the end of the day it's a speed and functionality tradeoff.
BTW, Selenium can be integrated into a PHPUnit test suite: http://www.phpunit.de/manual/3.1/en/selenium.html
Upvotes: 9
Reputation: 401152
There is a major difference between SimpleTest's web-tester and the Selenium suite :
A couple of consequences and thoughs :
I would recommend a combinaison of both, if you can :
Zend_Test
, if using Zend Framework) :
i.e. use the best of both tools ;-)
Upvotes: 14