[JBoss JIRA] (ARQ-1751) Implement web-based console which streams reporting events in realtime
by Stefan Miklosovic (JIRA)
[ https://issues.jboss.org/browse/ARQ-1751?page=com.atlassian.jira.plugin.s... ]
Stefan Miklosovic commented on ARQ-1751:
----------------------------------------
Another idea is to make animated GIFs from recorded videos and stream them as well. You would in theory watch videos of test methods in a browser while your test is in fact still running as it would not have to be finished yet :)
> Implement web-based console which streams reporting events in realtime
> ----------------------------------------------------------------------
>
> Key: ARQ-1751
> URL: https://issues.jboss.org/browse/ARQ-1751
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Extension - Recorder
> Affects Versions: recorder_1.0.0.Alpha2
> Reporter: Stefan Miklosovic
> Assignee: Stefan Miklosovic
> Labels: hack-idea
>
> Every fired reporter event would be observed by additional observer which would send it to REST end point of some running "reporter server" so when user starts some test, he would see in web console in ordinary browser how some test is going.
> Reporter would "stream" reporting events to console ui so user would not have to wait until the whole test is done but he would see how test is going on in realtime.
> This can be handy particulary in CI environment.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 9 months
[JBoss JIRA] (ARQ-1751) Implement web-based console which streams reporting events in realtime
by Stefan Miklosovic (JIRA)
[ https://issues.jboss.org/browse/ARQ-1751?page=com.atlassian.jira.plugin.s... ]
Stefan Miklosovic commented on ARQ-1751:
----------------------------------------
Regarding of XML report, you could export it directly to JSON exporter
(1) https://github.com/arquillian/arquillian-recorder/blob/master/arquillian-...
The problem with full report pushing is that reporter constructs that JAXB model as a tree-like structure. If you want it more granular, I guess you would have to fire reporting event more frequently only with reporting snippets done after the last report action and somehow "append" them in a browser.
Image upload can be done later in the next iterations.
I would like to see this module in Reporter Beta1, Alpha4 is going to be release in a week I hope, I'll look at this in august.
> Implement web-based console which streams reporting events in realtime
> ----------------------------------------------------------------------
>
> Key: ARQ-1751
> URL: https://issues.jboss.org/browse/ARQ-1751
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Extension - Recorder
> Affects Versions: recorder_1.0.0.Alpha2
> Reporter: Stefan Miklosovic
> Assignee: Stefan Miklosovic
> Labels: hack-idea
>
> Every fired reporter event would be observed by additional observer which would send it to REST end point of some running "reporter server" so when user starts some test, he would see in web console in ordinary browser how some test is going.
> Reporter would "stream" reporting events to console ui so user would not have to wait until the whole test is done but he would see how test is going on in realtime.
> This can be handy particulary in CI environment.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 9 months
[JBoss JIRA] (ARQ-1779) Tests are not executed using combinations of @ApplyScriptBefore / @ApplyScriptAfter
by Thomas Küstermann (JIRA)
[ https://issues.jboss.org/browse/ARQ-1779?page=com.atlassian.jira.plugin.s... ]
Thomas Küstermann commented on ARQ-1779:
----------------------------------------
I just read the release announcement of Arquillian 1.1.5.Final
{quote}
Fixed false positives with JUnit from 1.1.4.Final
Arquillian Core 1.1.4.Final had a nasty bug where it would ‘erase’ some special exception cases that could happen In Container, that gave the Client side the wrong result.
This has now been fixed. Expected exceptions, Assumption and Injection errors should now be reported correctly(Both when using the @Rule and the @Test.expected variants).
{quote}
After upgrading to the new version, the false positive described here is gone. This issue can be closed as duplicate of ARQ-1758 I think.
> Tests are not executed using combinations of @ApplyScriptBefore / @ApplyScriptAfter
> -----------------------------------------------------------------------------------
>
> Key: ARQ-1779
> URL: https://issues.jboss.org/browse/ARQ-1779
> Project: Arquillian
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Extension - Persistence
> Affects Versions: persistence_1.0.0.Alpha7
> Reporter: Thomas Küstermann
> Assignee: Bartosz Majsak
> Fix For: persistence_1.0.0.next
>
>
> Forum reference: https://community.jboss.org/message/874117
> The following test case succeeds (green bar) although it should fail:
> {code:java}
> @RunWith(Arquillian.class)
> @DataSource("java:oracleDS")
> @Cleanup(phase=TestExecutionPhase.NONE)
> @ApplyScriptBefore("deploy-db-functionality.sql")
> @ApplyScriptAfter("undeploy-db-functionality.sql")
> public class PersistenceIT {
> // @Deployment ...
>
> @Test
> @ApplyScriptBefore("trigger-db-functionality.sql")
> public void shouldFail() {
> Assert.fail("should fail, but doesn't");
> }
> }
> {code}
> Removing class level annotations does not work either:
> {code:java}
> @Test
> @ApplyScriptBefore({ "deploy-db-functionality.sql", "trigger-db-functionality.sql" })
> @ApplyScriptAfter("undeploy-db-functionality.sql")
> public void shouldFail() { ... }
> {code}
> What actually works is to use only one ApplyScriptBefore / ApplyScriptAfter annotation per test, each with only one script to execute.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 9 months
[JBoss JIRA] (ARQ-1716) Provide support for TestNG
by Stefan Miklosovic (JIRA)
[ https://issues.jboss.org/browse/ARQ-1716?page=com.atlassian.jira.plugin.s... ]
Stefan Miklosovic resolved ARQ-1716.
------------------------------------
Fix Version/s: recorder_1.0.0.Alpha4
Resolution: Done
> Provide support for TestNG
> --------------------------
>
> Key: ARQ-1716
> URL: https://issues.jboss.org/browse/ARQ-1716
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Extension - Recorder
> Affects Versions: recorder_1.0.0.Alpha1
> Reporter: Juraj Húska
> Assignee: Juraj Húska
> Fix For: recorder_1.0.0.Alpha4
>
>
> Reporter extension does not work properly with TestNG. For example when test fails with exception, it causes to throw exception by reporter as well:
> {code}
> arquillianAfterTest(org.richfaces.tests.showcase.ajax.TestAjax) Time elapsed: 5.797 sec <<< FAILURE!
> java.lang.IllegalStateException: Test method is not annotated with @Test annotation
> at org.arquillian.recorder.reporter.impl.ReporterLifecycleObserver.isThrowingExpectedException(ReporterLifecycleObserver.java:262)
> at org.arquillian.recorder.reporter.impl.ReporterLifecycleObserver.observeAfterTest(ReporterLifecycleObserver.java:178)
> 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:606)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> 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.container.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:142)
> at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createAfterContext(ContainerEventController.java:134)
> 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:606)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
> at org.jboss.arquillian.testenricher.cdi.CreationalContextDestroyer.destory(CreationalContextDestroyer.java:44)
> 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:606)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
> at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:102)
> 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:606)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
> at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:84)
> 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:606)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
> at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:65)
> 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:606)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> 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.after(EventTestRunnerAdaptor.java:103)
> at org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(Arquillian.java:149)
> 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:606)
> at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
> at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:525)
> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)
> at org.testng.internal.Invoker.invokeMethod(Invoker.java:753)
> at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:842)
> at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1166)
> at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
> at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
> at org.testng.TestRunner.runWorkers(TestRunner.java:1178)
> at org.testng.TestRunner.privateRun(TestRunner.java:757)
> at org.testng.TestRunner.run(TestRunner.java:608)
> at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
> at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
> at org.testng.SuiteRunner.run(SuiteRunner.java:240)
> at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
> at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
> at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158)
> at org.testng.TestNG.runSuitesLocally(TestNG.java:1083)
> at org.testng.TestNG.run(TestNG.java:999)
> at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:69)
> at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:120)
> at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:104)
> at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:113)
> at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
> at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
> {code}
> Its because it is tested only for {{@Test}} from junit package.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 9 months
[JBoss JIRA] (ARQ-1135) standard-sockets -> http -> bound-port is undefined
by Bernard Labno (JIRA)
[ https://issues.jboss.org/browse/ARQ-1135?page=com.atlassian.jira.plugin.s... ]
Bernard Labno commented on ARQ-1135:
------------------------------------
Might be related to this https://issues.jboss.org/browse/AS7-3607
Try this:
{code:xml}
<container qualifier="jbossas7" default="true">
<configuration>
<property name="jbossHome">/home/bernard/bin/jboss-as-7.1.1.Final</property>
<property name="javaVmArguments">-Djava.net.preferIPv4Stack=true</property>
</configuration>
</container>
{code}
> standard-sockets -> http -> bound-port is undefined
> ---------------------------------------------------
>
> Key: ARQ-1135
> URL: https://issues.jboss.org/browse/ARQ-1135
> Project: Arquillian
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Environment: Mac Os X, open JDK 1.7
> Reporter: Stefan Frank
> Labels: mac, openjdk
>
> I get the following exception whenever I start an arquillian-test. It already happens after @Deployment has built a proper shrinkwrap. I'm trying to use the {code}<container qualifier="jboss7" default="true">{code} so it looks like there are issues while connecting to the jboss. Similar tests run fine on another platform (windows) and another jdk(oracles jdk 1.7) - so maybe this has to do something with the platform or the jdk?!
> {code}
> java.lang.RuntimeException: java.lang.IllegalStateException: standard-sockets -> http -> bound-port is undefined
> at org.jboss.as.arquillian.container.ManagementClient.getBinding(ManagementClient.java:222)
> at org.jboss.as.arquillian.container.ManagementClient.getWebUri(ManagementClient.java:111)
> at org.jboss.as.arquillian.container.ManagementClient.getDeploymentMetaData(ManagementClient.java:117)
> at org.jboss.as.arquillian.container.CommonDeployableContainer.deploy(CommonDeployableContainer.java:150)
> at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:161)
> at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:128)
> at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.executeOperation(ContainerDeployController.java:271)
> at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deploy(ContainerDeployController.java:127)
> 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.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.container.impl.client.ContainerDeploymentContextHandler.createDeploymentContext(ContainerDeploymentContextHandler.java:78)
> 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.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
> at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:57)
> 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.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
> at org.jboss.arquillian.container.impl.client.container.DeploymentExceptionHandler.verifyExpectedExceptionDuringDeploy(DeploymentExceptionHandler.java:50)
> 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.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.core.impl.EventImpl.fire(EventImpl.java:67)
> at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:95)
> at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:80)
> at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.forEachDeployment(ContainerDeployController.java:263)
> at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.forEachManagedDeployment(ContainerDeployController.java:239)
> at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deployManaged(ContainerDeployController.java:79)
> 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.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.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:101)
> 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.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:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> 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:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> 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.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
> at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
> Caused by: java.lang.IllegalStateException: standard-sockets -> http -> bound-port is undefined
> at org.jboss.as.arquillian.container.ManagementClient.defined(ManagementClient.java:193)
> at org.jboss.as.arquillian.container.ManagementClient.getBinding(ManagementClient.java:218)
> ... 90 more
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 9 months
[JBoss JIRA] (ARQ-1741) Injector might throw unchecked TypeNotPresentException
by Karel Piwko (JIRA)
[ https://issues.jboss.org/browse/ARQ-1741?page=com.atlassian.jira.plugin.s... ]
Karel Piwko commented on ARQ-1741:
----------------------------------
I don't think so. It would just be nice to indicate that via API signature so people might react to it.
> Injector might throw unchecked TypeNotPresentException
> ------------------------------------------------------
>
> Key: ARQ-1741
> URL: https://issues.jboss.org/browse/ARQ-1741
> Project: Arquillian
> Issue Type: Enhancement
> Security Level: Public(Everyone can see)
> Components: Base Implementation
> Affects Versions: 1.1.4.Final
> Reporter: Karel Piwko
> Priority: Minor
>
> *When*:
> I call Injector.get().inject()
> *And*:
> Service to be injected is not on classpath
> *Then*:
> Arquillian throws TypeNotPresentException. This is fine, however it should be in API so when looking into code this is more obvious.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 9 months
[JBoss JIRA] (ARQ-286) Should support JUnit @Rules
by Aslak Knutsen (JIRA)
[ https://issues.jboss.org/browse/ARQ-286?page=com.atlassian.jira.plugin.sy... ]
Aslak Knutsen closed ARQ-286.
-----------------------------
> Should support JUnit @Rules
> ---------------------------
>
> Key: ARQ-286
> URL: https://issues.jboss.org/browse/ARQ-286
> Project: Arquillian
> Issue Type: Feature Request
> Components: Test Harness Integration
> Reporter: Aslak Knutsen
> Assignee: Aslak Knutsen
> Fix For: 1.1.5.Final
>
>
> Using the JUnit feature @Rule becomes a problem when running against Remote servers since the @Rule is executed both on the Client and Container side.
> It works fine in Embedded Containers since the Test is executed in the same VM, but if the Rule is dependent on Container features, the @Test will fail.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 9 months
[JBoss JIRA] (ARQ-1437) NPE in ExceptionProxy.readExternal() for root cause leads to deserializationProblem = true
by Aslak Knutsen (JIRA)
[ https://issues.jboss.org/browse/ARQ-1437?page=com.atlassian.jira.plugin.s... ]
Aslak Knutsen closed ARQ-1437.
------------------------------
> NPE in ExceptionProxy.readExternal() for root cause leads to deserializationProblem = true
> ------------------------------------------------------------------------------------------
>
> Key: ARQ-1437
> URL: https://issues.jboss.org/browse/ARQ-1437
> Project: Arquillian
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 1.0.2.Final, 1.1.0.Final
> Reporter: Falko M.
> Assignee: Aslak Knutsen
> Priority: Minor
> Fix For: 1.1.5.Final
>
>
> See line 199 (for 1.0.2.Final):
> {code}
> // reset the cause, so we can de-serialize them individual
> SecurityActions.setFieldValue(Throwable.class, original, "cause", causeProxy.createException());
> {code}
> For the root cause of an exception, {{causeProxy}} will always be {{null}} and so a {{NullPointerException}} is thrown.
> As the code is wrapped in a try block with follwoing catch block:
> {code}
> catch (Throwable e) // ClassNotFoundExcpetion / NoClassDefFoundError
> {
> // ignore, could not load class on client side, move on and create a fake 'proxy' later
> deserializationProblem = true;
> }
> {code}
> the NPE is caught and is "expected" to be a {{ClassNotFoundExcpetion}} or {{NoClassDefFoundError}} which is clearly not the case.
> *Possible fix:*
> {{original.cause}} should only be overwritten when {{causeProxy}} is *not* null.
> *More context information:*
> I came across this problem while trying to find the reason for an unexpected {{ArquillianProxyException}}:
> {code}org.jboss.arquillian.test.spi.ArquillianProxyException: javax.ejb.EJBException : javax.persistence.OptimisticLockException [Proxied because : Original exception not deserilizable, ClassNotFoundException]{code}
> The root problem was not the NPE, but the {{ClassNotFoundException}} mislead me and so I debugged {{ExceptionProxy}}.
> I my case there is an {{InvalidClassException}} because of an older hibernate version on the client side.
> +So that is another problem of {{ExceptionProxy}} as it assumes that only {{ClassNotFoundExcpetion}} or {{NoClassDefFoundError}} can occur!+
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 9 months