Search code examples
karate

Using karate-config parameters in a java file


Is there a possibility in karate to reuse parameters from karat-config.js in java file ( Initialising values using constructor)


Solution

  • Since anything returned from karate-config.js is available any time in any-scenario, just instantiate the Java class and pass whatever you need in the constructor.