BDD Cucumber - sonnettest/TestAutomation GitHub Wiki

It enables business users to design test scripts using stories. These stories in turn runs the scripts designed using selenium webdriver. We can reuse selenium webdriver test scripts for descriptive approach as well as for BDD.

Feature: POC for Spotlight

Background: Opening the Browser and navigating to particular site

`Given I Open ff browser`

Scenario: Buy gift Card

When I select a Gift Card

`And add that product to the cart`

And I pay through Credit Card with giftCard

And Complete Booking

Then I verify the Email Address

Scenario Outline: Order booking as Guest User

`Given Product Page is Opened  with **<Rownum>**`

`When I select a product`

`And do checkout`

And login as Guest User

`And I pay through Credit Card with "productData"`

`Then Click on Submit`

 Scenario: Order MUltiple Products with Registered User
  Given Product Page is Opened with "1"
  When I select a product
  And Open Second Product Page with "1"
 When I select a product
  And do checkout
 And login as Registered User
 And I pay through Credit Card with "productData"
 Then Click on Submit
 
Examples: 
  | Rownum |
  | 1      |
  | 2      |
  | 3      |

`

⚠️ **GitHub.com Fallback** ⚠️