On Mon, Apr 16, 2012 at 5:14 AM, Gergő Tisza <gtisza(a)gmail.com> wrote:
Not sure what counts as authoritative, but there are a number of fairly
usable
PHP implementations such as php-webdriver [1] from Facebook or
phpunit-selenium
[2] from the PHPUnit framework, both of which are non-complete but very
easy to
extend (and in practice, you don't use most Selenium commands anyway).
I might disagree with both those assertions.
Also, my (admittedly very superficial) experience with BDD is that
Cucumber/Gherkin is much better for acceptance testing
than RSpec (which
is more
suited for unit testing).
Cucumber adds a layer of abstraction I think is unnecessary-- these tests
are to be read by developers, many of whom will not be expert. Rspec is a
nice alternative to xUnit-style assertions, and the standard among Ruby
developers.
That said, if in the future some context were to come along where Cucumber
makes sense, this framework allows adding that level of ATDD easily.
Mink has the additional advantage that it abstracts
away the Selenium
interface
so that Selenium can be replaced with some other browser simulator without
changing the tests; while that doing Selenium-specific things more
complicated,
it can yield huge speedups for test which don't require Javascript and so
Selenium can be replaced with some simple browser emulator.
The point of the exercise is to test browsers, not browser emulators.