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.
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
TDD in functional testing with WebDriver
1. TDD with functional testing using
WebDriver
Mikalai Alimenkou
http://xpinjection.com
14.02.2012
2. 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
3. When there are no problems nothing should be done
LETS START WITH PROBLEMS!
12. How to provide data?
Customer Whole team
Acceptance
+ Criteria
Customer QA engineer
Acceptance Behavior
+ Tests Samples
Whole team
Functional Unit Integration
Tests Tests Tests
13. How to use locators?
Discuss page
Use mockup tools structure in details
Developer HTML mockup
starts from HTML from web designer
14. Locators team conventions
Controls by ID
Form elements
by name
Links by
text
List of items
(semantic classes)
15. 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
16. Team can be balanced
Customer QA engineer QA engineer
+
Test Test
Data Logic
Application
Driver
Developers QA engineer