TDD • Outside-In Softwareentwicklung • Ziel: „business value“ Maximierung 7 BDD „It describes a cycle of interactions with well-definded outputs, resulting in the delivery of working, testes software that matters.“ Dan North
Titel eines möglichen Szenarios Given die ausgehende Bedingung(en) When die ausgeführte Aktion(en) Then die erwatete Reaktion(en) And Verküpfung von mehreren Zuständen
Login ohne gültige Zugangsdaten Given I am on „/user/login“ When I fill in „name“ with „none-existing-user“ Then I should see „Unknown username…“ And I fill in „pass“ with „password“
should see the text „Administrator“ in the „Joe User“ row When I visit on „admin/people“ | name | mail | roles | | Jane User | [email protected] | | | Joe User | [email protected] | Administrator | And I am logged in as a user with the „Administrator“ role And I should not see the text „Administrator“ in the „Jane User“ row