[JBoss JIRA] (ARQGRA-445) Wrong classes are injected to PageObject injection points in abstract test basis
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-445?page=com.atlassian.jira.plugin... ]
Lukáš Fryč closed ARQGRA-445.
-----------------------------
> Wrong classes are injected to PageObject injection points in abstract test basis
> --------------------------------------------------------------------------------
>
> Key: ARQGRA-445
> URL: https://issues.jboss.org/browse/ARQGRA-445
> Project: Arquillian Graphene
> Issue Type: Bug
> Affects Versions: 2.0.3.Final
> Reporter: Lukáš Fryč
> Assignee: Juraj Húska
> Fix For: 2.0.3.Final
>
>
> These tests fails because wrong instances are injected into abstract test basis:
> {code}
> Results :
> Tests in error:
> testPageObjectWithGenericTypeIsInitialized2(org.jboss.arquillian.graphene.ftest.enricher.TestInitializingGenericPageObjects2): org.jboss.arquillian.graphene.ftest.enricher.page.TestPage$$EnhancerByGraphene$$841cfb04 cannot be cast to org.jboss.arquillian.graphene.ftest.enricher.page.TestPage2
> testPageObjectWithGenericTypeIsInitialized2(org.jboss.arquillian.graphene.ftest.enricher.TestInitializingGenericPageObjects1): org.jboss.arquillian.graphene.ftest.enricher.page.TestPage$$EnhancerByGraphene$$841cfb04 cannot be cast to org.jboss.arquillian.graphene.ftest.enricher.page.TestPage2
> testInitializingPageObjectsDeclaredAsInnerClassesGeneric(org.jboss.arquillian.graphene.ftest.enricher.TestInitializingGenericPageObjects3): org.jboss.arquillian.graphene.ftest.enricher.page.TestPage$$EnhancerByGraphene$$841cfb04 cannot be cast to org.jboss.arquillian.graphene.ftest.enricher.TestInitializingGenericPageObjects3$InnerTestPage
> testInitializingPageObjectsDeclaredAsInnerClassesGeneric(org.jboss.arquillian.graphene.ftest.enricher.TestInitializingGenericPageObjects4): org.jboss.arquillian.graphene.ftest.enricher.page.TestPage$$EnhancerByGraphene$$841cfb04 cannot be cast to org.jboss.arquillian.graphene.ftest.enricher.TestInitializingGenericPageObjects4$InnerTestPage
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
11 years, 10 months
[JBoss JIRA] (ARQGRA-433) Prevent FieldAccessValidatorEnricher from reporting issues with public fields in test class
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-433?page=com.atlassian.jira.plugin... ]
Lukáš Fryč closed ARQGRA-433.
-----------------------------
> Prevent FieldAccessValidatorEnricher from reporting issues with public fields in test class
> -------------------------------------------------------------------------------------------
>
> Key: ARQGRA-433
> URL: https://issues.jboss.org/browse/ARQGRA-433
> Project: Arquillian Graphene
> Issue Type: Bug
> Components: core
> Affects Versions: 2.0.2.Final
> Reporter: Stefan Miklosovic
> Assignee: Juraj Húska
> Priority: Optional
> Fix For: 2.0.3.Final
>
>
> I have this test
> {code}
> @Rule
> public ExpectedException expectedException = ExpectedException.none();
> @Test
> @InSequence(2)
> @ReportMessage("This method should pass.")
> public void testWithExpectedExceptionRule() {
> expectedException.expect(RuntimeException.class);
> throw new RuntimeException("this exception is expected");
> }
> {code}
> Logger writes this out:
> WARNING: Public field 'expectedException' found in org.arquillian.droidium.devconf.AeroGearTestCase. Direct access to fields outside of the declaring class is not allowed.
> Apr 01, 2014 11:50:27 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> However that @Rule field _has to be_ public
> {quote}
> A field must be public, not static, and a subtype of TestRule
> {quote}
> So in this case validation does not make sense.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
11 years, 10 months
[JBoss JIRA] (ARQGRA-444) Functional tests fail to run due to surefire plugin failure
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-444?page=com.atlassian.jira.plugin... ]
Lukáš Fryč closed ARQGRA-444.
-----------------------------
> Functional tests fail to run due to surefire plugin failure
> -----------------------------------------------------------
>
> Key: ARQGRA-444
> URL: https://issues.jboss.org/browse/ARQGRA-444
> Project: Arquillian Graphene
> Issue Type: Bug
> Environment: $ mvn -v
> Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
> Maven home: /home/lfryc/Apps/apache-maven-3.0.4
> Java version: 1.7.0_51, vendor: Oracle Corporation
> Java home: /usr/java/jdk1.7.0_51/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "3.14.4-200.fc20.x86_64", arch: "amd64", family: "unix"
> Reporter: Lukáš Fryč
> Assignee: Lukáš Fryč
> Fix For: 2.0.3.Final
>
>
> {code}
> [INFO] --- maven-surefire-plugin:2.9:test (default-test) @ graphene-webdriver-ftest ---
> [INFO] Surefire report directory: /mnt/workspace/workspaces/arquillian/arquillian-graphene/ftest/target/surefire-reports
> [INFO] Using configured provider org.apache.maven.surefire.junitcore.JUnitCoreProvider
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> Running org.jboss.arquillian.graphene.ftest.intercept.TestInterceptorRegistration
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.jboss.arquillian.graphene.ftest.element.TestGrapheneElementAsPageFragmentRoot
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.jboss.arquillian.graphene.ftest.enricher.hierarchy.SomeAbstractTest
> Exception in thread "ThreadedStreamConsumer" java.lang.NoSuchMethodError: org.apache.maven.surefire.report.StackTraceWriter.getThrowable()Ljava/lang/Throwable;
> at org.apache.maven.surefire.report.XMLReporter.writeTestProblems(XMLReporter.java:238)
> at org.apache.maven.surefire.report.XMLReporter.testError(XMLReporter.java:208)
> at org.apache.maven.surefire.report.MulticastingReporter.testError(MulticastingReporter.java:73)
> at org.apache.maven.surefire.report.TestSetRunListener.testError(TestSetRunListener.java:139)
> at org.apache.maven.plugin.surefire.booterclient.output.ForkClient.consumeLine(ForkClient.java:112)
> at org.apache.maven.plugin.surefire.booterclient.output.ThreadedStreamConsumer$Pumper.run(ThreadedStreamConsumer.java:67)
> at java.lang.Thread.run(Thread.java:744)
> Results :
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
11 years, 10 months
[JBoss JIRA] (ARQGRA-441) xhrInterception breaks applications using jQuery 2.x
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-441?page=com.atlassian.jira.plugin... ]
Lukáš Fryč closed ARQGRA-441.
-----------------------------
> xhrInterception breaks applications using jQuery 2.x
> ----------------------------------------------------
>
> Key: ARQGRA-441
> URL: https://issues.jboss.org/browse/ARQGRA-441
> Project: Arquillian Graphene
> Issue Type: Bug
> Affects Versions: 2.0.0.Final, 2.0.2.Final
> Environment: Firefox 29, Chrome 34
> Reporter: Oliver Kišš
> Assignee: Oliver Kišš
> Priority: Critical
> Fix For: 2.0.3.Final
>
>
> After {{[kitchensink-backbone|https://github.com/jboss-developer/jboss-wfk-quickstarts/tree/2.6.x-develop/kitchensink-backbone]}} and {{[contacts-mobile-basic|https://github.com/jboss-developer/jboss-wfk-quickstarts/pull/154]}} quickstarts were updated to use jQuery 2.0.3, Graphene guards no longer work properly in their functional tests.
> After {{window.Graphene.xhrInterception.install()}}, the quickstarts do not react to responses to ajax requests they make (server side validation messages are not shown, member list is not displayed, no feedback is shown after a new member is registered).
> When {{window.Graphene.xhrInterception.uninstall()}} is run, the quickstarts start behaving normally again.
> I tried reproducing the issue with different versions of javascript libraries used in the quickstarts and could reproduce it if jQuery 2.x was used (tested 2.0.3 and 2.1.0). Other libraries do not seem to have an effect on the issue.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
11 years, 10 months