in Technology by
How Cucumber works?

1 Answer

0 votes
by

By the time the code is ready, test scripts are ready too. The code has to pass the test scripts defined in BDD. If it does not happen, code refactoring will be needed. Code gets freezed only after successful execution of defined test scripts.

BDD

It is a very simple notion, but what we need in order to get this concept implemented. The answer is, Behavior Driven Development (BDD) Framework. Cucumber is one such open source tool, which supports behavior driven development. To be more precise, Cucumber can be defined as a testing framework, driven by plain English text. It serves as documentation, automated tests, and a development aid – all in one.

So what does Cucumber do? It can be described in the following steps −

Cucumber reads the code written in plain English text (Language Gherkin – to be introduced later in this tutorial) in the feature file (to be introduced later).

It finds the exact match of each step in the step definition (a code file - details provided later in the tutorial).

The piece of code to be executed can be different software frameworks like Selenium, Ruby on Rails, etc. Not every BDD framework tool supports every tool.

This has become the reason for Cucumber's popularity over other frameworks, like JBehave, JDave, Easyb, etc.

Cucumber supports over a dozen different software platforms like −

  • Ruby on Rails
  • Selenium
  • PicoContainer
  • Spring Framework
  • Watir

Related questions

0 votes
    What are the advantages of Cucumber Over Other Tools?...
asked Jun 28, 2023 in Technology by JackTerrance
0 votes
    How can we run a selected test from a group of tests in Cucumber?...
asked Jul 22, 2021 in Technology by JackTerrance
0 votes
    How to run Cucumber tests parallelly?...
asked Jul 22, 2021 in Technology by JackTerrance
0 votes
    How does the execution start in Cucumber?...
asked Jul 22, 2021 in Technology by JackTerrance
0 votes
    How to comment the code in Cucumber? What is the importance of comments??...
asked Jul 20, 2021 in Technology by JackTerrance
0 votes
    How does synchronize module works of an Ansible?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    How is Deep Learning works?...
asked Jan 17, 2023 in Technology by JackTerrance
0 votes
    What is a Ping Thread in Jenkins and how it works?...
asked Jul 17, 2021 in Technology by JackTerrance
0 votes
    What is In-process Script Approval and how it works?...
asked Jul 17, 2021 in Technology by JackTerrance
0 votes
    How is Pointer Arithmetic works on Float Pointer?...
asked Jan 24, 2021 in Technology by JackTerrance
0 votes
    How does bitwise operator XOR works?...
asked Jan 18, 2021 in Technology by JackTerrance
0 votes
    Mention how NPN and PNP transistor works?...
asked Dec 14, 2020 in Technology by JackTerrance
0 votes
    How Tube Light Circuit Is Connected And How It Works?...
asked Dec 12, 2020 in Technology by JackTerrance
+1 vote
    How does bitwise operator XOR works in C programming?...
asked Nov 9, 2020 in Technology by JackTerrance
0 votes
    This question already has answers here: Simulating transform-origin using translate (2 answers) Closed 3 years ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
...