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
deprecated Main class warning while using Cucumber 6.1.1 #415
Comments
I don't quite understand what's going on here. Is this a warning that is only shown when executing from Eclipse? Do you get the same warning if you run |
The eclipse plugin launches Cucumber via the cli runner and is using the old main method. Line 9 in 606905b
|
If we uninstall Cucumber eclipse plugin then obviously we will not get the option of running Feature File only. |
Hello |
I am also getting similar issue with 4.7.4 version |
Hello Team Any updates on the issue.?I tried with different version such as 5.6.0 and also faced the same issue. |
When I run a feature file directly, I get the same warning in Eclipse 4.17.0 with the Cucumber plugin from the Eclipse Marketplace.
Still getting warnings even for Cucumber versions: 4.4.0, 6.7.0, 5.7.0, and 5.6.0. |
Any update? I have the same problem when upgraded project to cucumber 6.x |
Having the same issue Anyone found any solution for this? |
Having the same issue Anyone found any solution for this pls update |
Jan 16, 2021 2:17:50 AM cucumber.api.cli.Main run VERSION OF CUCUMBER IS 6.9.0 SAME HERE , GETTING ERROR |
I think this is a duplicate of #370. |
Any update on deprecated Main class warning while using Cucumber 6.0 onwards version |
it worked for me when i downgraded my testng dependency version from 7.4.0 to 7.1.0. try adding this dependency to your pom.xml
|
This is a duplicate of #370 |
i am the same problem |
I have the sane problem using Eclipse . My pom.xml is below: ``
`` |
This is not a problem but a warning, there will be no "fix" unless someone opens a PR for this to the We are currently developing a new version of the cucumber-plugin with improved support for more recent cucumber versions, if you like try out the following update-site (please uninstall the old plugin before): |
I am still facing this issue and not getting resolution for this. Can anyone please help me. |
Hi, Sep 14, 2022 12:20:02 PM cucumber.api.cli.Main run If you have any solution here please share here Thanks! |
Please see #415 (comment) |
yes. same issue of deprecated class but my browser is not opening. |
same issue of deprecated class but my browser is not opening. |
Build Path-> check -> Junit is added or not and also check for related libraries -> if not then-> Add libraries -> Add Junit -> Apply and close. try with this. (I have just created demo cucumber project after done with this steps my warning was gone.) |
|
Please recheck feature file, may be you syntactical mistake |
Hi I have the same issue. Can someone help me with latest stable dependencies that might work. My console shows like this: Nov 28, 2023 7:54:51 AM cucumber.api.cli.Main run 0 Scenarios ┌───────────────────────────────────────────────────────────────────────────────────┐ |
After I added all the jars with the specific versions as mentioned in the
video, my issue got resolved. I did this 6 months back. You can also check.
Link- https://youtu.be/d56lRIAwQEI?si=dk_hOfsbHaYRClyT
…On Tue, 28 Nov 2023, 07:59 AshokMarrapu, ***@***.***> wrote:
Hi I have the same issue. Can someone help me with latest stable
dependencies that might work.
My console shows like this:
Nov 28, 2023 7:54:51 AM cucumber.api.cli.Main run
WARNING: You are using deprecated Main class. Please use
io.cucumber.core.cli.Main
0 Scenarios
0 Steps
0m0.057s
┌───────────────────────────────────────────────────────────────────────────────────┐
│ Share your Cucumber Report with your team at https://reports.cucumber.io
│
│ Activate publishing with one of the following: │
│ │
│ src/test/resources/cucumber.properties: cucumber.publish.enabled=true │
│ src/test/resources/junit-platform.properties:
cucumber.publish.enabled=true │
│ Environment variable: CUCUMBER_PUBLISH_ENABLED=true │
│ JUnit: @CucumberOptions(publish = true) │
│ │
│ More information at
https://cucumber.io/docs/cucumber/environment-variables/ │
│ │
│ Disable this message with one of the following: │
│ │
│ src/test/resources/cucumber.properties: cucumber.publish.quiet=true │
│ src/test/resources/junit-platform.properties:
cucumber.publish.quiet=true │
—
Reply to this email directly, view it on GitHub
<#415 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANZWAGWDROHY5WPB5U2MUNDYGVEBTAVCNFSM4OHFNL52U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBSHA4TMMJZGQZA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I am getting following error with latest version of cucumber.
io.cucumber.core.exception.CompositeCucumberException: There were 2 exceptions. The details are in the stacktrace below. |
I have installed Cucumber plugin in latest eclipse version and added dependencies for cucumber 6.1.1 via maven pom.xml
I have added all the necessary dependencies from the Github location :https://github.com/cucumber/cucumber-java-skeleton/blob/master/pom.xml
Now when I am trying to run my feature file which contains a scenario ,I am getting the warning as
Jun 23, 2020 7:03:00 PM cucumber.api.cli.Main run
WARNING: You are using deprecated Main class. Please use io.cucumber.core.cli.Main
And as a result of this somehow execution is failing and my output is:
Jun 23, 2020 7:03:00 PM cucumber.api.cli.Main run
WARNING: You are using deprecated Main class. Please use io.cucumber.core.cli.Main
Scenario: Add a menu item # src/test/java/linkedlearning/cucumbercourse/features/MenuManagement.feature:3
0 Scenarios
0 Steps
0m1.020s
Now in the cucumber-core-6.1.1.jar,I can see that it has
--cucumber.api.cli package which has Main class and I suppose the execution is referring to this instead of
--io.cucumber.core.cli package which has Main class
Console is not showing the usual suggestions of creating steps in step definition file and is blank.
Same I did by using Cucumber 5.6.0
Can you please help.
My pom.xml
4.0.0
Thanks
The text was updated successfully, but these errors were encountered: