BDD/BDT using Selenium Webdriver

SandhyaSasi
December 19, 2016

BDD/BDT using Selenium Webdriver

Step by step procedure for writing Behaviour driven tests using Selenium Webdriver, Demo-ed with Cucumber-JVM, java and eclipse. It also talks about why and when BDT.

SandhyaSasi

December 19, 2016

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

19 slides
  1. BDT ❖ If shifts focus from pure test scenarios to

    ‘Specifications’! ❖ Helps capture the behaviour of the application from the point of view of the stakeholders ❖ Lets technical and non-technical stakeholders validate/ contribute to the tests and be on the same page ❖ All about writing executable specifications
  2. Hooks Cucumber supports hooks, which are blocks of code that

    run before or after each scenario Before and After Tagged Hooks
  3. Quick Setup Steps ❖ Create a Java project ❖ Add

    Selenium libraries ❖ Add Cucumber libraries ❖ cucumber-core ❖ cucumber-java ❖ cucumber-junit ❖ cucumber-jvm-deps ❖ cucumber-reporting ❖ gherkin ❖ junit ❖ Install Eclipse Cucumber plugin
  4. When not to choose BDD? ❖ Assess your project before

    you choose BDD ❖ Very short term project ❖ Not many new on-boarding ❖ When you are sure that business will not get involved

More Decks by SandhyaSasi

Other Decks in Technology