Karate 在服务模拟中获取查询参数
有一种方法可以像读取路径参数一样读取服务模拟中的查询参数吗 谢谢你的帮助 是的。阅读文档:Karate 在服务模拟中获取查询参数,karate,Karate,有一种方法可以像读取路径参数一样读取服务模拟中的查询参数吗 谢谢你的帮助 是的。阅读文档: Scenario: pathMatches('/greeting') && paramValue('name') != null * def content = 'Hello ' + paramValue('name') + '!' * def response = { id: '#(nextId())', content: '#(content)' }
Scenario: pathMatches('/greeting') && paramValue('name') != null
* def content = 'Hello ' + paramValue('name') + '!'
* def response = { id: '#(nextId())', content: '#(content)' }