Cucumber Automation Structure and Workflow
Following is the directory structure of cucumber
| |_ 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.