4. Testing
Unit test
Tests the smallest unit of functionality
Integration test
Test the result combination functions correctly.
Acceptance test
Tests on the full system
to see whether the application's functionality satisfie
s the specification
7. Behavior-driven Development
A software development process
Emerged from TDD
Focus on “what” to test rather than “how” to test
Use examples to illustrate behavior
Writing test cases in a natural language that non-
programmers can read
Using Domain Specific Language
14. Legacy System
It wasn’t designed with automation in mind
Web elements with no identifier or meaningful
classes
Limited control of the source code
Works, but hard to maintain
16. BDD for legacy system
Think about the capabilities
Group the scenarios
What kind of contexts (the Givens)
What kind of outcomes (the Thens)
The events (the Whens)
30. Recap
BDD isn’t the only way to do testing
Use BDD tools to automate scenarios doesn’t
means you’re doing BDD
Don’t start with tools, start by having
conversations
Don’t stick to the BDD (Gherkin) format to have
conversations