1
我嘗試用科特林我安詳牀框架的測試,但是這並不例如我不能使用科特林的寧靜,BDD
public class EndUserSteps {
var dictionaryPage: DictionaryPage = null!!
@Step
fun enters(keyword: String) {
dictionaryPage.enter_keywords(keyword)
}
@Step
fun starts_search() {
dictionaryPage.lookup_terms()
}
@Step
fun should_see_definition(definition: String) {
assertThat(dictionaryPage.definitions, hasItem(containsString(definition)))
}
@Step
fun is_the_home_page() {
dictionaryPage.open()
}
@Step
fun looks_for(term: String) {
enters(term)
starts_search()
}
}
其他代碼用Java編寫的工作 !
輸出: (net.serenitybdd.core.exceptions.StepInitialisationException:無法創建EndUserSteps步庫:不能繼承final類類ru.tinkoff.atesting.steps.serenity.EndUserSteps)
你能幫助我? 有什麼想法嗎?
你是對的! Modifier *打開*課前,真正解決了啓動問題 – Alex