What is cucumber testing?

What is cucumber testing?

Cucumber testing is a form of software acceptance testing, or “specification by example” that is used to describe software features using natural language that can be read and executed by a computer. Cucumber’s purpose is to create a common language between business people and developers, allowing business people to write the actual specifications for what they want from the system in a format that can be executed as automated tests.

Cucumber uses a domain specific language (DSL) for creating executable specifications, which are written in plain text file format and follow the Given-When-Then structure. The Given-When-Then format provides a way for business users to specify requirements in plain text, providing a useful framework for collaboration between technical team members and business users.

Cucumber tests can be run in many different ways: from manual execution of text files to integration with web frameworks such as Ruby on Rails.