Karate 获取错误。java.lang.RuntimeException:意外';配置';键:';赛后';

Karate 获取错误。java.lang.RuntimeException:意外';配置';键:';赛后';,karate,Karate,这里有一个类似的代码,我用在 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_companyinstan

这里有一个类似的代码,我用在

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'
[错误]场景:执行get调用,然后进行一些验证

已过:0.005 sJawad-抱歉,我负责过早地为未发布的功能添加文档


“After hooks”在
0.7.0.RC2中提供-如果您可以尝试一下并确认它是否看起来不错,那就太好了。即使它是一个“候选版本”-作为空手道的开发者,我可以确认它应该可以很好地使用-而且当“最终版”到来时(很快),你不会有任何突破性的改变。

我想这样做的方法是在pom中更新它?我会尝试一下并通知你。