Interface DroneConfiguration<C extends DroneConfiguration<C>>
-
- Type Parameters:
C- Configuration type
public interface DroneConfiguration<C extends DroneConfiguration<C>>Configuration of arbitrary Drone Web user interface test framework. It allows to get configured from both Arquillian Descriptor and System properties which takes precedence.A matching extension in the descriptor with is searched by using configuration name. If
org.jboss.arquillian.drone.spi.Qualifierextension differs fromDefault, it is used to get the configuration if it exists, otherwise the default one is used.See following example which explains the mapping.
If configuration is named
webdriver, then<extension qualifier="webdriver">is looked in the descriptor file and properties are mapped to configuration values. Then System properties with prefixarq.extension.webdriver.*are mapped to the configuration values, possibly overriding values provided within descriptor file.<extension qualifier="webdriver"> <configuration> <property name="remoteAddress">http://localhost:5000</property> </configuration> </extension>A system property is passed as
-Darq.extension.webdriver.remoteAddresss=http://localhost:6000Then configuration will read descriptor and set remote address value to http://localhost:5000 which becomes later overridden by http://localhost:6000 passed from the command line.
For more complex example, see following rules are applied to compute
qualifiervalue, system property prefix and property name:- qualifier =
getConfigurationName()+ - + @Qualifier, where all letters are lower case - System property prefix = arq.extension. +
getConfigurationName()+ . + qualifier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Cconfigure(org.jboss.arquillian.config.descriptor.api.ArquillianDescriptor descriptor, Class<? extends Annotation> qualifier)Deprecated.StringgetConfigurationName()Returns the name of the configuration.
-
-
-
Method Detail
-
getConfigurationName
String getConfigurationName()
Returns the name of the configuration.- Returns:
- Name of the configuration
-
configure
@Deprecated C configure(org.jboss.arquillian.config.descriptor.api.ArquillianDescriptor descriptor, Class<? extends Annotation> qualifier)
Deprecated.Configures configuration from descriptor and System properties- Parameters:
descriptor- Arquillian Descriptorqualifier- Qualifier- Returns:
- Configured configuration instance
-
-