首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Serenity Cucumber Spring版本兼容性

Serenity Cucumber Spring版本兼容性
EN

Stack Overflow用户
提问于 2018-01-17 13:39:56
回答 1查看 839关注 0票数 1

我正在尝试将Serenity与Cucumber和Spring一起使用,但由于此异常,我无法启动应用程序:

代码语言:javascript
复制
org.openqa.selenium.interactions.internal.Locatable

下面是我的build.gradle的样子:

代码语言:javascript
复制
buildscript {
    ext {
        springBootVersion = '1.5.8.RELEASE'
    }
    repositories {
        // Nexus Repository
    }
    dependencies {
        ...
        classpath("net.serenity-bdd:serenity-gradle-plugin:1.8.21")
    }
}

...
apply plugin: 'org.springframework.boot'
apply plugin: 'net.serenity-bdd.aggregator'

sourceCompatibility = 1.8

repositories {
    // Nexus Repository
}

dependencies {
    ...
    testCompile group: 'net.serenity-bdd', name: 'serenity-spring', version: '1.8.21'
    testCompile group: 'net.serenity-bdd', name: 'serenity-cucumber', version: '1.6.10'

    testCompile group: 'junit', name: 'junit', version: '4.12'
    testCompile('org.springframework.boot:spring-boot-starter-test')

}

gradle.startParameter.continueOnFailure = true

对于依赖项,我只能访问私有的Nexus,serenity-spring的最新版本是1.8.21serenity-cucumber的最新版本是1.6.10

下面是Runner类的外观:

代码语言:javascript
复制
@RunWith(CucumberWithSerenity.class)
@CucumberOptions(
        features = "src/test/resources/features",
        format = {"pretty","html:report"},
        glue = "<ommited>"
)
public class CucumberTestRunner {
}

我只能找到这个似乎已经过时的文档:http://thucydides.info/docs/serenity-staging/#_building_serenity_projects_in_gradle

EN

回答 1

Stack Overflow用户

发布于 2018-01-17 15:56:05

这看起来像是与Selenium不兼容的版本。但使用serenity-cucumber 1.6.10也会更明智。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48294263

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档