[JBoss JIRA] (ARQ-1340) Drone webdriver is not created during @BeforeClass
by Karel Piwko (JIRA)
[ https://issues.jboss.org/browse/ARQ-1340?page=com.atlassian.jira.plugin.s... ]
Karel Piwko updated ARQ-1340:
-----------------------------
Assignee: (was: Karel Piwko)
> Drone webdriver is not created during @BeforeClass
> --------------------------------------------------
>
> Key: ARQ-1340
> URL: https://issues.jboss.org/browse/ARQ-1340
> Project: Arquillian
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Extension - Drone
> Affects Versions: drone_1.1.1.Final
> Environment: Arquillian JUnit Container 1.0.3.Final
> Arquillian Graphene Webdriver 2.0.0.Alpha3
> Arquillian Drone dependencies and Selenium dependencies 1.1.1.Final
> Arquillian Core dependencies 1.0.3.Final
> junit 4.8.1
> jdk 1.6
> Reporter: Alex Okrushko
>
> Drone webdriver is not created during @BeforeClass, however *is created during @Before or if called by GrapheneContext.getProxy()*
> The following does NOT work:
> {code:java}
> @RunWith(Arquillian.class)
> public class TestDroneLogin {
> @Drone
> private static WebDriver driver;
>
> @BeforeClass
> public static void setup(){
> //GrapheneContext.getProxy().navigate().to("http://google.com");
> driver.navigate().to("http://google.com");
> }
>
> @Test
> public void testInput(){
> driver.findElement(By.cssSelector("input#gbqfq"));
> }
> }
> {code}
> However, if I use {{GrapheneContext.getProxy()}} instead of {{driver}}, everything works as expected:
> {code:java}
> @BeforeClass
> public static void setup(){
> GrapheneContext.getProxy().navigate().to("http://google.com");
> }
> {code}
> ALSO, if {{@Before}} is used then Drone webdriver is created as expected, so this problem is specific to {{@BeforeClass}}
--
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, 11 months
[JBoss JIRA] (ARQ-1179) Mark a test so it will only run against certain browsers
by Karel Piwko (JIRA)
[ https://issues.jboss.org/browse/ARQ-1179?page=com.atlassian.jira.plugin.s... ]
Karel Piwko updated ARQ-1179:
-----------------------------
Assignee: (was: Karel Piwko)
> Mark a test so it will only run against certain browsers
> --------------------------------------------------------
>
> Key: ARQ-1179
> URL: https://issues.jboss.org/browse/ARQ-1179
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Extension - Drone
> Reporter: Brian Leathem
> Fix For: drone_1.2.0.next
>
>
> It would be useful to be able to annotate a particular test so it will only run when driven by a particular set of browsers.
> Some sample use cases:
> # Some tests cannot target the incomplete js impl found in html unit. I would mark such tests not to run when htmlunit is the configured browser (in CI for instance)
> # Some tests may target non-standard behaviour in certain browsers (older IE versions for instance) and may not make sense to run in all browsers. I would mark such tests not to run only when IE is the configured browser.
--
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, 11 months
[JBoss JIRA] (ARQ-1315) Make possible to configure firefox preferences via arquillian.xml
by Karel Piwko (JIRA)
[ https://issues.jboss.org/browse/ARQ-1315?page=com.atlassian.jira.plugin.s... ]
Karel Piwko updated ARQ-1315:
-----------------------------
Assignee: (was: Karel Piwko)
> Make possible to configure firefox preferences via arquillian.xml
> -----------------------------------------------------------------
>
> Key: ARQ-1315
> URL: https://issues.jboss.org/browse/ARQ-1315
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Extension - Drone
> Affects Versions: drone_1.1.1.Final, drone_1.2.0.Alpha2
> Reporter: Fabian Schwarzer
>
> In order to configure a FF extension (see ARQ-1259) one needs to add properties to FF (like on the about:config page) via arquillian.xml. This could be done by preparing a FF profile and configure this in arquillian.xml. Unfortunately drone does not seem to pick up the firefox_profile property in arquillian.xml (propably due to org.openqa.selenium.firefox.FirefoxDriver.java:184)
> So it would be great if there were some means to configure FF properties; either by configuring them in the arquillian.xml like done in ARQ-1259, or by making it possible to pass a profile via
> <extension qualifier="webdriver">
> <property name="browserCapabilities">firefox</property>
> <property name="firefox_profile">/path/to/profile</property>
> </extension>
> see also ARQ-1245
--
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, 11 months
[JBoss JIRA] (ARQ-1062) Arquillian Drone Webdriver's OperaDriver depchain is not compatible with ShrinkWrap Resolver 1.0.0-beta-7
by Karel Piwko (JIRA)
[ https://issues.jboss.org/browse/ARQ-1062?page=com.atlassian.jira.plugin.s... ]
Karel Piwko updated ARQ-1062:
-----------------------------
Assignee: (was: Karel Piwko)
> Arquillian Drone Webdriver's OperaDriver depchain is not compatible with ShrinkWrap Resolver 1.0.0-beta-7
> ---------------------------------------------------------------------------------------------------------
>
> Key: ARQ-1062
> URL: https://issues.jboss.org/browse/ARQ-1062
> Project: Arquillian
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Extension - Drone
> Affects Versions: drone_1.1.0.CR2
> Reporter: Karel Piwko
>
> When using OperaDriver defined in org.jboss.arquillian.extension:arquillian-drone-webdriver-depchain, together with ShrinkWrap Resolver on the classpath,
> following error might occur, depending on classpath ordering:
> {code}
> java.lang.RuntimeException: Unable to instantiate Drone via com.opera.core.systems.OperaDriver(Capabilities)
> at org.jboss.arquillian.drone.webdriver.factory.SecurityActions.newInstance(SecurityActions.java:160)
> at org.jboss.arquillian.drone.webdriver.factory.OperaDriverFactory.createInstance(OperaDriverFactory.java:70)
> at org.jboss.arquillian.drone.webdriver.factory.OperaDriverFactory.createInstance(OperaDriverFactory.java:35)
> at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:129)
> at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:43)
> at org.jboss.arquillian.drone.impl.DroneCreator.createWebTestBrowser(DroneCreator.java:71)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
> at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
> at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
> at org.jboss.arquillian.drone.impl.DroneConfigurator.configureDrone(DroneConfigurator.java:116)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
> at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
> at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
> at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
> at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:80)
> at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:182)
> at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)
> at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)
> at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
> at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147)
> at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
> at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
> at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
> at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
> at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
> at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
> Caused by: java.lang.NoSuchMethodError: com.google.common.base.Platform.precomputeCharMatcher(Lcom/google/common/base/CharMatcher;)Lcom/google/common/base/CharMatcher;
> at com.google.common.base.CharMatcher.precomputed(CharMatcher.java:719)
> at com.google.common.base.CharMatcher.<clinit>(CharMatcher.java:66)
> at com.google.common.base.CaseFormat.<clinit>(CaseFormat.java:32)
> at com.opera.core.systems.OperaSettings$Capability.<init>(OperaSettings.java:456)
> at com.opera.core.systems.OperaSettings$Capability.<init>(OperaSettings.java:110)
> at com.opera.core.systems.OperaSettings$Capability$1.<init>(OperaSettings.java:121)
> at com.opera.core.systems.OperaSettings$Capability.<clinit>(OperaSettings.java:121)
> at com.opera.core.systems.OperaSettings.<init>(OperaSettings.java:571)
> at com.opera.core.systems.OperaDriver.<init>(OperaDriver.java:160)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> at org.jboss.arquillian.drone.webdriver.factory.SecurityActions.newInstance(SecurityActions.java:142)
> ... 58 more
> {code}
> This happens due to com.google.common.base.Platform being included in guava-12 (RemoteWebDriver dependency) and google-collections (ShrinkWrap Resolver dependency)
--
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, 11 months
[JBoss JIRA] (ARQ-1206) Add configuration option to delete all cookies on reusable browser instance
by Karel Piwko (JIRA)
[ https://issues.jboss.org/browse/ARQ-1206?page=com.atlassian.jira.plugin.s... ]
Karel Piwko closed ARQ-1206.
----------------------------
> Add configuration option to delete all cookies on reusable browser instance
> ---------------------------------------------------------------------------
>
> Key: ARQ-1206
> URL: https://issues.jboss.org/browse/ARQ-1206
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Extension - Drone
> Affects Versions: drone_1.1.0.Final
> Reporter: Dan Allen
> Assignee: Karel Piwko
> Labels: starter
> Fix For: drone_1.2.0.Alpha2
>
>
> Story:
> *In order* to avoid false results from state leaking between deployments when using a reusable browser instance
> *As a* tester
> *I want* to be able to specify that Drone delete all cookies upon reconnecting the the resuable browser instance
> Scenario:
> *Given* that I've configured the WebDriver extension to use a remote reusable instance
> : *And* I've configure the WebDriver extension to delete all cookies (by setting the deleteAllCookies property to true)
> *When* I inject WebDriver into my test at a @Drone injection point
> *Then* The browser should have no cookies
> Rationale:
> The deleteAllCookies configuration option eliminates potential side effects of using a remote reusable browser instance.
--
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, 11 months