-
-
Notifications
You must be signed in to change notification settings - Fork 689
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
I am getting below issue, while running cucumber tests. Can anybody help me? #690
Comments
Could you follow the issue template, specifically the part about providing an MVCE (Ideally in the form of a github repo), then a Java maintainer could triage your issue. Also could you check whether you have a backend module on your classpath, as the error indicates |
I am using below code to run the cucumber tests in args passing like this
|
Above mentioned code, For Ant it is working fine. But, I have converted ant to maven project. After that it is not working and getting above mentioned issue. |
As mentioned we need an MVCE, I / other maintainers won't try to cobble together code from copying and pasting. https://stackoverflow.com/help/minimal-reproducible-example Few links to give you some pointers. |
These versions will not work together. You should use the same version of all I also suspect that due to your custom runner you will have to use 1.2.5. Given the amount of customization you have done there is nothing we can do without an MCVE. Please feel free to reopen this issue when you can provide one. |
I have resolved this issue by moving all the code in to maven project structure. |
i am getting this error , please give me the solution 2024-03-12 17:09:29 INFO Log4j:45 - FAILED CONFIGURATION: @BeforeSuite CDMNext.runner.TestRunner.setUpClass FAILED: CDMNext.runner.TestRunner.feature this are the pom.xml
i am using java 21 version |
You're using For guides on upgrading see: https://github.com/cucumber/cucumber-jvm/tree/main/release-notes |
I am using java 8
cucumber-java 4.3.2
cucumber-core 1.2.5
cucumber html -0.2.7
Maven dependencies
Getting below issue. While running cucumber feature files using run configuration.
cucumber.runtime.CucumberException: No backends were found. Please make sure you have a backend module on your CLASSPATH.
at cucumber.runtime.Runtime.(Runtime.java:81)
at cucumber.runtime.Runtime.(Runtime.java:70)
at cucumber.runtime.Runtime.(Runtime.java:66)
at Lib.Controller.Driver.run(Driver.java:305)
at Lib.Controller.Driver.main(Driver.java:213)
at Lib.Controller.ThreadRunner$1.run(ThreadRunner.java:339)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
cucumber.runtime.CucumberException: No backends were found. Please make sure you have a backend module on your CLASSPATH.
at cucumber.runtime.Runtime.(Runtime.java:81)
at cucumber.runtime.Runtime.(Runtime.java:70)
at cucumber.runtime.Runtime.(Runtime.java:66)
at Lib.Controller.Driver.run(Driver.java:305)
at Lib.Controller.Driver.main(Driver.java:213)
at Lib.Controller.ThreadRunner$1.run(ThreadRunner.java:339)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
cucumber.runtime.CucumberException: No backends were found. Please make sure you have a backend module on your CLASSPATH.
at cucumber.runtime.Runtime.(Runtime.java:81)
at cucumber.runtime.Runtime.(Runtime.java:70)
at cucumber.runtime.Runtime.(Runtime.java:66)
at Lib.Controller.Driver.run(Driver.java:305)
No backends were found. Please make sure you have a backend module on your CLASSPATH.
null
No backends were found. Please make sure you have a backend module on your CLASSPATH.
null
No backends were found. Please make sure you have a backend module on your CLASSPATH.
No backends were found. Please make sure you have a backend module on your CLASSPATH.
No backends were found. Please make sure you have a backend module on your CLASSPATH.
at Lib.Controller.Driver.main(Driver.java:213)
at Lib.Controller.ThreadRunner$1.run(ThreadRunner.java:339)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
cucumber.runtime.CucumberException: No backends were found. Please make sure you have a backend module on your CLASSPATH.
at cucumber.runtime.Runtime.(Runtime.java:81)
at cucumber.runtime.Runtime.(Runtime.java:70)
at cucumber.runtime.Runtime.(Runtime.java:66)
at Lib.Controller.Driver.run(Driver.java:305)
at Lib.Controller.Driver.main(Driver.java:213)
at Lib.Controller.ThreadRunner$1.run(ThreadRunner.java:339)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
cucumber.runtime.CucumberException: No backends were found. Please make sure you have a backend module on your CLASSPATH.
at cucumber.runtime.Runtime.(Runtime.java:81)
at cucumber.runtime.Runtime.(Runtime.java:70)
at cucumber.runtime.Runtime.(Runtime.java:66)
at Lib.Controller.Driver.run(Driver.java:305)
at Lib.Controller.Driver.main(Driver.java:213)
at Lib.Controller.ThreadRunner$1.run(ThreadRunner.java:339)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
cucumber.runtime.CucumberException: No backends were found. Please make sure you have a backend module on your CLASSPATH.
at cucumber.runtime.Runtime.(Runtime.java:81)
at cucumber.runtime.Runtime.(Runtime.java:70)
at cucumber.runtime.Runtime.(Runtime.java:66)
at Lib.Controller.Driver.run(Driver.java:305)
at Lib.Controller.Driver.main(Driver.java:213)
at Lib.Controller.ThreadRunner$1.run(ThreadRunner.java:339)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
cucumber.runtime.CucumberException: No backends were found. Please make sure you have a backend module on your CLASSPATH.
at cucumber.runtime.Runtime.(Runtime.java:81)
at cucumber.runtime.Runtime.(Runtime.java:70)
at cucumber.runtime.Runtime.(Runtime.java:66)
at Lib.Controller.Driver.run(Driver.java:305)
at Lib.Controller.Driver.main(Driver.java:213)
at Lib.Controller.ThreadRunner$1.run(ThreadRunner.java:339)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
cucumber.runtime.CucumberException: No backends were found. Please make sure you have a backend module on your CLASSPATH.
at cucumber.runtime.Runtime.(Runtime.java:81)
at cucumber.runtime.Runtime.(Runtime.java:70)
at cucumber.runtime.Runtime.(Runtime.java:66)
at Lib.Controller.Driver.run(Driver.java:305)
at Lib.Controller.Driver.main(Driver.java:213)
at Lib.Controller.ThreadRunner$1.run(ThreadRunner.java:339)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
cucumber.runtime.CucumberException: No backends were found. Please make sure you have a backend module on your CLASSPATH.
at cucumber.runtime.Runtime.(Runtime.java:81)
at cucumber.runtime.Runtime.(Runtime.java:70)
at cucumber.runtime.Runtime.(Runtime.java:66)
at Lib.Controller.Driver.run(Driver.java:305)
at Lib.Controller.Driver.main(Driver.java:213)
at Lib.Controller.ThreadRunner$1.run(ThreadRunner.java:339)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
cucumber.runtime.CucumberException: No backends were found. Please make sure you have a backend module on your CLASSPATH.
at cucumber.runtime.Runtime.(Runtime.java:81)
at cucumber.runtime.Runtime.(Runtime.java:70)
The text was updated successfully, but these errors were encountered: