Class ExtentCucumberAdapter
- java.lang.Object
-
- com.aventstack.extentreports.cucumber.adapter.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 Summary
Constructors Constructor Description ExtentCucumberAdapter(String arg)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddTestStepLog(String message)static voidaddTestStepScreenCaptureFromPath(String imagePath)static voidaddTestStepScreenCaptureFromPath(String imagePath, String title)static com.aventstack.extentreports.ExtentTestgetCurrentScenario()static com.aventstack.extentreports.ExtentTestgetCurrentStep()voidsetEventPublisher(io.cucumber.plugin.event.EventPublisher publisher)
-
-
-
Constructor Detail
-
ExtentCucumberAdapter
public ExtentCucumberAdapter(String arg)
-
-
Method Detail
-
setEventPublisher
public void setEventPublisher(io.cucumber.plugin.event.EventPublisher publisher)
- Specified by:
setEventPublisherin interfaceio.cucumber.plugin.ConcurrentEventListener
-
addTestStepLog
public static void addTestStepLog(String message)
-
addTestStepScreenCaptureFromPath
public static void addTestStepScreenCaptureFromPath(String imagePath) throws IOException
- Throws:
IOException
-
addTestStepScreenCaptureFromPath
public static void addTestStepScreenCaptureFromPath(String imagePath, String title) throws IOException
- Throws:
IOException
-
getCurrentStep
public static com.aventstack.extentreports.ExtentTest getCurrentStep()
-
getCurrentScenario
public static com.aventstack.extentreports.ExtentTest getCurrentScenario()
-
-