All Projects → angiejones → bdd-with-test-automation

angiejones / bdd-with-test-automation

Licence: other
This code base shows how to utilize minimalist BDD-style Gherkin files for test automation.

Programming Languages

java
68154 projects - #9 most used programming language
Gherkin
971 projects

Utilizing Good Gherkin for Test Automation

This code base shows how to utilize minimalist BDD-style Gherkin files for test automation. As a good practice, the implementation details are not specified in the Gherkin file, but instead are pushed down to the code level. This allows automation engineers to be free to implement the scenarios as they see fit.

Given this scenario, the tests are automated against the UI, API, and even visual testing, even though the Gherkin steps do not explicitly state this.

Scenario: Withdraw from account when funds are available
    Given a customer has an account
    And the account balance is 100.00 dollars
    When the customer withdraws 10.00 dollars
    Then the account balance should be 90.00 dollars
    And a new transaction should be recorded

Tools used: Java, Selenium WebDriver, Rest-Assured, Cucumber, Applitools

Blog Post: http://angiejones.tech/writing-good-gherkin-enables-good-test-automation/

Video demonstration of this code base can be found as part of the 2019 Automation Guild Conference.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].