空手道无法将JSON传递到功能文件

时间:2019-02-08 15:35:23

标签: javascript dsl karate

尝试输入密码

  * def createTariffResponse = call read ('create-customer-mileage-tariff.feature') { id: '#(serviceId)' }

例外

-unknown-:9 - javascript evaluation failed: ('create-customer-mileage-tariff.feature') { id: '#(serviceId)' }, <eval>:1:43 Expected ; but found {
('create-customer-mileage-tariff.feature') { id: '#(serviceId)' }
                                           ^ in <eval> at line number 1 at column number 43

1 个答案:

答案 0 :(得分:2)

删除read(之间的空格。

如果这不起作用,请按照以下过程操作:https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue