private String getBrowser(ArquillianDescriptor arquillian) { ExtensionDef webdriver = arquillian.extension("webdriver-reusable"); Assert.assertNotNull( "webdriver-reusable extension should be defined in arquillian.xml", webdriver); Map<String, String> props = webdriver.getExtensionProperties(); return props.get("browser"); }
private String readExpressionFromConfiguration() { ArquillianDescriptor descriptor = desciptorInst.get(); for (ExtensionDef def : descriptor.getExtensions()) { if (def.getExtensionName().equalsIgnoreCase(EXTENSION_NAME)) { String exp = def.getExtensionProperties().get(EXTENSION_PROPERTY_EXP); if (exp != null) { return exp; } } } return null; }
private Set<String> readMethodsFromConfiguration() { final Set<String> set = new HashSet<>(); ArquillianDescriptor descriptor = desciptorInst.get(); for (ExtensionDef def : descriptor.getExtensions()) { if (def.getExtensionName().equalsIgnoreCase(EXTENSION_NAME)) { Map<String, String> properties = def.getExtensionProperties(); String exp = properties.get(EXTENSION_PROPERTY_METHODS); if (exp != null) { set.addAll(Arrays.asList(exp.split(","))); } for (String key : properties.keySet()) { if (key.startsWith(EXTENSION_PROPERTY_METHODS + "_")) { set.add(properties.get(key)); } } } } return set; }