在scenario ??
中使用方案响应的最佳方法是什么Background:
* configure afterScenario = function(response){if(response.key){ karate.log('key is present');} else{karate.log('key is not present');} }
Scenario: get all users
Given path 'users'
When method get
Then status 200
尝试函数而没有输入参数
* configure afterScenario = function(){if(response.key){ karate.log('key is present');} else{karate.log('key is not present');} }
如果可用于挂钩的response
变量应起作用。