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 |
What is cucumber tool?
What is a scenario in cucumber?
What software do you need to run a cucumber web test?
Give an example of behaviour driven test in plain text?
What is gherkin language?
Cucumber execution starts from where?
What does a features/ support file contains?
What is support, env.rb and hooks.rb?
Cucumber tests are divided into how many parts?
Explain when to use rspec and when to use cucumber?
What are the benefits?
What are the keywords that we use in cucumber scenario steps?