[JBoss JIRA] (ARQGRA-325) Support for injecting custom settings into Page Fragments/objects
by Juraj Húska (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-325?page=com.atlassian.jira.plugin... ]
Juraj Húska commented on ARQGRA-325:
------------------------------------
I did not know about it. It sounds great.
> Support for injecting custom settings into Page Fragments/objects
> -----------------------------------------------------------------
>
> Key: ARQGRA-325
> URL: https://issues.jboss.org/browse/ARQGRA-325
> Project: Arquillian Graphene
> Issue Type: Feature Request
> Components: core, unit-test
> Affects Versions: 2.0.0.Alpha4
> Reporter: Juraj Húska
>
> It would be nice if Graphene provides a way how to uniformly inject custom settings for the Page Fragments/objects.
> It should work on annotation level, e.g.
> {code}
> public class Test {
>
> @FindBy @Settings(MyJSAPISettings.class)
> private MyPageFragment myFragment;
> }
> {code}
> which would inject instance of {{MyJSAPISettings.class}} to the {{MyPageFragment}} object.
> Also it should support injecting of the settings on a global level, in arquillian.xml, e.g.
> {code:xml}
> <extension qualifier="graphene">
> <property name="settings">MyJSAPISettings.class</property>
> </extension>
> {code}
> What do you think ? Is that a good API ?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 3 months
[JBoss JIRA] (ARQGRA-325) Support for injecting custom settings into Page Fragments/objects
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-325?page=com.atlassian.jira.plugin... ]
Lukáš Fryč commented on ARQGRA-325:
-----------------------------------
We could use Drone's configuration service which loads configuration from arquillian.xml into custom class representing configuration. This service does automatic type conversion.
I think this would be simpler to implement than page-fragment specific configuration. wdyt?
> Support for injecting custom settings into Page Fragments/objects
> -----------------------------------------------------------------
>
> Key: ARQGRA-325
> URL: https://issues.jboss.org/browse/ARQGRA-325
> Project: Arquillian Graphene
> Issue Type: Feature Request
> Components: core, unit-test
> Affects Versions: 2.0.0.Alpha4
> Reporter: Juraj Húska
>
> It would be nice if Graphene provides a way how to uniformly inject custom settings for the Page Fragments/objects.
> It should work on annotation level, e.g.
> {code}
> public class Test {
>
> @FindBy @Settings(MyJSAPISettings.class)
> private MyPageFragment myFragment;
> }
> {code}
> which would inject instance of {{MyJSAPISettings.class}} to the {{MyPageFragment}} object.
> Also it should support injecting of the settings on a global level, in arquillian.xml, e.g.
> {code:xml}
> <extension qualifier="graphene">
> <property name="settings">MyJSAPISettings.class</property>
> </extension>
> {code}
> What do you think ? Is that a good API ?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 3 months
[JBoss JIRA] (ARQGRA-364) Allow for extensibility of GrapheneElement
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-364?page=com.atlassian.jira.plugin... ]
Lukáš Fryč updated ARQGRA-364:
------------------------------
Fix Version/s: 2.1-Tracking
> Allow for extensibility of GrapheneElement
> ------------------------------------------
>
> Key: ARQGRA-364
> URL: https://issues.jboss.org/browse/ARQGRA-364
> Project: Arquillian Graphene
> Issue Type: Enhancement
> Reporter: Lukáš Fryč
> Fix For: 2.1-Tracking
>
>
> Implement GrapheneElement#as(Class<?> type) method which will do a coercion to the given type.
> If the given type is not implemented by wrapped WebElement, the service which implements this method will be called instead. This allows for simple extensibility mechanism:
> {code}
> @FindBy
> GrapheneElement element;
> @Test test() {
> element.as(ValidableElement).checkValidity();
> }
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 3 months