Disclaimer: I&#x27;m the creator of Cucumber.<p>The biggest problem with Cucumber is that most people trying it out don&#x27;t understand what it is.<p>Cucumber is not a tool for testing software. It is a tool for testing people&#x27;s understanding of how software (yet to be written) should behave.<p>Most bugs and delays caused by rework arise from misunderstandings, and this is the problem Cucumber aims to solve.<p>Cucumber is a tool that facilitates collaboration and software design (especially domain-driven design).<p>Here is how it works: You pop a story off your backlog and run a 20 min. meeting (Discovery Workshop) with business folks (BAs, POs, domain experts) and IT folks (developers, UX, testers if you have them).<p>You have a conversation about the story and come up with some concrete examples to describe the various acceptance criteria for your stories. Not in Cucumber&#x27;s Gherkin language - just in plain conversational language.<p>For example: &quot;The one where I upload a picture that is too big&quot;. Or: &quot;The one where there are five taxis in range&quot;. These conversations act as catalysts to uncover subtle details where business and IT might have a different understanding.<p>Two things can happen at the end of this short meeting. You ask people to do a thumbs-up or thumbs-down vote on whether they understand everything that needs to be done, and whether the story is small enough. If enough people give a thumbs down, you send the story back for further analysis, maybe breaking it up into something smaller. If it&#x27;s mostly thumbs-up, you&#x27;re good to go.<p>After the 20 min. meeting you have 2-5 concrete examples that a developer (and perhaps a tester) can flesh out in more detail using Gherkin (Given-When-Then) to make it even more concrete. For example:<p><pre><code>  Scenario: Close taxis with higher rating win 
    Given taxi A with rating 0.8 is 1400m from the customer
    And taxi B with 0.9 is 1500m from the customer
    When the customer requests a taxi
    Then taxi B should be assigned
</code></pre>
The dev shows the example to the business person, who confirms that this is right (or wrong).<p>Now, the developer follows the regular TDD workflow, using the Scenario to guide the development of the core domain logic. The Cucumber scenario doesn&#x27;t go through a UI using Selenium WebDriver or similar. The domain logic is implemented in such a way that external services, message queues and databases are stubbed out.<p>Lower level unit tests are still written, and there are far more of those than Cucumber Scenarios.<p>Cucumber is there to make sure you write the right code.<p>Unit testing tools are there to make sure you write the code right.<p>Using UI testing tools together with Cucumber? Please don&#x27;t - or at least do it very sparingly. UI tests are expensive to maintain (the UI is more volatile than your core domain). They are slow (2-3 orders of magnitude slower than test talking directly to the domain logic). And finally - when they fail they don&#x27;t tell you where the bug is.<p>The purpose of Cucumber is to bridge the communication gap between business and IT by providing a small set of essential scenarios to illustrate core behaviour of unwritten software. These scenarios do become regression tests, but their real value is to prevent defects by uncovering bad assumptions up-front. You end up with executable, living documentation accessible to everyone on the team. -Documentation of how the software should behave - and how it actually behaves.