Taran
Taran

Reputation: 531

Karate Unable to pass JSON into feature file

code attempted

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

exception

-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

Upvotes: 1

Views: 204

Answers (1)

Peter Thomas
Peter Thomas

Reputation: 58153

Remove the space between the read and (.

If that doesn't work, please follow this process: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue

Upvotes: 2

Related Questions