我正在使用Jbehave作爲我的BDD框架。我正在尋找一種方式來自動生成文本場景候選人步法存根像自動生成JBehave中的stext場景的候選步驟方法存根
Given there is a flight
And there is a customer
When the customer books the flight
Then the customer is shown on the manifest
到Java這樣的:
<@> Given("there is a flight")
<[email protected]> Pending
public void thereIsAFlight() {
}
<@> Given("there is a customer") // note 'Given', even though story line is 'And'
<@> Pending
public void thereIsACustomer() {
}
<@> When("the customer books the flight")
<@> Pending
public void theCustomerBooksTheFlight() {
}
<@> Then("the customer is shown on the flight manifest")
<@> Pending
public void thenTheCustomerIsShownOnTheFlightManifest() {
}
不JBehave提供它作爲一個隱含的功能,或者人們使用一些IDE插入 ?我將非常感謝這裏的任何幫助。
這個特性存在於cucumber-jvm中。由於缺乏對應該成爲任何黃金標準bdd測試引擎一部分的功能的支持,我正在考慮切換引擎。 – Ajax 2016-04-10 00:27:20