Cucumber is a framework for writing and executing high-level descriptions of your software’s functionality. It supports Behavior Driven Development (BDD). It offers a way to write tests that anybody can understand, regardless of their technical knowledge. The language that Cucumber understands is called Gherkin. Cucumber itself is written in Ruby, but it can be used to “test” code written in Ruby or other languages, including but not limited to Java, C#, and Python.
An example Gherkin script:
Scenario: Filter the television list
Given some different televisions in the TV listing page
When I visit the TV listing page
And I search for “Samsung” TVs
Then I only see titles matching with Samsung TVs
When I erase the search term
Then I see all television brands again
Leave a Reply