If then else implementation to chose baseURL in Karate DSL
问题 I have a little tricky requirement in Karate. I have a set of baseURL's in my karate.config which are chosen based on the implementation. Here is the snippet of it: if (env == 'qa') { config.apiKey = apiKey; config.tsp_api = 'https://api.qa.tceu.net'; config.svt_dcm = 'https://svt.qa.tceu.net'; config.acn_dcm = 'https://acn.qa.tceu.net'; config.sos_dcm = 'https://sos.qa.tceu.net'; config.cust_dcm = 'https://cust.qa.tceu.net'; Here tsp,svt,acn,sos,cust are some actions. I have a feature file