Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Receiving error in cucumber4 #26

Open
JeffGaly opened this issue Jun 4, 2020 · 11 comments
Open

Receiving error in cucumber4 #26

JeffGaly opened this issue Jun 4, 2020 · 11 comments

Comments

@JeffGaly
Copy link

JeffGaly commented Jun 4, 2020

02:59:34 [ERROR] - Found neither Cucumber 2.x.x nor Cucumber 4.x runtime in classpath
02:59:34 [WARN ] - Failed to load requirements: Found neither Cucumber 2.x.x nor Cucumber 4.x runtime in classpath
java.lang.RuntimeException: Found neither Cucumber 2.x.x nor Cucumber 4.x runtime in classpath
at net.thucydides.core.requirements.model.cucumber.CucumberParser.loadCucumberFeatures(CucumberParser.java:118) ~[serenity-model-2.0.83.jar:2.0.83]

@wakaleo
Copy link
Member

wakaleo commented Jun 4, 2020

Have you tried with serenity-cucumber5?

@JeffGaly
Copy link
Author

JeffGaly commented Jun 4, 2020

No i haven't tried.But with same cucumber4 i have few projects working fine.

@wakaleo
Copy link
Member

wakaleo commented Jun 4, 2020

This error means you don’t have a cucumber dependency in your project

@JeffGaly
Copy link
Author

JeffGaly commented Jun 4, 2020

I have cucumber java 4.2.0 and serenity cucumber4

@JeffGaly
Copy link
Author

JeffGaly commented Jun 4, 2020

P.S.Im getting this error after the test execution completes and success.

@wakaleo
Copy link
Member

wakaleo commented Jun 4, 2020

It's during report generation. Make sure you have the correct version of cucumber for the version of serenity (see https://github.com/serenity-bdd/serenity-core#what-is-the-latest-stable-version-i-should-use).

@JeffGaly
Copy link
Author

JeffGaly commented Jun 4, 2020

@wakaleo Im utilizing the below

serenity core | serenity-cucumber4 | Cucumber | restassured
2.0.83 | 1.0.21 | 4.2.0|3.3.0

@robertLacasandile
Copy link

Hello @wakaleo any update on this issue? i am encuntering this one even though i already have updated the versions compatible. but my Java version is 17

@wakaleo
Copy link
Member

wakaleo commented Dec 27, 2023

Use the latest versions of the libraries - look at the starter projects to see what these are.

@robertLacasandile
Copy link

we do have restrictions in libraries to be used, that's why we can't use the latest one. here is the versions that we are using:
Serenity core: 2.0.55
Serenity Cucumber 4: 4.2.0
io. cucumber : 1.0.21
this was encountered when I have upgraded my IDE to another version of eclipse.

@wakaleo
Copy link
Member

wakaleo commented Dec 27, 2023

Using such old versions will be a problem for you, particularly if you are moving to Java 17. We could have a look as part of a commercial support package, but there may be library conflicts that can only be resolved by upgrading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants