diff --git a/uitest-resident/src/main/java/io/mosip/testrig/residentui/kernel/util/ConfigManager.java b/uitest-resident/src/main/java/io/mosip/testrig/residentui/kernel/util/ConfigManager.java index 38b9a8d5..356cb1cc 100644 --- a/uitest-resident/src/main/java/io/mosip/testrig/residentui/kernel/util/ConfigManager.java +++ b/uitest-resident/src/main/java/io/mosip/testrig/residentui/kernel/util/ConfigManager.java @@ -123,7 +123,9 @@ public class ConfigManager { private static String PACKET_UTILITY_BASE_URL = "packetUtilityBaseUrl"; private static String Testcases = "residentscenariosToExecute"; + private static String Image = "image"; + private static String image; private static String testcases; private static String pms_client_secret; private static String pms_client_id; @@ -417,6 +419,9 @@ public static void init() { testcases =System.getenv(Testcases) == null ? propsKernel.getProperty(Testcases) : System.getenv(Testcases); propsKernel.setProperty(Testcases, testcases); + + image =System.getenv(Image) == null ? propsKernel.getProperty(Image) : System.getenv(Image); + propsKernel.setProperty(Image, image); } @@ -426,6 +431,10 @@ public static int packetUpdateWait() { return wait; } + public static String getimagename() { + return image; + } + public static String gettestcases() { return testcases; } @@ -814,10 +823,7 @@ private static Properties getproperty(String path) { return prop; } - public static String getimagename() { - propsKernel = getproperty(TestRunner.getResourcePath() + "/" + "/config/Kernel.properties"); - return propsKernel.getProperty("image"); - } + public static String getAuthDemoServiceUrl() { return ConfigManager.getAuthDemoServiceBaseUrl() + ":" + ConfigManager.getAuthDemoServicePort(); }