I am setting the environment variable using karate-config.js if its null:
if (!env) {
env = 'sit';
}
I am able to fetch env value in karate feature file, however my test case requirement is to pick the excel data based on environment
When I am using the below code to read the file name based on env, I am getting null as env
file= file.replace("RequestData.xlsx","RequestData-"+System.getProperty("env")+".xlsx");