Giridhar Rajkumar
With his 12+ years of experience in test automation, Giridhar has worked with multiple customers in the UK, EU, India and Latin America for a successful transformation.
Giridhar Rajkumar
Test Automation Consultant
https://thetestershub.info | https://learndevtestops.com
giridhar rajkumar
grajk88
BDD - A Collaborative Model
3 Amigos - What is it?
Gherkins - Best Practices
Cucumber for BDD - Demo
Automated Acceptance Tests - Demo
Misunderstandings
Behavior-driven development (BDD) is an Agile software development process that encourages collaboration among developers, QA and non-technical or business participants in a software project. (Wikipedia)
BDD is NOT test automation
• Talks Common Language
• Thinking "from the outside in", in other words implement only those behaviours which contribute most directly to these business outcomes, so as to minimise waste
• Describe behaviours in a single notation which is directly accessible to domain experts, testers and developers, so as to improve communication
Gherkin is a set of grammar rules that are structured enough for all stakeholder to understand the requirements
It is a simple English text language that helps Cucumber tool to interpret and run automated acceptance tests
Documentation of the system behaviour
https://i.ndtvimg.com/i/2016-11/gherkins-620_620x350_81478162225.jpg
Gherkin Scenarios should not be written from the team member like the developer, tester perspective. It should always be user perspective
1. In a given scenario, there should be only one Given, When and Then steps
2. Maximum usage of 2 And steps
3. Scenario should not exceed more than 5 steps
Scenario-Outline
Wrong
Wrong
Right
Wrong
Right
Wrong
Right
1. Testers should write GWTs (Given When Then)
2. BDD means Business Driven Development
3. Gherkins are not your Test Steps
4. BDD means Test Automation
Tidy Gherkin
Cucumber
1. Cucumber with Java -
https://testautomationu.applitools.com/cucumber-java-tutorial/
2. Cucumber with JavaScript -
https://testautomationu.applitools.com/cucumber-javascript-tutorial/
3. BDD with Python -
https://testautomationu.applitools.com/behavior-driven-python-with-pytest-bdd/
By Giridhar Rajkumar
With his 12+ years of experience in test automation, Giridhar has worked with multiple customers in the UK, EU, India and Latin America for a successful transformation.