[JBoss JIRA] (ARQGRA-449) Graphene can not switch between contexts
by Sona Jamborova (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-449?page=com.atlassian.jira.plugin... ]
Sona Jamborova commented on ARQGRA-449:
---------------------------------------
Hi,
I am not sure if code which I have changed is used by switchTo(). By the way if you use selenium 2.42.0, there are new versions of selenium (2.42.1 and 2.42.2). See https://code.google.com/p/selenium/source/browse/java/CHANGELOG
> Graphene can not switch between contexts
> ----------------------------------------
>
> Key: ARQGRA-449
> URL: https://issues.jboss.org/browse/ARQGRA-449
> Project: Arquillian Graphene
> Issue Type: Bug
> Components: core
> Affects Versions: 2.0.3.Final
> Reporter: Stefan Miklosovic
>
> This code:
> {code}
> @Test
> public void nativeViewTest()
> {
> driver.switchTo().window("NATIVE_APP");
> }
> {code}
> That window() parameter is Selendroid-related and it has nothing to do with Graphene. Graphene is just not able to handle that.
> It produces this exception:
> java.lang.IllegalArgumentException: methods with same signature getContext() but incompatible return types: [class java.lang.String, class org.jboss.arquillian.graphene.context.GrapheneContext]
> at sun.misc.ProxyGenerator.checkReturnTypes(ProxyGenerator.java:686)
> at sun.misc.ProxyGenerator.generateClassFile(ProxyGenerator.java:437)
> at sun.misc.ProxyGenerator.generateProxyClass(ProxyGenerator.java:323)
> at java.lang.reflect.Proxy.getProxyClass0(Proxy.java:636)
> at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:722)
> at org.jboss.arquillian.graphene.proxy.GrapheneProxy.createProxy(GrapheneProxy.java:166)
> at org.jboss.arquillian.graphene.proxy.GrapheneProxy.getProxyForTargetWithInterfaces(GrapheneProxy.java:92)
> at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$1.invoke(GrapheneContextualHandler.java:165)
> at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$2.call(GrapheneContextualHandler.java:209)
> at org.jboss.arquillian.graphene.context.BrowserActions.performAction(BrowserActions.java:62)
> at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler.invoke(GrapheneContextualHandler.java:205)
> at com.sun.proxy.$Proxy27.window(Unknown Source)
> at org.arquillian.droidium.showcase.hybrid.test01.SelendroidHybridTestAppTestCase.nativeViewTest(SelendroidHybridTestAppTestCase.java:101)
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 7 months
[JBoss JIRA] (ARQ-1749) Retrieve httpPort from MBean when not provided in configuration
by Gerhard Poul (JIRA)
[ https://issues.jboss.org/browse/ARQ-1749?page=com.atlassian.jira.plugin.s... ]
Gerhard Poul updated ARQ-1749:
------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: was_1.0.0.next
Resolution: Done
merged into master
> Retrieve httpPort from MBean when not provided in configuration
> ---------------------------------------------------------------
>
> Key: ARQ-1749
> URL: https://issues.jboss.org/browse/ARQ-1749
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: WebSphere Containers
> Affects Versions: was_1.0.0.Alpha2
> Reporter: Aslak Knutsen
> Assignee: Gerhard Poul
> Fix For: was_1.0.0.next
>
>
> The exposed MBean WebSphere/endpoint/channelfw/defaultHttpEndpoint contain Host and Port attributes which could be used if httpPort is not configured in arquillian.xml.
> The Container require serverName to detect which VM is running, and as long as you have the VM you have the httpPort info. Defaulting to the 'defaultHttpEndpoint' should remove a few possible error configurations.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 7 months
[JBoss JIRA] (ARQ-1767) Validate tool settings before it is executed
by Stefan Miklosovic (JIRA)
[ https://issues.jboss.org/browse/ARQ-1767?page=com.atlassian.jira.plugin.s... ]
Stefan Miklosovic updated ARQ-1767:
-----------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/arquillian/arquillian-spacelift/pull/10
> Validate tool settings before it is executed
> --------------------------------------------
>
> Key: ARQ-1767
> URL: https://issues.jboss.org/browse/ARQ-1767
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Extension - Spacelift
> Affects Versions: spacelift_1.0.0.Alpha2
> Reporter: Stefan Miklosovic
> Assignee: Stefan Miklosovic
>
> Implementator of Tool from Spacelift can use custom "setters" to prepare tool's environment or arguments before an execution.
> In case this environment is not set properly or it misses, it fails too late or its handling is treated directly in process method which adds additional boilerplate code and it is not good approach in general.
> Consider to add validate() method to Tool which would be called by Spacelift upon execute() call.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 7 months
[JBoss JIRA] (ARQ-1767) Validate tool settings before it is executed
by Stefan Miklosovic (JIRA)
[ https://issues.jboss.org/browse/ARQ-1767?page=com.atlassian.jira.plugin.s... ]
Stefan Miklosovic reassigned ARQ-1767:
--------------------------------------
Assignee: Stefan Miklosovic
> Validate tool settings before it is executed
> --------------------------------------------
>
> Key: ARQ-1767
> URL: https://issues.jboss.org/browse/ARQ-1767
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Extension - Spacelift
> Affects Versions: spacelift_1.0.0.Alpha2
> Reporter: Stefan Miklosovic
> Assignee: Stefan Miklosovic
>
> Implementator of Tool from Spacelift can use custom "setters" to prepare tool's environment or arguments before an execution.
> In case this environment is not set properly or it misses, it fails too late or its handling is treated directly in process method which adds additional boilerplate code and it is not good approach in general.
> Consider to add validate() method to Tool which would be called by Spacelift upon execute() call.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 7 months
[JBoss JIRA] (ARQGRA-449) Graphene can not switch between contexts
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-449?page=com.atlassian.jira.plugin... ]
Lukáš Fryč edited comment on ARQGRA-449 at 6/6/14 11:06 AM:
------------------------------------------------------------
I don't think it is related.
According to the stack trace, it is caused by two incompatible APIs - ProxyGenerator tries to create a proxy for given interfaces and detects that there are two which contains {{#getContext()}} method, but returns different type.
Stefan, could you please debug what interfaces we try to proxy that has conflicting signature?
{code}
interface I1 {
String getContext();
}
interface I2 {
GrapheneContext getContext();
}
{code}
was (Author: lfryc):
I don't think it is related.
According to the stack trace, it is caused by two incompatible APIs - ProxyGenerator tries to create a proxy for given interfaces and detects that there are two which contains {{#getContext()}} method, but returns different type.
Stefan, could you please debug what interfaces we try to proxy that has conflicting signature?
> Graphene can not switch between contexts
> ----------------------------------------
>
> Key: ARQGRA-449
> URL: https://issues.jboss.org/browse/ARQGRA-449
> Project: Arquillian Graphene
> Issue Type: Bug
> Components: core
> Affects Versions: 2.0.3.Final
> Reporter: Stefan Miklosovic
>
> This code:
> {code}
> @Test
> public void nativeViewTest()
> {
> driver.switchTo().window("NATIVE_APP");
> }
> {code}
> That window() parameter is Selendroid-related and it has nothing to do with Graphene. Graphene is just not able to handle that.
> It produces this exception:
> java.lang.IllegalArgumentException: methods with same signature getContext() but incompatible return types: [class java.lang.String, class org.jboss.arquillian.graphene.context.GrapheneContext]
> at sun.misc.ProxyGenerator.checkReturnTypes(ProxyGenerator.java:686)
> at sun.misc.ProxyGenerator.generateClassFile(ProxyGenerator.java:437)
> at sun.misc.ProxyGenerator.generateProxyClass(ProxyGenerator.java:323)
> at java.lang.reflect.Proxy.getProxyClass0(Proxy.java:636)
> at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:722)
> at org.jboss.arquillian.graphene.proxy.GrapheneProxy.createProxy(GrapheneProxy.java:166)
> at org.jboss.arquillian.graphene.proxy.GrapheneProxy.getProxyForTargetWithInterfaces(GrapheneProxy.java:92)
> at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$1.invoke(GrapheneContextualHandler.java:165)
> at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$2.call(GrapheneContextualHandler.java:209)
> at org.jboss.arquillian.graphene.context.BrowserActions.performAction(BrowserActions.java:62)
> at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler.invoke(GrapheneContextualHandler.java:205)
> at com.sun.proxy.$Proxy27.window(Unknown Source)
> at org.arquillian.droidium.showcase.hybrid.test01.SelendroidHybridTestAppTestCase.nativeViewTest(SelendroidHybridTestAppTestCase.java:101)
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 7 months