Posts

Showing posts from July, 2017

Cucumber--@CucumberOptions

There are lot of attributes that are available for @CucumberOptions. I will be sharing some of them in this blog post. Sample Feature file: Feature: Life of IT Tester Scenario Outline: I am a tester Given I am a "<TesterType>" tester When I go to work Then I "<Work_Output>" it And my boss "<Boss_Action>" me But the developer "<Developer_Reaction>" me Examples: |  TesterType  |  Work_Output | Boss_Action | Developer_Reaction | |   Good       |   Complete   |  Salutes    |   hates            | |   Bad        |   Mess       |  Fires      |   Likes            | |   avg        |   sufficient |  encourages |   respects         | 1. Strict: (true|false) Just develop the Runner class and a feature file. import org.junit.runner.RunWith; import cucumber.api.CucumberOptions; import cucumber.api.junit.Cucumber; @RunWith(Cucumber.class) @CucumberOptions(strict=true) public class Cucumberru