Dwarves
Memo
Type ESC to close search bar

Behavior Driven Development

Behavior Driven Development (BDD) Three Practices

- Feature: User Login
*As a user I want to login into the Company's website using my existing account so that I can use other features*
- Scenario Outline: Login with valid credential
Given I navigate to <Company Login Page>
When I input <Username>
and I input <Password>
and I click Login Button
Then I should be able to login successfully
- Examples:
| Email | Password
| abc@company.info | password 1
| abc2@company.info | Password@

Personal note on implementing BDD and TDD:

  • Mistakes are that people only implement BDD/TDD practices at Testing phase when they implemented automation test. However it should be as early as possible. Using “BDD” to only cover automation test is not BDD.
  • BDD helps products and developers realize different scenarios of a same feature, then cover as much as they could at requirement and implementation phase.
  • BDD borrows * ubiquitous language * concept from domain driven design so that everyone in the team can understand the term the same way.

Source: https://cucumber.io/docs/bdd/