I have the next code:
* def deleteCallResult = call read('classpath:somepath@deleteCall') { id: #(id) }
Then match deleteCallResult.responseStatus == 204
* def getCallResult = call read('classpath:somepath@getCall') { id: #(id) }
Then match getCallResult.responseStatus == 404
Then match getCallResult.response.title == "Not Found"
And would like to put it in afterScenario snippet (without moving it into a separate feature file):
* configure afterScenario =
"""
function(){ ... }
"""
Does Karate syntax allow to do it? Did not find examples