If then else implementation to chose baseURL in Karate DSL
Here is a hint. JSON is actually a pretty useful data-structure (think hash-map or dictionary) and you can lookup a value without needing an if statement. * def data = “”” { qa: { sos: ‘https://sos.qa.tceu.net’, acn: ‘https://acn.qa.tceu.net’ } } “”” * def env = ‘qa’ * def urls = data[env] * def action = … Read more