Hi all,
i’ve a URL variable that I read from a json file and use in my testing.
What I want to do if pass a __ENV variable and overwrite it at run time.
Adding the following code in the default function works, adding it to the setup function does not
While it does work it seems I’ll be executing that code a lot and would prefer to do it just the once.
Any tips on how to do what I
const urlIs = __ENV.APIURL;
var url = null;
if(typeof urlIs === 'undefined'){
url = url_options[0].url;
} else {
url = urlIs;
}
systemUrlPort = "https://" + url + ":443";
console.log("systemUrlPort: " + systemUrlPort);