Functional Testing - Carlos Vences
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Functional Testing - Carlos Vences

on

  • 249 views

Functional Testing for Symfony2

Functional Testing for Symfony2

Statistics

Views

Total Views
249
Views on SlideShare
245
Embed Views
4

Actions

Likes
0
Downloads
4
Comments
0

1 Embed 4

https://twitter.com 4

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Functional Testing - Carlos Vences Presentation Transcript

  • 1. Functional Testing @cvences Thursday, April 24, 14
  • 2. About Me • CarlosVences • carlos@semantic.mx • WebOps Engineer @ Semantic Weapons • 12+ yo experienced troublemaker • #DrupalCampMX #dcmx14 #SymfonyDay Thursday, April 24, 14
  • 3. TDD Quick Intro http://semantic.mx SymfonyDay DF, 2014 Thursday, April 24, 14
  • 4. Test, test, test... • Product Backlog • Poker Planning • User Stories! • Acceptance Criteria • Task Estimation http://semantic.mx SymfonyDay DF, 2014 Thursday, April 24, 14
  • 5. Test Automation • Decoupling! • Mocks define expectations • Stubs replace behavior • I&T • Verification &Validation • System Testing • ...validates against requirements • Describes what the system does... • ...verifies against specification http://semantic.mx SymfonyDay DF, 2014 Thursday, April 24, 14
  • 6. Why? • Best Test Coverage • Mimics Functional QA • Write against client approved User Stories http://semantic.mx SymfonyDay DF, 2014 Thursday, April 24, 14
  • 7. Symfony2 Functional Testing http://semantic.mx SymfonyDay DF, 2014 Thursday, April 24, 14
  • 8. • Test URL’s • Assert on HTTP responses • extends WebTestCase http://semantic.mx SymfonyDay DF, 2014 Thursday, April 24, 14
  • 9. Behavior Driven Development Let’s Spice it up! http://semantic.mx SymfonyDay DF, 2014 Thursday, April 24, 14
  • 10. Behat Extension • Describes a feature • Can be estimated • Inspired by Cucumber & Gherkin • Feature, Scenario, Conditions • In Order to [BV] • As a [Role] • I need to [Feature] http://semantic.mx SymfonyDay DF, 2014 Thursday, April 24, 14
  • 11. Behat Scenarios • Given [Initial context] • And [initial state] • When [Action] • Then [Result] http://semantic.mx SymfonyDay DF, 2014 Thursday, April 24, 14
  • 12. http://semantic.mx SymfonyDay DF, 2014 Thursday, April 24, 14
  • 13. http://semantic.mx SymfonyDay DF, 2014 Thursday, April 24, 14
  • 14. http://semantic.mx SymfonyDay DF, 2014 Thursday, April 24, 14
  • 15. Epic Fail! http://semantic.mx SymfonyDay DF, 2014 Thursday, April 24, 14
  • 16. Tools http://semantic.mx SymfonyDay DF, 2014 Thursday, April 24, 14
  • 17. Tools • BrowserKit • Guzzle HTTP client • DOM Crawler • XPath • TestComplete • Gherkin • Mink • Selenium • Watir http://semantic.mx SymfonyDay DF, 2014 Thursday, April 24, 14
  • 18. Hints http://semantic.mx SymfonyDay DF, 2014 Thursday, April 24, 14
  • 19. Hints http://semantic.mx SymfonyDay DF, 2014 • followRedirect • Test DOM notVisual Designs • In memory SQLite • Shared DB connection • DBUnit • More Setup less TearDown • Authentication Thursday, April 24, 14
  • 20. Thanks! Do nothing until you test first! carlos@semantic.mx SymfonyDay DF, 2014 Thursday, April 24, 14