Class ExtentCucumberAdapter

  • All Implemented Interfaces:
    io.cucumber.plugin.ConcurrentEventListener, io.cucumber.plugin.Plugin

    public class ExtentCucumberAdapter
    extends Object
    implements io.cucumber.plugin.ConcurrentEventListener
    A port of Cucumber-JVM (MIT licensed) HtmlFormatter for Extent Framework Original source: https://github.com/cucumber/cucumber-jvm/blob/master/core/src/main/java/cucumber/runtime/formatter/HTMLFormatter.java
    • Constructor Detail

      • ExtentCucumberAdapter

        public ExtentCucumberAdapter​(String arg)
    • Method Detail

      • setEventPublisher

        public void setEventPublisher​(io.cucumber.plugin.event.EventPublisher publisher)
        Specified by:
        setEventPublisher in interface io.cucumber.plugin.ConcurrentEventListener
      • addTestStepLog

        public static void addTestStepLog​(String message)
      • addTestStepScreenCaptureFromPath

        public static void addTestStepScreenCaptureFromPath​(String imagePath)
                                                     throws IOException
        Throws:
        IOException
      • getCurrentStep

        public static com.aventstack.extentreports.ExtentTest getCurrentStep()