@Test public void testEncryptionEnvironment() throws IOException { final String key = "my-key-val"; SakuliPropertyPlaceholderConfigurer.ENCRYPTION_KEY_VALUE = key; Properties props = new Properties(); testling.loadProperties(props); assertEquals(props.get(CipherProperties.ENCRYPTION_KEY), key); assertEquals(props.get(CipherProperties.ENCRYPTION_MODE), CipherProperties.ENCRYPTION_MODE_ENVIRONMENT); }
@Override protected void loadProperties(Properties props) throws IOException { props.put(TestSuiteProperties.TEST_SUITE_FOLDER, TEST_SUITE_FOLDER_VALUE); props.put(SakuliProperties.SAKULI_HOME_FOLDER, SAKULI_HOME_FOLDER_VALUE); loadSakuliDefaultProperties(props); loadSakuliProperties(props); loadTestSuiteProperties(props); loadEnvironmentVariablesToProperties(props); if (isNotEmpty(SAHI_HOME_VALUE)) { props.setProperty(SahiProxyProperties.PROXY_HOME_FOLDER, SAHI_HOME_VALUE); props.setProperty(SahiProxyProperties.PROXY_CONFIG_FOLDER, SAHI_HOME_VALUE + File.separator + "userdata"); } if (isNotEmpty(TEST_SUITE_BROWSER)) { props.setProperty(TestSuiteProperties.BROWSER_NAME, TEST_SUITE_BROWSER); } assignEncryptionProperties(props); modifySahiProperties(props); super.loadProperties(props); this.propsRef = props; }
SakuliPropertyPlaceholderConfigurer extends PropertyPlaceholderConfigurer { @Override protected void loadProperties(Properties props) throws IOException { props.put(TestSuiteProperties.TEST_SUITE_FOLDER, TEST_SUITE_FOLDER_VALUE); props.put(SakuliProperties.SAKULI_HOME_FOLDER, SAKULI_HOME_FOLDER_VALUE); loadSakuliDefaultProperties(props); loadSakuliProperties(props); loadTestSuiteProperties(props); loadEnvironmentVariablesToProperties(props); if (isNotEmpty(SAHI_HOME_VALUE)) { props.setProperty(SahiProxyProperties.PROXY_HOME_FOLDER, SAHI_HOME_VALUE); props.setProperty(SahiProxyProperties.PROXY_CONFIG_FOLDER, SAHI_HOME_VALUE + File.separator + "userdata"); } if (isNotEmpty(TEST_SUITE_BROWSER)) { props.setProperty(TestSuiteProperties.BROWSER_NAME, TEST_SUITE_BROWSER); } assignEncryptionProperties(props); modifySahiProperties(props); super.loadProperties(props); this.propsRef = props; } }
SakuliPropertyPlaceholderConfigurer extends PropertyPlaceholderConfigurer { @Override protected void loadProperties(Properties props) throws IOException { props.put(TestSuiteProperties.TEST_SUITE_FOLDER, TEST_SUITE_FOLDER_VALUE); props.put(SakuliProperties.SAKULI_HOME_FOLDER, SAKULI_HOME_FOLDER_VALUE); loadSakuliDefaultProperties(props); loadSakuliProperties(props); loadTestSuiteProperties(props); loadEnvironmentVariablesToProperties(props); if (isNotEmpty(SAHI_HOME_VALUE)) { props.setProperty(SahiProxyProperties.PROXY_HOME_FOLDER, SAHI_HOME_VALUE); props.setProperty(SahiProxyProperties.PROXY_CONFIG_FOLDER, SAHI_HOME_VALUE + File.separator + "userdata"); } if (isNotEmpty(TEST_SUITE_BROWSER)) { props.setProperty(TestSuiteProperties.BROWSER_NAME, TEST_SUITE_BROWSER); } assignEncryptionProperties(props); modifySahiProperties(props); super.loadProperties(props); this.propsRef = props; } SakuliPropertyPlaceholderConfigurer(); }
SakuliPropertyPlaceholderConfigurer extends PropertyPlaceholderConfigurer { @Override protected void loadProperties(Properties props) throws IOException { props.put(TestSuiteProperties.TEST_SUITE_FOLDER, TEST_SUITE_FOLDER_VALUE); props.put(SakuliProperties.SAKULI_HOME_FOLDER, SAKULI_HOME_FOLDER_VALUE); loadSakuliDefaultProperties(props); loadSakuliProperties(props); loadTestSuiteProperties(props); loadEnvironmentVariablesToProperties(props); if (isNotEmpty(SAHI_HOME_VALUE)) { props.setProperty(SahiProxyProperties.PROXY_HOME_FOLDER, SAHI_HOME_VALUE); props.setProperty(SahiProxyProperties.PROXY_CONFIG_FOLDER, SAHI_HOME_VALUE + File.separator + "userdata"); } if (isNotEmpty(TEST_SUITE_BROWSER)) { props.setProperty(TestSuiteProperties.BROWSER_NAME, TEST_SUITE_BROWSER); } assignEncryptionProperties(props); modifySahiProperties(props); super.loadProperties(props); this.propsRef = props; } SakuliPropertyPlaceholderConfigurer(); static void assignEncryptionProperties(Properties props); Properties getPropsRef(); @PreDestroy void restoreProperties(); boolean isLoadSakuliDefaultProperties(); void setLoadSakuliDefaultProperties(boolean loadSakuliDefaultProperties); boolean isLoadSakuliProperties(); void setLoadSakuliProperties(boolean loadSakuliProperties); boolean isLoadTestSuiteProperties(); void setLoadTestSuiteProperties(boolean loadTestSuiteProperties); boolean isWritePropertiesToSahiConfig(); void setWritePropertiesToSahiConfig(boolean writePropertiesToSahiConfig); }
SakuliPropertyPlaceholderConfigurer extends PropertyPlaceholderConfigurer { @Override protected void loadProperties(Properties props) throws IOException { props.put(TestSuiteProperties.TEST_SUITE_FOLDER, TEST_SUITE_FOLDER_VALUE); props.put(SakuliProperties.SAKULI_HOME_FOLDER, SAKULI_HOME_FOLDER_VALUE); loadSakuliDefaultProperties(props); loadSakuliProperties(props); loadTestSuiteProperties(props); loadEnvironmentVariablesToProperties(props); if (isNotEmpty(SAHI_HOME_VALUE)) { props.setProperty(SahiProxyProperties.PROXY_HOME_FOLDER, SAHI_HOME_VALUE); props.setProperty(SahiProxyProperties.PROXY_CONFIG_FOLDER, SAHI_HOME_VALUE + File.separator + "userdata"); } if (isNotEmpty(TEST_SUITE_BROWSER)) { props.setProperty(TestSuiteProperties.BROWSER_NAME, TEST_SUITE_BROWSER); } assignEncryptionProperties(props); modifySahiProperties(props); super.loadProperties(props); this.propsRef = props; } SakuliPropertyPlaceholderConfigurer(); static void assignEncryptionProperties(Properties props); Properties getPropsRef(); @PreDestroy void restoreProperties(); boolean isLoadSakuliDefaultProperties(); void setLoadSakuliDefaultProperties(boolean loadSakuliDefaultProperties); boolean isLoadSakuliProperties(); void setLoadSakuliProperties(boolean loadSakuliProperties); boolean isLoadTestSuiteProperties(); void setLoadTestSuiteProperties(boolean loadTestSuiteProperties); boolean isWritePropertiesToSahiConfig(); void setWritePropertiesToSahiConfig(boolean writePropertiesToSahiConfig); static String ENCRYPTION_KEY_VALUE; static String TEST_SUITE_FOLDER_VALUE; static String SAKULI_HOME_FOLDER_VALUE; static String SAHI_HOME_VALUE; static String TEST_SUITE_BROWSER; static String ENCRYPTION_INTERFACE_VALUE; }