Skip to content
Advertisement

Karate karate-config.js not a js function

I’m trying use karate for e2e tests and have started with a minimal setup. I want to create some config items in karate-config.js for use in the tests but karate is reporting that file is not a js function and hence the test fails trying to get the config:

JavaScript

This is my karate-config.js:

JavaScript

This is my insurer.feature test:

JavaScript

This is the InsurerTest.java test runner:

JavaScript

Advertisement

Answer

Please use below code in the karate-config.js

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement