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.