空手道 - 像响应一样访问请求的变量
Karate - Variable to access request just like response
空手道中是否有类似响应请求的变量。我试图查看 github 问题并找到了以下示例,但这似乎对我不起作用。
* def temp = (karate.lastRequest)
* print '==============>' +(temp.body)
* def temp = karate.prevRequest
* def requestMethod = temp.method
* def requestBody = temp.body
请查找更多示例here
空手道中是否有类似响应请求的变量。我试图查看 github 问题并找到了以下示例,但这似乎对我不起作用。
* def temp = (karate.lastRequest)
* print '==============>' +(temp.body)
* def temp = karate.prevRequest
* def requestMethod = temp.method
* def requestBody = temp.body
请查找更多示例here