Code Monkey home page Code Monkey logo

Comments (13)

paulohg6 avatar paulohg6 commented on July 22, 2024 6

I Have the same problem. but its not problem of the project. In stack overflow has the solution:

In the official SmartBear forum, the creator and lead developer of Cucumber Open says:

"You can safely ignore this warning. All it means is that cucumber-eclipse has not yet been updated to use Cucumber's new package structure. We have an open issue about this. If you feel strongly about it you can help us by submitting a pull request to cucumber-eclipse."

https://community.smartbear.com/t5/Cucumber-Open/deprecated-Main-class-error-while-using-Cucumber-6-1-1/td-p/203642

I copy this of: https://stackoverflow.com/questions/57177823/exception-in-thread-main-after-updating-cucumber-version

from cucumber-java-skeleton.

huhmione avatar huhmione commented on July 22, 2024 3

If you guys are getting message "0 Scenario 0 Steps" with "You are using deprecated Main class. Please use io.cucumber.core.cli.Main" , just check scenario syntax in the feature file such as Scenario: (colon without white space) and only one white space after Given, And, Then. It's not main class issue, just syntax of feature file issue.

from cucumber-java-skeleton.

aslakhellesoy avatar aslakhellesoy commented on July 22, 2024 1

Thanks for repeating my explanation @paulohg6 - closing this.

from cucumber-java-skeleton.

forcefeeld avatar forcefeeld commented on July 22, 2024 1

Editing the run configuration under the 'Run/Debug Configuration' menu in IntelliJ resolved it for me. The main class was set to cucumber.api.cli.Main and I changed it to io.cucumber.core.cli.Main. Found the answer here.

from cucumber-java-skeleton.

Arundattkaushik avatar Arundattkaushik commented on July 22, 2024

Jun 26, 2022 11:14:19 AM cucumber.api.cli.Main run
WARNING: You are using deprecated Main class. Please use io.cucumber.core.cli.Main

Scenario: Launch browser # src/test/resources/features/QA.feature:4

0 Scenarios
0 Steps
0m0.551s

?????????????????????????????????????????????????????????????????????????????????????
? 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 ?
?????????????????????????????????????????????????????????????????????????????????????

from cucumber-java-skeleton.

Arundattkaushik avatar Arundattkaushik commented on July 22, 2024

Please, Someone help me solve above mentioned issue !!

from cucumber-java-skeleton.

ajairaina avatar ajairaina commented on July 22, 2024

Did u get the answer??? pls help me

from cucumber-java-skeleton.

sunilsds avatar sunilsds commented on July 22, 2024

You are using deprecated Main class. Please use io.cucumber.core.cli.Main
any solution.

from cucumber-java-skeleton.

reena112556 avatar reena112556 commented on July 22, 2024

Did anyone get a solution please post a solution here

from cucumber-java-skeleton.

mlvandijk avatar mlvandijk commented on July 22, 2024

See the comment above from @paulohg6 with a link to StackOverflow @reena112556 @sunilsds @ajairaina @Arundattkaushik

from cucumber-java-skeleton.

manthan027 avatar manthan027 commented on July 22, 2024

While i was adding features and gave compile facing this issue . Please help me on this

Apr 30, 2023 8:42:46 AM cucumber.api.cli.Main run
WARNING: You are using deprecated Main class. Please use io.cucumber.core.cli.Main

Scenario: Testing Signup Functionality # src/test/resources/Feature/Signup.feature:3

0 Scenarios
0 Steps
0m0.518s

?????????????????????????????????????????????????????????????????????????????????????
? 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 ?
?????????????????????????????????????????????????????????????????????????????????????

from cucumber-java-skeleton.

jakkambusyqa avatar jakkambusyqa commented on July 22, 2024

If you guys are getting message "0 Scenario 0 Steps" with "You are using deprecated Main class. Please use io.cucumber.core.cli.Main" , just check scenario syntax in the feature file such as Scenario: (colon without white space) and only one white space after Given, And, Then. It's not main class issue, just syntax of feature file issue.

GoodOne Helpful.

from cucumber-java-skeleton.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.