Created
February 2, 2023 10:45
-
-
Save burcuakkayaa/5759f09f1a6de995f7db3ce783e0a99a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fn() { | |
var env = karate.env; // get system property 'karate.env' | |
karate.log('karate.env system property was:', env); | |
if (!env) { | |
env = 'dev'; | |
} | |
var config = { | |
env: env, | |
baseUrl: 'https://petstore.swagger.io' | |
} | |
if (env == 'dev') { | |
// customize | |
// e.g. config.foo = 'bar'; | |
} else if (env == 'e2e') { | |
// customize | |
} | |
return config; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment