@Before doesn't execute in java Cucumber Step

前端 未结 7 1692
一生所求
一生所求 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:59

    I know this Is an old issue but I found a Solution using the 5.5.0 version of cucumber java: I added the Hooks class into the Steps package, having only the glue="Step classpath" and it worked fine for me :)

    Hope that helps!!

提交回复
热议问题