Can we use multiple karate config files for karate dsl?

Sometimes depending on the situations, we may need multiple config.js files. But the question is how to define them in the karate class path. One most easy and convenient approach is to call those files from the main karate config.js file as mentioned below code snippet.

Here in the above case the ‘karate.env’ variable can be passed form command line and based on that the appropriate karate configuration values will be called.

For complete code please check the following git link:-

Karate Project