空手道无法将 JSON 传递到功能文件中
Karate Unable to pass JSON into feature file
代码尝试
* 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
删除 read
和 (
之间的 space。
如果这不起作用,请按照以下流程操作:https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue
代码尝试
* 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
删除 read
和 (
之间的 space。
如果这不起作用,请按照以下流程操作:https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue