Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.

Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.

15.
Gherkin
Feature: Some terse yet descriptive text of what is desired
In order to realize a named business value
As an explicit system actor
I want to gain some beneficial outcome which furthers the goal
!
Additional text...
!
Scenario: Some determinable business situation
Given some precondition
And some other precondition
When some action by the actor
And some other action
And yet another action
Then some testable outcome is achieved
And something else we can check happens too
!
Scenario: A different situation
...

18.
Minor pitfall:
• PhantomJS doesn't send this cookie when
doing AJAX
• Fixtures for AJAX would be named after the
URL, which works but isn't as nice
• You have to set the cookie manually in JS again
Selenium

19.
WebDriver
We want this in the SF WebDriver as well
Move it from app_test to AppKernel
Keep app_test.php as entry point for
PhantomJS

25.
Wrap up
PHP-VCR is awesome
But switching all ﬁxtures to PHP-VCR might
be a lot of work
But you don't need to write them
yourselves anymore

26.
Wrap up
Some pitfalls:
• Tests without ﬁxtures
• Setup depending on framework might be diﬃcult
• Not very transparent where data comes from
inside tests
• First test run to write all the ﬁxtures is slow

27.
Wrap up
Would highly recommend it because it
saves you a lot of time, work and nerves