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 void
addTestStepLog(String message)
static void
addTestStepScreenCaptureFromPath(String imagePath)
static void
addTestStepScreenCaptureFromPath(String imagePath, String title)
static com.aventstack.extentreports.ExtentTest
getCurrentStep()
void
setEventPublisher(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:
setEventPublisher
in 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()
-
-