简体   繁体   English

当我使用junit Cucumber运行TestRunner类时,出现以下错误:

[英]When I'm running TestRunner class using junit Cucumber , i 'm getting Below error:

java.lang.NoClassDefFoundError: gherkin/IGherkinDialectProvider
at cucumber.runtime.RuntimeOptionsFactory.create(RuntimeOptionsFactory.java:23)

I have used cucumber-java-4.2.0,cucumber-junit-4.2.0,cucumber-core-4.2.0,junit-4.12, and gherkin 2.1.12. 我使用了黄瓜java-4.2.0,黄瓜Junit-4.2.0,黄瓜核心4.2.0,junit-4.12和小黄瓜2.1.12。

And, when used gherkin 5.1.0, getting below error" 而且,使用小黄瓜5.1.0时,出现以下错误”

java.lang.NoClassDefFoundError: 
io/cucumber/datatable/dependency/com/fasterxml/jackson/databind/JavaType
at io.cucumber.datatable.DataTableType.<init>(DataTableType.java:78)
at io.cucumber.datatable.DataTableTypeRegistry.<init> 
(DataTableTypeRegistry.java:27)
at io.cucumber.stepexpression.TypeRegistry.<init>(TypeRegistry.java:22)
at 

This is due to the jar version too high, you can change a low version. 这是由于jar版本太高,您可以更改一个低版本。 such as change 4.3.1 to 4.0.0 . 例如将4.3.1更改为4.0.0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Jboss应用程序正在运行(war文件)低于错误。 我正在使用windfly / jboss 10版本 - Jboss application running(war file) getting below error. I'm using windfly/jboss 10 version 我在Selenium中的代码下面收到错误 - I'm getting the error below code in Selenium 运行此代码时出现问题,我收到了 a.class 错误 - Having issues running this code, I'm getting a .class error 运行Maven黄瓜测试,我得到以下错误没有为此构建指定目标 - Running Maven Cucumber Test, I'm getting following error No goals have been specified for this build 我正在使用JSP与NetBeans,我收到以下错误 - I'm using JSP with NetBeans and I'm getting the following error 尝试运行我的应用时,我在下面收到此错误 - While trying to run my app I m getting this error below 当我在 android 中使用 Bitmap 压缩图像时出现错误 - I'm getting error when I'm compress the image using Bitmap in android 使用Netbeans时出现此错误pls 103103 - I'm getting this error pls 00103 when using netbeans 我在下面的代码中得到org.junit.platform.commons.PreconditionViolationException - I'm getting org.junit.platform.commons.PreconditionViolationException in the code below 使用Selelnium时,我收到了一个错误 - While using Selelnium, i'm getting an error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM