logo
Tags down

shadow

cucumber.runtime.CucumberException: Couldn't load plugin class: com.cucumber.listener.ExtentCucumberFormatter


By : Tru Lance
Date : October 17 2020, 06:10 AM
I hope this helps . I'm having this similar issue, and to solve it I've changed the plugin in @CucumberOptions:
code :
@CucumberOptions(
        plugin = { "com.vimalselvam.cucumber.listener.ExtentCucumberFormatter:path/report.html"}
)


Share : facebook icon twitter icon

cucumber.runtime.CucumberException: Couldn't load plugin class: io.qameta.allure.cucumberjvm.AllureCucumberJvm


By : hasnainiftikhar
Date : March 29 2020, 07:55 AM
wish help you to fix your issue The problem is that you are using old allure-cucumber-jvm-adaptor dependency. The correct one is
code :
<dependency>
    <groupId>io.qameta.allure</groupId>
    <artifactId>allure-cucumber-jvm</artifactId>
    <version>2.0-BETA16</version>
</dependency>

Getting cucumber.runtime.CucumberException: Couldn't load plugin class: prettty while running cucmber script using Testn


By : Terje
Date : March 29 2020, 07:55 AM
With these it helps Typo in 'prettty' in your runner class. Should be modified as below which means you will get a nice html report at the end of the test run.
code :
plugin= {"json:target/RunCuke/cucumber.json",
                "pretty","html:target/RunCuke/cucumber.html",
                "com.cucumber.listener.ExtentCucumberFormatter"},

cucumber.runtime.CucumberException: Couldn't load plugin class: json-pretty with Cucumber Selenium and Java


By : Hakan KELEŞ
Date : March 29 2020, 07:55 AM
I wish this helpful for you Seems you were pretty close.
You need to change the plugin definations as follows:
code :
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;

@RunWith(Cucumber.class) 
@CucumberOptions( plugin={"pretty:target/cucumber-htmlreport.text", "json:target/cucmber-report.json"})

public class CucumberTest { //codes }

Error In Cucumber Extend report(java.lang.ClassNotFoundException: com.cucumber.listener.ExtentCucumberFormatter)


By : mkael
Date : March 29 2020, 07:55 AM
Hope this helps I am new in selenium. I want to generate extend report using cucumber. But I am always getting error , Problem Statement Analysis -
code :
<dependency>
    <groupId>com.vimalselvam</groupId>
    <artifactId>cucumber-extentsreport</artifactId>
    <version>3.1.1</version>
</dependency>


<dependency>
    <groupId>com.aventstack</groupId>
    <artifactId>extentreports</artifactId>
    <version>4.0.9</version>
</dependency>
 @RunWith(Cucumber.class)
    @CucumberOptions(
            features = {"src/test/resources/features"},
            glue = {"com.cucumber.stepdefinitions"},
            plugin = {"com.cucumber.listener.ExtentCucumberFormatter:output/report.html"}
            )
    public class RunCukesTest {
        @AfterClass
        public static void teardown() {
            Reporter.loadXMLConfig(new File("src/test/resources/extent-config.xml"));
            Reporter.setSystemInfo("user", System.getProperty("user.name"));
            Reporter.setSystemInfo("os", "Mac OSX");
            Reporter.setTestRunnerOutput("Sample test runner output message");
        }
    }
<dependency>
    <groupId>com.aventstack</groupId>
    <artifactId>extentreports-cucumber4-adapter</artifactId>
    <version>1.0.6</version>
</dependency>
@RunWith(Cucumber.class)
@CucumberOptions(plugin = {"com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:"})
public class RunCukesTest {
    // ..
} 
<dependency>
    <groupId>io.cucumber</groupId>
    <artifactId>cucumber-junit</artifactId>
    <version>4.2.6</version>
    <scope>test</scope>
</dependency>

<dependency>
    <groupId>io.cucumber</groupId>
    <artifactId>cucumber-picocontainer</artifactId>
    <version>4.2.6</version>
    <scope>test</scope>
</dependency>

Getting error "cucumber.runtime.CucumberException: Couldn't load plugin class: com.cucumber.listener.ExtentCucumber


By : Christine Joy Dorias
Date : March 29 2020, 07:55 AM
like below fixes the issue After many days searching for a solution to this problem that was also happening to me, I discovered the cause (at least that worked for me). Apparently, the pluggin com.cucumber.listener.ExtentCucumberFormatter or com.vimalselvam.cucumber.listener.ExtentCucumberFormatter (for cucumber-extentreports version 3.1.1+) only works with the cucumber of the info.cukes package.
code :
<! - https://mvnrepository.com/artifact/info.cukes/cucumber-java ->
<dependency>
<groupId>info.cukes</ groupId>
<artifactId>cucumber-java</artifactId>    
<version>1.2.5</ version>
</dependency>
<dependency>
<groupId>com.aventstack</groupId>
<artifactId>extentreports-cucumber4-adapter</artifactId>
<version>1.0.7</version>
</dependency>
Related Posts Related Posts :
  • Kentico 12 MVC - Customize BizForm response
  • AutoHotkey: list all open windows
  • Docompose tag by its content/text
  • Make concat_lines_of( ) work for rawstring
  • Naming steps as Tasks vs Statuses in Process Design
  • Why is a true value rendered as "value"?
  • JSON Validate check based on response from arrayElement
  • Is it posible to have multiple grapesjs instances on the same page?
  • How to show commands being executed in fish shell function
  • How group patterns are evaluated/joined in SPARQL
  • Understanding mariadb deadlock
  • SaveOptions field not being honored..is my solution correct?
  • How does one easily install Nvidia drivers for Google's container-optimized OS?
  • Uber trips endpoint throwing HTTP 500
  • Vaadin Flow: setting the title
  • N/query column definition
  • How to check if text exists in Testcafe
  • How to rotate a glTF model on the spot in A-Frame?
  • How can I install vs-code-server manually and tell vs-code-remote?
  • How can I delete all tables from a Firebird 3.0 database using single query?
  • GraphQl and insomnia desktop clients not working with graphql.org/swapi-graphql
  • Getting single report from openvas using omp xml command with filter
  • Traversal of basic linked list using Java 8 Lambda and Streams
  • How to prevent non-approved 3rd Party SPA access to resource when using OAuth 2.0 for authorisation?
  • How to get elevation profile data from Mapbox?
  • Why scikit learn confusion matrix is reversed?
  • Include blazor component into MVC view (.NET Core 3 Preview #5)
  • How to fix this error duplicate class found in module class.jar
  • what does STREAM memory bandwidth benchmark really measure?
  • terraform.tfvars vs variables.tf difference
  • How to convert keras LSTM to pytorch LSTM?
  • How can I change the placeholder color in Ant Design's Select component?
  • Flutter listView builder keeps giving this error: "RangeError (index): Invalid value: Not in range 0..19, inclusive
  • In NIFI how to convert from CSV to JSON without CSV header
  • How can we show multiple items with Bootstrap-Vue Carousel?
  • Webdriverio wait until visible
  • Route parameter not working in zend-expressive
  • change Start address .hex in atmel studio7
  • How to access my D:\ drive from the Ubuntu command line on Windows 10
  • dhall-to-yaml: representing unstructured blocks nested within structured yaml
  • Why do I get EnvironmentNotWritableError while installing eli5
  • Can a node be in two different fabric network?
  • Tax Rate in new Stripe Checkout
  • How do I get Space info on objects above the space's ceiling?
  • ESQL String Splitter Functions For Splitting Delimited Strings
  • Installed gurobi , not refelecting when importing
  • what's difference of readQueue and writeQueue
  • FixInputPort attempts to connect wrong port
  • How to respond to events caused by users differently to those caused by periodic callbacks?
  • how to iterate on column in pyspark dataframe based on unique records and non na values
  • AttributeError: 'numpy.ndarray' object has no attribute 'fit' when calling fit_transform on a pipeline
  • How to remove rows from pyspark dataframe using pattern matching?
  • Question to any embedded systems engineers out there using STM32 NUCLEO
  • Access application.properties value in thymeleaf template
  • Having difficulties to login in JetBrains account
  • Why is nomad listening on port 80?
  • How to copy from Sublime Text 3 with formatting?
  • Technical Implementation OPC UA
  • Nomad configuration for single node to act as production server and client
  • Send emails using Strapi
  • shadow
    Privacy Policy - Terms - Contact Us © 35dp-dentalpractice.co.uk