So I need to get the test step descriptions after the gherkin syntax
Feature: User trades stocks Scenario: User requests a sell before close of trading Given I have 100 shares of MSFT stock And I have 150 shares of APPL stock And the time is before close of trading
So what I really need is to get the
I have 100 shares of MSFT stock
I have 150 shares of APPL stock
the time is before close of trading
I found these as I update the cucumber to v5.0.0-RC1:
Can someone help me with a snippet? What is the object that needs to be passed to the AfterStep and BeforeStep?
gherkin.ast.Step, the way to access it is through a custom formatter. ImplementEventListenerorConcurrentEventListenerand setup handlers for different events u are interested in. Have a look at the HTMLFormatter - github.com/cucumber/cucumber-jvm/blob/master/core/src/main/java/…