Posts

Showing posts with the label #cucumber

Cucumber - BDD Framework

Agenda To understand Cucumber BDD framework and its features. Prerequisite install JDK on your machine >1.7 IntelliJ IDE with plugins - "Cucumber for Java, Gherkin" What is BDD? It's a development approach that can be understood by tech and non tech folks. Usually this is expressed in Given, when, then statements. Gherkin is the language used to achieve this, which let's you describe business scenario. Keywords Test cases are represented as scenario . Preconditions are generally defined in Given . To describe user action we use When To validate output we use  Then To validate negative scenarios use But Lets take a look at an example Scenario: Checkout cart items Given user is on product page When user adds products to cart And click on checkout button Then product items should be displayed in billing page High level business requirement is defined under Feature Ex: Feature: Checkout Feature file is a test suite that contains all scenarios. Step definitions wil...