我只是使用JBehave的BDD開始,我有一個很大的問題。 每次斷言失敗時,我的Netbeans環境中都會拋出一個異常,而其他測試不會執行。 但我希望它將此測試標記爲失敗並執行其他測試。 我搜索了很多,但沒有解決我的問題。 故事: Narrative:
In order to manage our stock efficiently
As a logistic employee
我的故事文件包含 鑑於我創建配置文件 的Java文件包含下面的代碼 @Given(I create profile)
@Composite(steps={
"Given I clear existing temp files",
"When I set url as 'url' and input file as 'test.properties'",
})