1 package vid.automation.test.utils;
3 import vid.automation.test.infra.FeaturesTogglingConfiguration;
5 public class TestConfigurationHelper {
7 private TestConfigurationHelper(){}
9 public static org.onap.sdc.ci.tests.datatypes.Configuration getEnvConfiguration() {
12 String envUrl = System.getProperty("ENV_URL");
13 boolean isCustomLogin = Boolean.parseBoolean(System.getProperty("CUSTOM_LOGIN"));
15 org.onap.sdc.ci.tests.datatypes.Configuration configuration = new org.onap.sdc.ci.tests.datatypes.Configuration(envUrl, isCustomLogin);
17 String geckoDriverPath = System.getProperty("GECKO_PATH");
18 if(geckoDriverPath == null){
19 throw new RuntimeException("Missing path to gecko driver." +
20 " Make sure to provide path to the gecko driver executable with -DGECKO_PATH=<path>");
23 configuration.setGeckoDriverPath(geckoDriverPath);
24 FeaturesTogglingConfiguration.initializeFeatureManager();
27 } catch (Exception e) {