How to get all the cucumber scenario steps in before hook?
问题 I want to access all the cucumber scenario steps in @before hook. Is there a way to do this? I have tried passing the cucumber scenario object in the before hook method but it only provides the basic info like scenario.getName() , scenario.getId() . What I require is something like getSteps() which give me the List<String> of all the steps of that particular scenario. What I am looking for is something like this @Before("@dev") public void testcase(Scenario scenario){ for (Step a : scenario