@Before doesn't execute in java Cucumber Step

前端 未结 7 1691
一生所求
一生所求 2021-02-04 06:19

I\'ve got a Cucumber Step class that i\'m attempting to initialise a page model for all scenarios. So I added a @Before annotated method :

@Before()
private void         


        
7条回答
  •  温柔的废话
    2021-02-04 06:46

    In my case worked the addition of a package where @Before was defined to the glue parameter:

    @CucumberOptions(glue = {"cucumber.hook", "cucumber.steps"})
    

提交回复
热议问题