jayanth070782
4 years agoNew Contributor
Reusability of Gherkin Feature File
Can we call one feature file scenario in another feature file
Ex: Say we use Login in every Feature file to test scenarios for different application functionalities. To increase reusability we can design login as reusable component i.e. in case of cucumber we could create scenario within feature file just for login and call the file so in case something changes we need to update 1 feature file rather than updating n number of feature file. Is this something possible??
In case if this is not supported and we are writing E2e workflow as scenarios what’s the best practices to reduce maintenance and increase reusability