0
我serenity.properties这样的配置文件:没有截图由宁静试运行后拍摄
serenity.take.screenshots = BEFORE_AND_AFTER_EACH_STEP
webdriver.driver = "chrome"
我也有PageObjects,步骤层和测试模块
我的摇篮上生成文件的样子:
group 'com.am'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'net.serenity-bdd.aggregator'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
}
buildscript {
repositories {
mavenLocal()
jcenter()
}
dependencies {
classpath("net.serenity-bdd:serenity-gradle-plugin:1.4.0")
}
}
dependencies {
compile 'net.serenity-bdd:serenity-core:1.4.0'
compile 'net.serenity-bdd:serenity-junit:1.4.0'
compile 'junit:junit:4.12'
compile 'org.assertj:assertj-core:1.7.0'
compile 'org.slf4j:slf4j-simple:1.7.7'
compile group: 'net.serenity-bdd', name: 'serenity-rest-assured', version: '1.4.0'
compile group: 'org.jsoup', name: 'jsoup', version: '1.8.3'
compile 'ru.yandex.qatools.htmlelements:htmlelements-all:1.17'
}
gradle.startParameter.continueOnFailure = true
当我运行测试,以简单的命令
gradle clean test aggregate
生成报告,但没有任何屏幕截图。
我的报告是这样的:
有谁请给出一个建议我在哪里错了? 我认为这是一个简单的,但我不明白在哪里... 在所有的手册中,它说默认情况下截图默认情况下,但我没有任何。
此外,我通过@RunWith(SerenityRunner运行测试。类) –
你可以看看为报告呈现生成的json文件吗?这可能会给你一个洞见 – Saurabh