C - Configuration typepublic interface DroneConfiguration<C extends DroneConfiguration<C>>
A matching extension in the descriptor with is searched by using
configuration name. If org.jboss.arquillian.drone.spi.Qualifier extension differs from
Default, 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 prefix arq.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:6000
Then 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
qualifier value, system property prefix and property name:
getConfigurationName() + - + @Qualifier, where all letters are lower casegetConfigurationName() + . + qualifier| Modifier and Type | Method and Description |
|---|---|
C |
configure(org.jboss.arquillian.config.descriptor.api.ArquillianDescriptor descriptor,
Class<? extends Annotation> qualifier)
Deprecated.
|
String |
getConfigurationName()
Returns the name of the configuration.
|
String getConfigurationName()
@Deprecated C configure(org.jboss.arquillian.config.descriptor.api.ArquillianDescriptor descriptor, Class<? extends Annotation> qualifier)
descriptor - Arquillian Descriptorqualifier - QualifierCopyright © 2016 JBoss by Red Hat. All rights reserved.