• Slider Banner

    Prepare for

    Technical Interview

    Over .1 Million+ Interview Questions for different profiles

    Read More
  • Slider Banner

    Join the

    Programming World

    Learn about top programming languages, tools and frameworks.

    Read More
  • Slider Banner

    Prepare with

    Certification MCQ

    Practice for certification from 1000+ multiple choice questions.

    Read More

What is the meaning of Steps in Cucumber tool?

The steps are sequences which help in describing how exactly the test scenario will take place. It also defines the preconditions of the test scenario. It consists of the following commands or keywords- 

  • Given - Before starting the tests, all of its conditions is described by this. 
  • When - The actions during Cucumber tests are described by this. 
  • Then - This is the outcome of the actions which took place When.  
  • And - logical representation of the Cucumber test  
  • But - This is same as And but is negative form.  

How can any scenario in the feature file be written?

The Cucumber test scenarios are written with the help of a very simple language in the feature file. This language is known as Gherkin. This simple programming language is also business readable. The behavior and how the software developmental process works are all described with the help of this language. It is specific to a particular domain of programming and all these are described from the perspective of a user. Hence, easy collaboration can be done by non-programmers too and can be easily read.

Subscribe to