Cucumber Automation Structure and Workflow

Cucumber Automation Structure and Workflow

Following is the directory structure of cucumber

|_ Project_Directory
|    |_Features
|        |_test.feature
|        |_ step_definitions
|             |_ test.rb
|        |_ Support
|             |_ env.rb
|             |_ hooks.rb

Features: – In features directory, we can write our application features nothing but applications tests in the form of a .feature file in plain text.

step_definitions: – in Step Definitions directory we can write our implementation code (Ruby language code for automating the application) corresponding to .feature file tests.

Support: – This is the file where we can configure our application requirements and support configuration. It has files like env.rb and hooks.rb files to configure our environment.

Comments 2

Your email address will not be published. Required fields are marked *

You may also like

More From: Automation Testing