• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
TDD in functional testing with WebDriver
 

TDD in functional testing with WebDriver

on

  • 5,762 views

Presentation from ConfeT&QA Online conference (February 2012) about techniques and approaches for successful adoption of TDD (Test Driven Development) in functional tests with WebDriver.

Presentation from ConfeT&QA Online conference (February 2012) about techniques and approaches for successful adoption of TDD (Test Driven Development) in functional tests with WebDriver.

Statistics

Views

Total Views
5,762
Views on SlideShare
3,533
Embed Views
2,229

Actions

Likes
11
Downloads
0
Comments
0

5 Embeds 2,229

http://xpinjection.com 1612
http://seleniumcamp.com 614
http://hghltd.yandex.net 1
http://www.linkedin.com 1
http://translate.googleusercontent.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

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

    TDD in functional testing with WebDriver TDD in functional testing with WebDriver Presentation Transcript

    • TDD with functional testing using WebDriver Mikalai Alimenkou http://xpinjection.com 14.02.2012
    • Background• Java Technical Lead/Scrum Master at Zoral Labs• 7+ years in software development• 5+ years of working by Agile methodologies• Expert in Agile engineering practices• Founder and coach at XP Injection (http://xpinjection.com)• Organizer of Selenium Camp, JEEConf, XP Days Ukraine, IT Brunch conferences
    • When there are no problems nothing should be doneLETS START WITH PROBLEMS!
    • Endless regression testing
    • Duplicated efforts on tests WebDriver Test = Test Case
    • Everybody do manual tests Developers QA engineer Customer
    • TDD is very simple concept but at the same is very hard to doTDD WITH WEBDRIVER
    • TDD is simple cycle
    • Acceptance TDD approach Automated AcceptanceAcceptance Tests criteria Analysis Test Implementation Design Automated Acceptance Acceptance Tests criteria
    • WTF?!?Write tests before UI is ready? Impossible!!!
    • WebDriver test components Get Driver Use Driver Provide Data Use Locators
    • How to provide data? Customer Whole team Acceptance + CriteriaCustomer QA engineer Acceptance Behavior + Tests Samples Whole team Functional Unit Integration Tests Tests Tests
    • How to use locators? Discuss page Use mockup tools structure in details Developer HTML mockup starts from HTML from web designer
    • Locators team conventions Controls by ID Form elements by nameLinks by text List of items (semantic classes)
    • Natural test parts separation To enable reliable stable tests we need to separate all parts as much as possible Reliability Clarity Test Test Data Logic Flexibility Application Maintainability Driver Stability
    • Team can be balancedCustomer QA engineer QA engineer + Test Test Data Logic Application Driver Developers QA engineer
    • DEMO TIME!
    • What about Page Object? search order Index Page Search Page login search filter Main Page open see more Details close Page show me like this
    • DEMO TIME!
    • TDD can not only solve current issues but bring you to the next levelBENEFITS AND SUMMARY
    • Way to success is hard 1. Agree on team rules 2. Break your mind3. Prepare to many issues 4. Relax in TDD environment
    • It is hard! Whatare the benefits?
    • Specify how IT MUST WORK,not how IT WORKS
    • Design with testability in mind No rework Less mistakes Strong guidelines Discussdesign early Good Testable locators design Easier tests
    • Less technical tests Easy to Clear Readable maintain
    • Reduce manual checks
    • Clear Definition of Done@Ignore tests VS iteration test suite
    • Sharedresponsibility for testing is built
    • @xpinjection http://xpinjection.commikalai.alimenkou@xpinjection.com