Creating Examples for ScenarioOutline in code
问题 I want to dynamically create multiple examples for a ScenarioOutline in a feature file. Is it possible to do this in the @before hook somehow? I know this is not how you're supposed to use cucumber, but how would it be possible? I already tried accesing the Scenario in the hook, but there are no methods to get all steps and their variables/placeholders 回答1: Cucumber doesn't encourage to have examples outside feature file. However there are few non standard way available with cucumber to use