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



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

Answer / 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

More Cucumber Ruby Interview Questions

What is cucumber tool?

1 Answers  


What is a scenario in cucumber?

1 Answers  


What software do you need to run a cucumber web test?

1 Answers  


Give an example of behaviour driven test in plain text?

1 Answers  


What is gherkin language?

1 Answers  


Cucumber execution starts from where?

1 Answers  


What does a features/ support file contains?

1 Answers  


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

1 Answers  


Cucumber tests are divided into how many parts?

1 Answers  


Explain when to use rspec and when to use cucumber?

1 Answers  


What are the benefits?

1 Answers  


What are the keywords that we use in cucumber scenario steps?

1 Answers  


Categories
  • Cucumber Selenium Interview Questions Cucumber Selenium (0)
  • Cucumber Ruby Interview Questions Cucumber Ruby (31)
  • Cucumber Interview Questions Cucumber (72)