adspace


What is support, env.rb and hooks.rb?

Answer Posted / Amit Kumar Gautam

Support files (support/ directory) in Cucumber contain common functions used across multiple scenarios. The 'env.rb' file is a configuration file for setting environment variables or initializing specific features. Hooks (before_scenario, after_scenario etc.) are functions that can be defined to run before or after each scenario.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category