Cucumber + JavaIntroduction to Cucumber Installation of CucumberAdding Cucumber dependency to Java project Writing first cucumber test Executing Cucumber tests using Cucumber class Cucumber options Tagging the scenarios Using name option Passing parameters to steps Key – Value pair Datatable Multiple column datatable in Cucumber Scenario Background Scenario outline Running multiple feature files in Cucumber Sharing selenium Webdriver instance using PicoContainer Embedding the screenshot Writing to Cucumber HTML reports Cucumber dependency for using Lambda expressions in Java 8 Cucumber test using Lambda expressions
Introduction to cucumberCucumber is the BDD (Behavior driven development) testing framework. Key things to note about Cucumber are –
- Open source BDD testing framework.
- Cross platform framework.
- Tests are written in various languages like English, French, German and many more using Gherkin Syntax.
- Integrates very well with CI servers like Jenkins and TeamCity
- Reports can be generated in HTML, JSON, JUnit style
- Capybara – the testing framework – is a part of Cucumber
- Integrates very well with frameworks like Selenium, Appium, Spring, Watir, Ruby on Rails etc.
Complex problems, Simple Solutions