Extracting Cucumber Step name at runtime

后端 未结 6 2116
一生所求
一生所求 2021-01-18 21:03

I am trying to find out if there is an option to figure out the cucumber step currently getting executed, I am trying to perform certain action depending on the step name.

6条回答
  •  感动是毒
    2021-01-18 21:31

    Just wait for Cucumber 3.0.0 release, you can access the step names using @AfterStep and @BeforeStep Annotations.

    https://github.com/cucumber/cucumber-jvm/blob/master/CHANGELOG.md https://github.com/cucumber/cucumber-jvm/pull/1323

    Thanks to Aniket (Coding-Yogi) https://github.com/coding-yogi

提交回复
热议问题