[JBoss JIRA] (ARQGRA-408) Provide SPI for custom @Location resolution
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-408?page=com.atlassian.jira.plugin... ]
Lukáš Fryč commented on ARQGRA-408:
-----------------------------------
Yeah, right, one of other approaches could be using marking interface for an enumeration of classes:
http://deltaspike.apache.org/jsf.html#view
> Provide SPI for custom @Location resolution
> -------------------------------------------
>
> Key: ARQGRA-408
> URL: https://issues.jboss.org/browse/ARQGRA-408
> Project: Arquillian Graphene
> Issue Type: Feature Request
> Reporter: Stefan Miklosovic
> Assignee: Stefan Miklosovic
> Priority: Minor
> Fix For: 2.1-Tracking
>
>
> While working with page fragments in Arquillian Droidium for ftesting on Android, I am quite close to be able to use proper page objects with @Location annotations on activities and that in turn means that I could use @InitialPage for native Android activities as well.
> Right now, I am starting Android activities like this (1) however I would like to encapsulate activity as the abstraction of a web page like this (2) into @Page and use @Location of it so that activity will be automatically open for me when I do @InitialPage so I get rid of that manual starting of the activity as seen in (1) and I just more stick to Graphene way of doing things.
> The problem is that an activity is started differently, to be concrete, I need to call something like
> {code}
> browser.get("and-activity://activityName");
> {code}
> and I need to do some internal matching of activities to WebDrivers.
> To be concrete, follow the link (3).
> From what I understood, that whole @Location logic is implemented in LocationEnricher the resolution of that url is in getURLFromLocation method. Since it would be theoretically possible to use @Location("and-activity://someActivity"), I would like to see SPI for doing of these things out of Graphene where I could add custom schemes to already existing ones or I could supress the standard behaviour so I can resolve and open locations according to my needs.
> (1)
> https://github.com/kpiwko/arquillian-safari/blob/master/arquillian-droidi...
> (2) https://github.com/kpiwko/arquillian-safari/blob/master/arquillian-droidi...
> (3) https://github.com/arquillian/arquillian-droidium/blob/master/droidium-na...
--
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
12 years
[JBoss JIRA] (ARQGRA-408) Provide SPI for custom @Location resolution
by Stefan Miklosovic (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-408?page=com.atlassian.jira.plugin... ]
Stefan Miklosovic updated ARQGRA-408:
-------------------------------------
Comment: was deleted
(was: [~lfryc]
when you meant it like this
{code}
@Location(scheme = UriScheme.HTTP)
{code}
where UriScheme is
{code}
public class UriScheme {
public static final UriScheme HTTP = new UriScheme("http");
private final String scheme;
private UriScheme(String scheme) {
this.scheme = scheme;
}
}
{code}
you can not have that class as a parameter for an annotation just because of Java.
I try to approach that with enumerations again.)
> Provide SPI for custom @Location resolution
> -------------------------------------------
>
> Key: ARQGRA-408
> URL: https://issues.jboss.org/browse/ARQGRA-408
> Project: Arquillian Graphene
> Issue Type: Feature Request
> Reporter: Stefan Miklosovic
> Assignee: Stefan Miklosovic
> Priority: Minor
> Fix For: 2.1-Tracking
>
>
> While working with page fragments in Arquillian Droidium for ftesting on Android, I am quite close to be able to use proper page objects with @Location annotations on activities and that in turn means that I could use @InitialPage for native Android activities as well.
> Right now, I am starting Android activities like this (1) however I would like to encapsulate activity as the abstraction of a web page like this (2) into @Page and use @Location of it so that activity will be automatically open for me when I do @InitialPage so I get rid of that manual starting of the activity as seen in (1) and I just more stick to Graphene way of doing things.
> The problem is that an activity is started differently, to be concrete, I need to call something like
> {code}
> browser.get("and-activity://activityName");
> {code}
> and I need to do some internal matching of activities to WebDrivers.
> To be concrete, follow the link (3).
> From what I understood, that whole @Location logic is implemented in LocationEnricher the resolution of that url is in getURLFromLocation method. Since it would be theoretically possible to use @Location("and-activity://someActivity"), I would like to see SPI for doing of these things out of Graphene where I could add custom schemes to already existing ones or I could supress the standard behaviour so I can resolve and open locations according to my needs.
> (1)
> https://github.com/kpiwko/arquillian-safari/blob/master/arquillian-droidi...
> (2) https://github.com/kpiwko/arquillian-safari/blob/master/arquillian-droidi...
> (3) https://github.com/arquillian/arquillian-droidium/blob/master/droidium-na...
--
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
12 years
[JBoss JIRA] (ARQ-1708) Remove legacy configuration
by Karel Piwko (JIRA)
Karel Piwko created ARQ-1708:
--------------------------------
Summary: Remove legacy configuration
Key: ARQ-1708
URL: https://issues.jboss.org/browse/ARQ-1708
Project: Arquillian
Issue Type: Task
Security Level: Public (Everyone can see)
Components: Extension - Drone
Affects Versions: drone_1.3.0.Final
Reporter: Karel Piwko
Assignee: Karel Piwko
Fix For: drone_2.0.0.Alpha1
Remove system property based configuration provided by Drone, as this is now available in Arquillian Core.
Remove configuration fields mapped as deprecated, that are now mapped to capabilities.
--
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
12 years