[JBoss JIRA] (ARQ-1250) arquillian-junit-standalone doesn't execute @Before
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQ-1250?page=com.atlassian.jira.plugin.s... ]
Lukáš Fryč updated ARQ-1250:
----------------------------
Issue Type: Bug (was: Feature Request)
> arquillian-junit-standalone doesn't execute @Before
> ---------------------------------------------------
>
> Key: ARQ-1250
> URL: https://issues.jboss.org/browse/ARQ-1250
> Project: Arquillian
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 1.0.3.Final
> Reporter: Lukáš Fryč
>
> In following code, {{before()}} method won't be called at all:
> {code:java}
> @RunWith(Arquillian.class)
> public class BeforeTestCase {
> private boolean initialized = false;
> @Before
> public void before() {
> initialized = true;
> }
> @Test
> public void test() {
> Assert.assertTrue("@Before should have initialized test", initialized);
> }
> }
> {code}
> {code:xml}
> <dependency>
> <groupId>org.jboss.arquillian.junit</groupId>
> <artifactId>arquillian-junit-standalone</artifactId>
> <scope>test</scope>
> </dependency>
> {code}
> When changed to {{arquillian-junit-container}}, everything works fine.
--
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-1250) arquillian-junit-standalone doesn't execute @Before
by Lukáš Fryč (JIRA)
Lukáš Fryč created ARQ-1250:
-------------------------------
Summary: arquillian-junit-standalone doesn't execute @Before
Key: ARQ-1250
URL: https://issues.jboss.org/browse/ARQ-1250
Project: Arquillian
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Affects Versions: 1.0.3.Final
Reporter: Lukáš Fryč
In following code, {{before()}} method won't be called at all:
{code:java}
@RunWith(Arquillian.class)
public class BeforeTestCase {
private boolean initialized = false;
@Before
public void before() {
initialized = true;
}
@Test
public void test() {
Assert.assertTrue("@Before should have initialized test", initialized);
}
}
{code}
{code:xml}
<dependency>
<groupId>org.jboss.arquillian.junit</groupId>
<artifactId>arquillian-junit-standalone</artifactId>
<scope>test</scope>
</dependency>
{code}
When changed to {{arquillian-junit-container}}, everything works fine.
--
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-233) Graphene does not guard against StaleElementException
by Radek Falhar (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-233?page=com.atlassian.jira.plugin... ]
Radek Falhar commented on ARQGRA-233:
-------------------------------------
This seems to be case related to this bug.
1. use specific WebElement defined by @FindBy
2. Reload the page (get(..) same url as before)
3. calling element.findElements(By...) throws StaleElementReferenceException
Adding element.IsDisplayed() before 3. seems to refresh this element, so no exception is thrown.
> Graphene does not guard against StaleElementException
> -----------------------------------------------------
>
> Key: ARQGRA-233
> URL: https://issues.jboss.org/browse/ARQGRA-233
> Project: Arquillian Graphene
> Issue Type: Bug
> Reporter: Lukáš Fryč
> Assignee: Lukáš Fryč
> Priority: Critical
> Fix For: 2.0.0.Alpha3
>
>
> There are situations when changes in DOM causes our WebElements to be staled.
> We need to write extensive functional test suite which will count with different type of DOM changes:
> * replacements
> * deletions
> * addiotions
> * updates
--
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-232) Enriched WebElement cannot be converted to JSON without manual unwrapping
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-232?page=com.atlassian.jira.plugin... ]
Lukáš Fryč commented on ARQGRA-232:
-----------------------------------
Let's make generated proxy to implement {{WrapsElement}}.
> Enriched WebElement cannot be converted to JSON without manual unwrapping
> -------------------------------------------------------------------------
>
> Key: ARQGRA-232
> URL: https://issues.jboss.org/browse/ARQGRA-232
> Project: Arquillian Graphene
> Issue Type: Bug
> Reporter: Jiří Štefek
> Priority: Critical
> Fix For: 2.0.0.Alpha3
>
>
> When you use something like this, WebElementToJsonConverter cannot convert enriched input:
> {code}
> @FindBy(css="input[id$=input]")
> WebElement input;
> public void blurInput(){
> JavascriptExecutor js = (JavascriptExecutor) GrapheneContext.getProxy();
> >>> js.executeScript("jQuery(arguments[0]).trigger('blur')", input); <<<
> }
> {code}
> error:
> {code}
> java.lang.IllegalArgumentException: Argument is of an illegal type: $Proxy37
> at org.openqa.selenium.remote.internal.WebElementToJsonConverter.apply(WebElementToJsonConverter.java:78)
> at com.google.common.collect.Iterators$8.next(Iterators.java:730)
> at com.google.common.collect.Lists.newArrayList(Lists.java:136)
> at com.google.common.collect.Lists.newArrayList(Lists.java:117)
> at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:437)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler.invokeReal(GrapheneProxyHandler.java:200)
> at org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler$1.invoke(GrapheneProxyHandler.java:134)
> at org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler.invoke(GrapheneProxyHandler.java:164)
> at org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler.intercept(GrapheneProxyHandler.java:172)
> at org.openqa.selenium.firefox.FirefoxDriver$$EnhancerCGLIB$$cd9d0009.executeScript(<generated>)
> {code}
> Missing some interface in created proxy?
--
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-232) Enriched WebElement cannot be converted to JSON without manual unwrapping
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-232?page=com.atlassian.jira.plugin... ]
Lukáš Fryč updated ARQGRA-232:
------------------------------
Priority: Minor (was: Critical)
> Enriched WebElement cannot be converted to JSON without manual unwrapping
> -------------------------------------------------------------------------
>
> Key: ARQGRA-232
> URL: https://issues.jboss.org/browse/ARQGRA-232
> Project: Arquillian Graphene
> Issue Type: Bug
> Reporter: Jiří Štefek
> Priority: Minor
> Fix For: 2.0.0.Alpha3
>
>
> When you use something like this, WebElementToJsonConverter cannot convert enriched input:
> {code}
> @FindBy(css="input[id$=input]")
> WebElement input;
> public void blurInput(){
> JavascriptExecutor js = (JavascriptExecutor) GrapheneContext.getProxy();
> >>> js.executeScript("jQuery(arguments[0]).trigger('blur')", input); <<<
> }
> {code}
> error:
> {code}
> java.lang.IllegalArgumentException: Argument is of an illegal type: $Proxy37
> at org.openqa.selenium.remote.internal.WebElementToJsonConverter.apply(WebElementToJsonConverter.java:78)
> at com.google.common.collect.Iterators$8.next(Iterators.java:730)
> at com.google.common.collect.Lists.newArrayList(Lists.java:136)
> at com.google.common.collect.Lists.newArrayList(Lists.java:117)
> at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:437)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler.invokeReal(GrapheneProxyHandler.java:200)
> at org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler$1.invoke(GrapheneProxyHandler.java:134)
> at org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler.invoke(GrapheneProxyHandler.java:164)
> at org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler.intercept(GrapheneProxyHandler.java:172)
> at org.openqa.selenium.firefox.FirefoxDriver$$EnhancerCGLIB$$cd9d0009.executeScript(<generated>)
> {code}
> Missing some interface in created proxy?
--
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-232) Enriched WebElement cannot be converted to JSON without manual unwrapping
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-232?page=com.atlassian.jira.plugin... ]
Lukáš Fryč updated ARQGRA-232:
------------------------------
Assignee: Juraj Húska
> Enriched WebElement cannot be converted to JSON without manual unwrapping
> -------------------------------------------------------------------------
>
> Key: ARQGRA-232
> URL: https://issues.jboss.org/browse/ARQGRA-232
> Project: Arquillian Graphene
> Issue Type: Bug
> Reporter: Jiří Štefek
> Assignee: Juraj Húska
> Priority: Minor
> Fix For: 2.0.0.Alpha3
>
>
> When you use something like this, WebElementToJsonConverter cannot convert enriched input:
> {code}
> @FindBy(css="input[id$=input]")
> WebElement input;
> public void blurInput(){
> JavascriptExecutor js = (JavascriptExecutor) GrapheneContext.getProxy();
> >>> js.executeScript("jQuery(arguments[0]).trigger('blur')", input); <<<
> }
> {code}
> error:
> {code}
> java.lang.IllegalArgumentException: Argument is of an illegal type: $Proxy37
> at org.openqa.selenium.remote.internal.WebElementToJsonConverter.apply(WebElementToJsonConverter.java:78)
> at com.google.common.collect.Iterators$8.next(Iterators.java:730)
> at com.google.common.collect.Lists.newArrayList(Lists.java:136)
> at com.google.common.collect.Lists.newArrayList(Lists.java:117)
> at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:437)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler.invokeReal(GrapheneProxyHandler.java:200)
> at org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler$1.invoke(GrapheneProxyHandler.java:134)
> at org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler.invoke(GrapheneProxyHandler.java:164)
> at org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler.intercept(GrapheneProxyHandler.java:172)
> at org.openqa.selenium.firefox.FirefoxDriver$$EnhancerCGLIB$$cd9d0009.executeScript(<generated>)
> {code}
> Missing some interface in created proxy?
--
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-244) Type parameters should be uppercase
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-244?page=com.atlassian.jira.plugin... ]
Lukáš Fryč updated ARQGRA-244:
------------------------------
Priority: Minor (was: Major)
> Type parameters should be uppercase
> -----------------------------------
>
> Key: ARQGRA-244
> URL: https://issues.jboss.org/browse/ARQGRA-244
> Project: Arquillian Graphene
> Issue Type: Feature Request
> Components: api, core
> Reporter: Karel Piwko
> Assignee: Jan Papousek
> Priority: Minor
> Fix For: 2.0.0.Alpha3
>
>
> Modify source code to make all type parameters consist of uppercase letters only. Following standard significantly impair readability of the code.
> Consider following:
> {code}
> public interface FluentBase<Outer> {
> <Action> Outer commit(Action action);
> }
> {code}
> compared to following:
> {code}
> public interface FluentBase<OUTER> {
> <ACTION> OUTER commit(ACTION action);
> }
> {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
12 years
[JBoss JIRA] (ARQGRA-244) Type parameters should be uppercase
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-244?page=com.atlassian.jira.plugin... ]
Lukáš Fryč updated ARQGRA-244:
------------------------------
Assignee: Jan Papousek
> Type parameters should be uppercase
> -----------------------------------
>
> Key: ARQGRA-244
> URL: https://issues.jboss.org/browse/ARQGRA-244
> Project: Arquillian Graphene
> Issue Type: Feature Request
> Components: api, core
> Reporter: Karel Piwko
> Assignee: Jan Papousek
> Fix For: 2.0.0.Alpha3
>
>
> Modify source code to make all type parameters consist of uppercase letters only. Following standard significantly impair readability of the code.
> Consider following:
> {code}
> public interface FluentBase<Outer> {
> <Action> Outer commit(Action action);
> }
> {code}
> compared to following:
> {code}
> public interface FluentBase<OUTER> {
> <ACTION> OUTER commit(ACTION action);
> }
> {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
12 years
[JBoss JIRA] (ARQGRA-244) Type parameters should be uppercase
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-244?page=com.atlassian.jira.plugin... ]
Lukáš Fryč updated ARQGRA-244:
------------------------------
Fix Version/s: 2.0.0.Alpha3
> Type parameters should be uppercase
> -----------------------------------
>
> Key: ARQGRA-244
> URL: https://issues.jboss.org/browse/ARQGRA-244
> Project: Arquillian Graphene
> Issue Type: Feature Request
> Components: api, core
> Reporter: Karel Piwko
> Fix For: 2.0.0.Alpha3
>
>
> Modify source code to make all type parameters consist of uppercase letters only. Following standard significantly impair readability of the code.
> Consider following:
> {code}
> public interface FluentBase<Outer> {
> <Action> Outer commit(Action action);
> }
> {code}
> compared to following:
> {code}
> public interface FluentBase<OUTER> {
> <ACTION> OUTER commit(ACTION action);
> }
> {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
12 years