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