Discussion:
[Cucumber] [cucumber-jvm] @BeforeStep and @AfterStep Usage example
(too old to reply)
Deena P
2018-08-21 13:50:35 UTC
Permalink
Raw Message
Can anybody provide me some example of @BeforeStep and @AfterStep usages?
Looks like documentation is not
updated https://docs.cucumber.io/cucumber/#beforestep.
I have a requirement of integration ExtentReport v3.x with cucumber-jvm
v3.x. So I want to get the step name and step status, and can be added to
the extentReport.

Thank you.
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Björn Rasmusson
2018-08-21 15:56:15 UTC
Permalink
Raw Message
Looks like documentation is not updated
https://docs.cucumber.io/cucumber/#beforestep.
I have a requirement of integration ExtentReport v3.x with cucumber-jvm
v3.x. So I want to get the step name and step status, and can be added to
the extentReport.
Hook, like @BeforeStep and @AfterStep, are intended for the execution of
test cases from the feature files, not for reporting. Formatters that are
intended for reporting. Therefore use an custom formatter for the
integration with ExtentReport. Have a look at the built in ones in the
source:
https://github.com/cucumber/cucumber-jvm/blob/v3.0.2/core/src/main/java/cucumber/runtime/formatter
Thank you.
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
deena thayalan
2018-08-21 18:03:31 UTC
Permalink
Raw Message
Actually I have another requirement of using it in the test cases. If you
can share some examples of how to use it with test cases or with cucumber
scenarios
Thanks
Post by Björn Rasmusson
Looks like documentation is not updated
https://docs.cucumber.io/cucumber/#beforestep.
I have a requirement of integration ExtentReport v3.x with cucumber-jvm
v3.x. So I want to get the step name and step status, and can be added to
the extentReport.
test cases from the feature files, not for reporting. Formatters that are
intended for reporting. Therefore use an custom formatter for the
integration with ExtentReport. Have a look at the built in ones in the
https://github.com/cucumber/cucumber-jvm/blob/v3.0.2/core/src/main/java/cucumber/runtime/formatter
Thank you.
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to a topic in the
Google Groups "Cukes" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/cukes/OfLjTHHt_v4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
For more options, visit https://groups.google.com/d/optout.
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...