我要:
And request {"externalRawResponse": "#(response)"}
但是,response
已被解析为JSON。可以获取原始文本版本吗?
我尝试使用* text rawResponse = response
,但收到错误no step-definition method match found for: text rawResponse = response
答案 0 :(得分:1)
是的,请阅读文档:https://github.com/intuit/karate#type-conversion
* xmlstring xml = response
* request { externalRawResponse: '#(xml)' }