reportportal / agent-java-cucumber5

Cucumber JVM version [5.0.0; 6.0.0) adapter
Apache License 2.0
1 stars 2 forks source link

Support for Cucumber-Java 5+ #4

Closed dipanjan-it closed 4 years ago

dipanjan-it commented 4 years ago

Hello,

Could you please let us know when can we expect an updated version of agent to support Cucumber-Java 5 version? We have upgraded our framework to use 5.6.0 version of Cucumber-Java and seems like the agent is not compatible with it.

Thanks!

HardNorth commented 4 years ago

Which agent version you tried to use?

dipanjan-it commented 4 years ago

Tried with the following version

agent-java-cucumber
        <version>5.0.0-BETA-10</version>

Error message - io.cucumber.core.exception.CucumberException: Couldn't load plugin class: com.epam.reportportal.cucumber.ScenarioReporter. It does not implement io.cucumber.plugin.Plugin

Tried with the following version

agent-java-cucumber4
                   <version>5.0.0-BETA-10</version>

Error message - io.cucumber.core.exception.CucumberException: Couldn't load plugin class: com.epam.reportportal.cucumber.ScenarioReporter Caused by: java.lang.NoClassDefFoundError: cucumber/api/event/ConcurrentEventListener Caused by: java.lang.ClassNotFoundException: cucumber.api.event.ConcurrentEventListener

Probable cause of the error - ConcurrentEventListener interface is no longer available from cucumber.api.event. Rather it's available form io.cucumber.plugin in the latest version of Cucumber.

HardNorth commented 4 years ago

@dipanjan-it Well, OK. I'll put it into my list. You have three options here: wait for uncertain amount of time, downgrade cucumber 5 version to a point when it become compatible with agent-java-cucumber4 or provide yours implementation.

Naumansh commented 4 years ago

I am facing same problem with cucumber version 5 +. io.cucumber.core.exception.CucumberException: Couldn't load plugin class: com.epam.reportportal.cucumber.ScenarioReporter Caused by: java.lang.NoClassDefFoundError: cucumber/api/event/ConcurrentEventListener Caused by: java.lang.ClassNotFoundException: cucumber.api.event.ConcurrentEventListener

HardNorth commented 4 years ago

It's still in the process of the implementation but there is an alpha version.

HardNorth commented 4 years ago

https://github.com/reportportal/agent-java-cucumber5/releases/tag/5.0.0-RC-1