kneerace / LearnJavaSelenium

this is for learning Git and Java-Seleinum
1 stars 1 forks source link

Feature file creation for Validation of username and Password tab. #19

Open kneerace opened 5 years ago

kneerace commented 5 years ago

Description:- Gradually moving towards the BDD, utilizing cucumber framework. Need to write feature file - utilizing Gherkin language - with possible scenario to validate

  1. Username tab
  2. Password tab.

NOTE:- this is initial feature file so we should start with basics, and if possible include as many possible scenario as possible. to learn more about Gherkin language and feature file writing method, do look into https://docs.cucumber.io/gherkin/reference/

Example:- Feature: Guess the word

The first example has two steps

Scenario: Maker starts a game When the Maker starts a game Then the Maker waits for a Breaker to join

The second example has three steps

Scenario: Breaker joins a game Given the Maker has started a game with the word "silky" When the Breaker joins the Maker's game Then the Breaker must guess a word with 5 characters