I am working on API testing project and have incorporated Karate to do so. Now my requirement is to create a server which will respond to the endpoint.All this is done but my requirement is to access variables defined in karate-config file in Server feature. I am unable to do so.
For example: Feature: Sample server
Scenario: pathMatches('\variablevalue) ** methodIs('get')
- def response = default_env
Note: default_env is a variable in karate-config.js file and holds some default value.