- Can we call a scenario from another scenario in cucumber?
- What is the use of background in cucumber?
- How many feature files are in cucumber?
Can we call a scenario from another scenario in cucumber?
Not really.. but you can use "background" and "scenario outline" in features..
What is the use of background in cucumber?
A Background allows you to add some context to the scenarios that follow it. It can contain one or more Given steps, which are run before each scenario, but after any Before hooks. A Background is placed before the first Scenario / Example , at the same level of indentation.
How many feature files are in cucumber?
One can create as many feature files as needed. To have an organized structure, each feature should have one feature file. The naming convention to be used for feature name, feature file name depends on the individual's choice. There is no ground rule in Cucumber about names.