InditexTech Karate Tools

Environment URLs

The environment URLs must be updated per environment in the config-<env>.yml files:

  • urls

    • <API_1>Url: URL of the REST API <1> under test.

    • …​

    • <API_N>Url: URL of the REST API <N> under test.

Artifact Urls keys are added automatically when using the open-api-generator to generate tests with the default value

  • "#('http://localhost:' + (karate.properties['APP_PORT'] || 8080) + '/TO_BE_COMPLETED')"

Note the marker #karate-utils-new-karate-url-marker is used by the generator to find the location of the new urls, please do not remove

Example

# urls: karate urls used for target environments and authentication
urls:
  xxxApiRestStableUrl: "#('http://localhost:' + (karate.properties['APP_PORT'] || 8080) + '/TO_BE_COMPLETED')"
  #karate-utils-new-karate-url-marker (do not remove) - new generated apis urls will be placed here automatically