提问人:HARSH HALAGALIMATH 提问时间:11/17/2023 最后编辑:James ZHARSH HALAGALIMATH 更新时间:11/17/2023 访问量:32
cucumber 是否支持 java 17 和 spring boot 3.1.5
Does cucumber supports java 17 and spring boot 3.1.5
问:
我们已将 java 版本升级到 17,将 spring boot 升级到 3.1.5
以下是我正在使用的 cucumber 依赖项,
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>7.3.4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-junit</artifactId>
<version>7.3.4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-spring</artifactId>
<version>7.3.4</version>
<scope>test</scope>
</dependency>
尝试运行黄瓜测试用例,但出现以下错误。
023-11-16T18:23:29.448-05:00 INFO 16208 --- [ main] c.f.c.a.l.c.RunCukesIntegrationTestIT : Starting RunCukesIntegrationTestIT using Java 17.0.4 with PID 16208 (started by 4579123 in C:\Users\00000\projects\example)
2023-11-16T18:23:29.451-05:00 INFO 16208 --- [ main] c.f.c.a.l.c.RunCukesIntegrationTestIT : The following 1 profile is active: "mock"
2023-11-16T18:23:29.589-05:00 INFO 16208 --- [ main] c.f.c.a.l.c.RunCukesIntegrationTestIT : Started RunCukesIntegrationTestIT in 0.493 seconds (process running for 1.744)
Scenario: client adds alliance # src/it/resources/features/addAlliance.feature:2
io.cucumber.core.exception.CucumberException: Could not invoke hook defined at 'com.fedex.cnsp.acmt.location.cucumber.alliance.RemoveAllianceSteps.init()'.
It appears there was a problem with the hook definition.
我尝试将黄瓜依赖项升级到最新版本。
并且还尝试了 6.11.0 版的 cucumber-java8,但对我不起作用。
答: 暂无答案
评论