获取错误。 java.lang.RuntimeException:意外的 'configure' 键:'afterScenario'

Getting Error. java.lang.RuntimeException: unexpected 'configure' key: 'afterScenario'

这是我在

中使用的类似代码
Feature: Create a company instance

Background: Creating the company instance in background
* url baseUrl
* def login = call read('classpath:blackbook/common/getToken.feature')
* def newCI = call read('../endpoints/create_companyinstance.feature')
* def id = newCI.response.data.id
* configure afterScenario =
"""
function(){
var ciID = karate.get('id');
console.log(ciID);
}
"""

之后我会运行它。登录调用和 newCI 调用 运行 没问题,但我会收到以下错误

[ERROR] Scenario: Doing a get call and then some verifications  Time 
elapsed: 0.005 s  <<< ERROR!
java.lang.RuntimeException: unexpected 'configure' key: 
'afterScenario'

菜鸟请见谅

Jawad - 抱歉,我负责为未发布的功能过早添加文档。

"After hooks" 在 0.7.0.RC2 中可用 - 如果您可以尝试并确认它看起来不错,那就太好了。尽管它是 "release candidate" - 作为空手道的开发者,我可以确认它应该很好用 - 而且当 "final" 到达(很快)时你不会有任何重大变化。