【发布时间】:2020-06-15 13:05:38
【问题描述】:
在空手道中是否有类似响应请求的变量。我试图查看 github 问题并找到以下示例,但这似乎对我不起作用。
* def temp = (karate.lastRequest)
* print '==============>' +(temp.body)
【问题讨论】:
标签: karate
在空手道中是否有类似响应请求的变量。我试图查看 github 问题并找到以下示例,但这似乎对我不起作用。
* def temp = (karate.lastRequest)
* print '==============>' +(temp.body)
【问题讨论】:
标签: karate
* def temp = karate.prevRequest
* def requestMethod = temp.method
* def requestBody = temp.body
请查找更多示例here
【讨论】:
service.feature 中调用* def temp = karate.prevRequest 并且temp 变量应该从你的测试用例功能中提供这些数据