[JBoss JIRA] (ARQ-2145) Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
by Ankit Ojha (JIRA)
[ https://issues.jboss.org/browse/ARQ-2145?page=com.atlassian.jira.plugin.s... ]
Ankit Ojha updated ARQ-2145:
----------------------------
Description:
Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
+Arquillian.xml+
{noformat}
<property name="remoteAddress">${gridhubaddress}</property>
<property name="remote">true</property>
<property name="chromePrintOptions">true</property>
<property name="chromeArguments">-start-maximized</property>
<property name="chromeExperimentalOption">
{
"prefs": {
"download.default_directory": "${downloadlocation}"
}
}
</property>
{noformat}
*+Note+*
- Desired Capabilities were captured and worked as expected when executed {color:red}without {color}selenium grid
- Debugging with Remote WebDriver showed that it has the expected DesiredCapabilities (check screen attached) but when the browser was launched, it was launched without capabilites
- Initially my thought was <property name="chromeExperimentalOption"> had an issue but when i added<property name="chromeArguments">-start-maximized</property> , it did not worked as well. Without Grid both worked.
was:
Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
+Arquillian.xml+
{noformat}
<property name="remoteAddress">${gridhubaddress}</property>
<property name="remote">true</property>
<property name="chromePrintOptions">true</property>
<property name="chromeArguments">-start-maximized</property>
<property name="chromeExperimentalOption">
{
"prefs": {
"download.default_directory": "${downloadlocation}"
}
}
</property>
{noformat}
*+Note+*
- Desired Capabilities were captured and worked as expected when executed {color:red}without {color}selenium grid
- Debugging with Remote WebDriver shows
!image-2017-09-21-17-10-11-058.png|thumbnail!
- Initially my thought was <property name="chromeExperimentalOption"> had an issue but when i added<property name="chromeArguments">-start-maximized</property> , it did not worked as well. Without Grid both worked.
> Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
> -------------------------------------------------------------------------
>
> Key: ARQ-2145
> URL: https://issues.jboss.org/browse/ARQ-2145
> Project: Arquillian
> Issue Type: Bug
> Components: Configuration
> Environment: OS:Windows
> Browser:Chrome
> Reporter: Ankit Ojha
> Attachments: image-2017-09-21-17-10-11-058.png
>
>
> Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
> +Arquillian.xml+
> {noformat}
> <property name="remoteAddress">${gridhubaddress}</property>
> <property name="remote">true</property>
> <property name="chromePrintOptions">true</property>
> <property name="chromeArguments">-start-maximized</property>
> <property name="chromeExperimentalOption">
> {
> "prefs": {
> "download.default_directory": "${downloadlocation}"
> }
> }
> </property>
> {noformat}
> *+Note+*
> - Desired Capabilities were captured and worked as expected when executed {color:red}without {color}selenium grid
> - Debugging with Remote WebDriver showed that it has the expected DesiredCapabilities (check screen attached) but when the browser was launched, it was launched without capabilites
> - Initially my thought was <property name="chromeExperimentalOption"> had an issue but when i added<property name="chromeArguments">-start-maximized</property> , it did not worked as well. Without Grid both worked.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 3 months
[JBoss JIRA] (ARQ-2145) Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
by Ankit Ojha (JIRA)
[ https://issues.jboss.org/browse/ARQ-2145?page=com.atlassian.jira.plugin.s... ]
Ankit Ojha updated ARQ-2145:
----------------------------
Description:
Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
+Arquillian.xml+
{noformat}
<property name="remoteAddress">${gridhubaddress}</property>
<property name="remote">true</property>
<property name="chromePrintOptions">true</property>
<property name="chromeArguments">-start-maximized</property>
<property name="chromeExperimentalOption">
{
"prefs": {
"download.default_directory": "${downloadlocation}"
}
}
</property>
{noformat}
*+Note+*
- Desired Capabilities were captured and worked as expected when executed {color:red}without {color}selenium grid
- Debugging with Remote WebDriver shows
!image-2017-09-21-17-10-11-058.png|thumbnail!
- Initially my thought was <property name="chromeExperimentalOption"> had an issue but when i added<property name="chromeArguments">-start-maximized</property> , it did not worked as well. Without Grid both worked.
was:
Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
+Arquillian.xml+
{noformat}
<property name="remoteAddress">${gridhubaddress}</property>
<property name="remote">true</property>
<property name="chromePrintOptions">true</property>
<property name="chromeArguments">-start-maximized</property>
<property name="chromeExperimentalOption">
{
"prefs": {
"download.default_directory": "${downloadlocation}"
}
}
</property>
{noformat}
*+Note+*
- Desired Capabilities were captured and worked as expected when executed without selenium grid
- Debugging with Remote WebDriver shows
!image-2017-09-21-17-10-11-058.png|thumbnail!
- Initially my thought was <property name="chromeExperimentalOption"> had an issue but when i added<property name="chromeArguments">-start-maximized</property> , it did not worked as well. Without Grid both worked.
> Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
> -------------------------------------------------------------------------
>
> Key: ARQ-2145
> URL: https://issues.jboss.org/browse/ARQ-2145
> Project: Arquillian
> Issue Type: Bug
> Components: Configuration
> Environment: OS:Windows
> Browser:Chrome
> Reporter: Ankit Ojha
> Attachments: image-2017-09-21-17-10-11-058.png
>
>
> Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
> +Arquillian.xml+
> {noformat}
> <property name="remoteAddress">${gridhubaddress}</property>
> <property name="remote">true</property>
> <property name="chromePrintOptions">true</property>
> <property name="chromeArguments">-start-maximized</property>
> <property name="chromeExperimentalOption">
> {
> "prefs": {
> "download.default_directory": "${downloadlocation}"
> }
> }
> </property>
> {noformat}
> *+Note+*
> - Desired Capabilities were captured and worked as expected when executed {color:red}without {color}selenium grid
> - Debugging with Remote WebDriver shows
> !image-2017-09-21-17-10-11-058.png|thumbnail!
> - Initially my thought was <property name="chromeExperimentalOption"> had an issue but when i added<property name="chromeArguments">-start-maximized</property> , it did not worked as well. Without Grid both worked.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 3 months
[JBoss JIRA] (ARQ-2145) Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
by Ankit Ojha (JIRA)
[ https://issues.jboss.org/browse/ARQ-2145?page=com.atlassian.jira.plugin.s... ]
Ankit Ojha updated ARQ-2145:
----------------------------
Description:
Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
+Arquillian.xml+
{noformat}
<property name="remoteAddress">${gridhubaddress}</property>
<property name="remote">true</property>
<property name="chromePrintOptions">true</property>
<property name="chromeArguments">-start-maximized</property>
<property name="chromeExperimentalOption">
{
"prefs": {
"download.default_directory": "${downloadlocation}"
}
}
</property>
{noformat}
*+Note+*
- Desired Capabilities were captured and worked as expected when executed without selenium grid
- Debugging with Remote WebDriver shows
!image-2017-09-21-17-10-11-058.png|thumbnail!
- Initially my thought was <property name="chromeExperimentalOption"> had an issue but when i added<property name="chromeArguments">-start-maximized</property> , it did not worked as well. Without Grid both worked.
was:
Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
+Arquillian.xml+
{noformat}
<property name="remoteAddress">${gridhubaddress}</property>
<property name="remote">true</property>
<property name="chromePrintOptions">true</property>
<property name="chromeArguments">-start-maximized</property>
<property name="chromeExperimentalOption">
{
"prefs": {
"download.default_directory": "${downloadlocation}"
}
}
</property>
{noformat}
!image-2017-09-21-17-10-11-058.png|thumbnail!
> Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
> -------------------------------------------------------------------------
>
> Key: ARQ-2145
> URL: https://issues.jboss.org/browse/ARQ-2145
> Project: Arquillian
> Issue Type: Bug
> Components: Configuration
> Environment: OS:Windows
> Browser:Chrome
> Reporter: Ankit Ojha
> Attachments: image-2017-09-21-17-10-11-058.png
>
>
> Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
> +Arquillian.xml+
> {noformat}
> <property name="remoteAddress">${gridhubaddress}</property>
> <property name="remote">true</property>
> <property name="chromePrintOptions">true</property>
> <property name="chromeArguments">-start-maximized</property>
> <property name="chromeExperimentalOption">
> {
> "prefs": {
> "download.default_directory": "${downloadlocation}"
> }
> }
> </property>
> {noformat}
> *+Note+*
> - Desired Capabilities were captured and worked as expected when executed without selenium grid
> - Debugging with Remote WebDriver shows
> !image-2017-09-21-17-10-11-058.png|thumbnail!
> - Initially my thought was <property name="chromeExperimentalOption"> had an issue but when i added<property name="chromeArguments">-start-maximized</property> , it did not worked as well. Without Grid both worked.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 3 months
[JBoss JIRA] (ARQ-2145) Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
by Ankit Ojha (JIRA)
Ankit Ojha created ARQ-2145:
-------------------------------
Summary: Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
Key: ARQ-2145
URL: https://issues.jboss.org/browse/ARQ-2145
Project: Arquillian
Issue Type: Bug
Components: Configuration
Environment: OS:Windows
Browser:Chrome
Reporter: Ankit Ojha
Attachments: image-2017-09-21-17-10-11-058.png
Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
+Arquillian.xml+
{noformat}
<property name="remoteAddress">${gridhubaddress}</property>
<property name="remote">true</property>
<property name="chromePrintOptions">true</property>
<property name="chromeArguments">-start-maximized</property>
<property name="chromeExperimentalOption">
{
"prefs": {
"download.default_directory": "${downloadlocation}"
}
}
</property>
{noformat}
!image-2017-09-21-17-10-11-058.png|thumbnail!
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 3 months
[JBoss JIRA] (ARQ-2144) arquillian-testng.jar is missing majority of TestNG classes in Wildfly-Swarm remote test
by Scott Stark (JIRA)
[ https://issues.jboss.org/browse/ARQ-2144?page=com.atlassian.jira.plugin.s... ]
Scott Stark commented on ARQ-2144:
----------------------------------
The TestNGWorkaround attachment is an example AuxiliaryArchiveAppender that I can use to include the required org.testng classes in order to run the test under Wildfly-Swarm without the class loading failures.
> arquillian-testng.jar is missing majority of TestNG classes in Wildfly-Swarm remote test
> ----------------------------------------------------------------------------------------
>
> Key: ARQ-2144
> URL: https://issues.jboss.org/browse/ARQ-2144
> Project: Arquillian
> Issue Type: Bug
> Components: Base Implementation, Daemon
> Affects Versions: 1.1.13.Final
> Environment: jdk1.8.0_141 OSX
> Reporter: Scott Stark
> Assignee: Andrew Rubinger
> Attachments: TestNGWorkaround.java
>
>
> I have created a simple cdi test that illustrates a problem I'm seeing with TestNG based remote tests running in Wildfly-Swarm. The issue is that the arquillian-testng.jar that is attached to the test WebArchive is missing the majority of TestNG classes, and so the test fails to load in the container runtime.
> I have created a https://github.com/starksm64/arq-testnq-tests repository with two tests that illustrate the problem.
> There is a ex.ExceptionTest that illustrates the inability to deploy the test due to NoClassDefFoundError:
> {noformat}
> 2017-09-20 16:49:37,560 ERROR [stderr] (nioEventLoopGroup-3-1) java.lang.NoClassDefFoundError: Failed to link ex/ExceptionTest (Module "deployment.exTest.war:main" from Service Module Loader): Failed to link org/jboss/arquillian/testng/Arquillian (Module "deployment.exTest.war:main" from Service Module Loader): Failed to link org/testng/IHookable (Module "deployment.exTest.war:main" from Service Module Loader): org/testng/ITestNGListener
> 2017-09-20 16:49:37,560 ERROR [stderr] (nioEventLoopGroup-3-1) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 2017-09-20 16:49:37,560 ERROR [stderr] (nioEventLoopGroup-3-1) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> 2017-09-20 16:49:37,560 ERROR [stderr] (nioEventLoopGroup-3-1) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> 2017-09-20 16:49:37,560 ERROR [stderr] (nioEventLoopGroup-3-1) at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
> 2017-09-20 16:49:37,561 ERROR [stderr] (nioEventLoopGroup-3-1) at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:446)
> 2017-09-20 16:49:37,561 ERROR [stderr] (nioEventLoopGroup-3-1) at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274)
> 2017-09-20 16:49:37,561 ERROR [stderr] (nioEventLoopGroup-3-1) at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:78)
> 2017-09-20 16:49:37,561 ERROR [stderr] (nioEventLoopGroup-3-1) at org.jboss.modules.Module.loadModuleClass(Module.java:606)
> 2017-09-20 16:49:37,561 ERROR [stderr] (nioEventLoopGroup-3-1) at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
> 2017-09-20 16:49:37,561 ERROR [stderr] (nioEventLoopGroup-3-1) at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
> 2017-09-20 16:49:37,561 ERROR [stderr] (nioEventLoopGroup-3-1) at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
> 2017-09-20 16:49:37,561 ERROR [stderr] (nioEventLoopGroup-3-1) at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
> 2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at org.wildfly.swarm.arquillian.daemon.TestRunner.executeTest(TestRunner.java:45)
> 2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at org.wildfly.swarm.arquillian.daemon.server.Server.executeTest(Server.java:250)
> 2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at org.wildfly.swarm.arquillian.daemon.server.Server$StringCommandHandler.channelRead0(Server.java:361)
> 2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at org.wildfly.swarm.arquillian.daemon.server.Server$StringCommandHandler.channelRead0(Server.java:303)
> 2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
> 2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
> 2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
> 2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
> 2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
> 2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
> 2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:276)
> 2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:263)
> 2017-09-20 16:49:37,563 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
> 2017-09-20 16:49:37,563 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
> 2017-09-20 16:49:37,563 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)
> 2017-09-20 16:49:37,563 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
> 2017-09-20 16:49:37,563 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
> 2017-09-20 16:49:37,563 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
> 2017-09-20 16:49:37,563 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
> 2017-09-20 16:49:37,563 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
> 2017-09-20 16:49:37,563 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
> 2017-09-20 16:49:37,564 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
> 2017-09-20 16:49:37,564 ERROR [stderr] (nioEventLoopGroup-3-1) at java.lang.Thread.run(Thread.java:748)
> {noformat}
> The test includes a TestNGArchiveProcessor AuxiliaryArchiveProcessor implementation that dumps out the arquillian-testng.jar seen in the WebArchive. It shows only the following org.testng package classes when run form within the Intellij IDEA IDE:
> {noformat}
> *-testng.jar contents: arquillian-testng.jar:
> /org/
> /org/testng/
> /org/testng/IDEARemoteTestNG.class
> /org/testng/IDEATestNGConfigurationListener.class
> /org/testng/IDEATestNGInvokedMethodListener.class
> /org/testng/IDEATestNGListener.class
> /org/testng/IDEATestNGRemoteListener$DelegatedResult.class
> /org/testng/IDEATestNGRemoteListener$ExposedTestResult.class
> /org/testng/IDEATestNGRemoteListener.class
> /org/testng/IDEATestNGSuiteListener.class
> /org/testng/IDEATestNGTestListener.class
> /org/testng/MapSerializerUtil$1.class
> /org/testng/MapSerializerUtil$EscapeInfoProvider.class
> /org/testng/MapSerializerUtil.class
> /org/testng/RemoteTestNGStarter.class
> /org/testng/TestNGExpectedPatterns.class
> /org/testng/TestNGForkedSplitter.class
> /org/testng/TestNGForkedStarter.class
> /org/testng/TestNGTestDiscoveryListener.class
> /org/testng/TestNGXmlSuiteHelper$Logger$1.class
> /org/testng/TestNGXmlSuiteHelper$Logger.class
> /org/testng/TestNGXmlSuiteHelper.class
> {noformat}
> When run from the command line the arquillian-testng.jar contains no org.testng package classes.
> The underlying problem seems to be how the org.jboss.shrinkwrap.impl.base.URLPackageScanner includes package classes. I have a simple arq.URLPackageScannerTest in the that illustrates how URLPackageScanner fails to located org.testng classes.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 3 months
[JBoss JIRA] (ARQ-2144) arquillian-testng.jar is missing majority of TestNG classes in Wildfly-Swarm remote test
by Scott Stark (JIRA)
[ https://issues.jboss.org/browse/ARQ-2144?page=com.atlassian.jira.plugin.s... ]
Scott Stark updated ARQ-2144:
-----------------------------
Attachment: TestNGWorkaround.java
> arquillian-testng.jar is missing majority of TestNG classes in Wildfly-Swarm remote test
> ----------------------------------------------------------------------------------------
>
> Key: ARQ-2144
> URL: https://issues.jboss.org/browse/ARQ-2144
> Project: Arquillian
> Issue Type: Bug
> Components: Base Implementation, Daemon
> Affects Versions: 1.1.13.Final
> Environment: jdk1.8.0_141 OSX
> Reporter: Scott Stark
> Assignee: Andrew Rubinger
> Attachments: TestNGWorkaround.java
>
>
> I have created a simple cdi test that illustrates a problem I'm seeing with TestNG based remote tests running in Wildfly-Swarm. The issue is that the arquillian-testng.jar that is attached to the test WebArchive is missing the majority of TestNG classes, and so the test fails to load in the container runtime.
> I have created a https://github.com/starksm64/arq-testnq-tests repository with two tests that illustrate the problem.
> There is a ex.ExceptionTest that illustrates the inability to deploy the test due to NoClassDefFoundError:
> {noformat}
> 2017-09-20 16:49:37,560 ERROR [stderr] (nioEventLoopGroup-3-1) java.lang.NoClassDefFoundError: Failed to link ex/ExceptionTest (Module "deployment.exTest.war:main" from Service Module Loader): Failed to link org/jboss/arquillian/testng/Arquillian (Module "deployment.exTest.war:main" from Service Module Loader): Failed to link org/testng/IHookable (Module "deployment.exTest.war:main" from Service Module Loader): org/testng/ITestNGListener
> 2017-09-20 16:49:37,560 ERROR [stderr] (nioEventLoopGroup-3-1) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 2017-09-20 16:49:37,560 ERROR [stderr] (nioEventLoopGroup-3-1) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> 2017-09-20 16:49:37,560 ERROR [stderr] (nioEventLoopGroup-3-1) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> 2017-09-20 16:49:37,560 ERROR [stderr] (nioEventLoopGroup-3-1) at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
> 2017-09-20 16:49:37,561 ERROR [stderr] (nioEventLoopGroup-3-1) at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:446)
> 2017-09-20 16:49:37,561 ERROR [stderr] (nioEventLoopGroup-3-1) at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274)
> 2017-09-20 16:49:37,561 ERROR [stderr] (nioEventLoopGroup-3-1) at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:78)
> 2017-09-20 16:49:37,561 ERROR [stderr] (nioEventLoopGroup-3-1) at org.jboss.modules.Module.loadModuleClass(Module.java:606)
> 2017-09-20 16:49:37,561 ERROR [stderr] (nioEventLoopGroup-3-1) at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
> 2017-09-20 16:49:37,561 ERROR [stderr] (nioEventLoopGroup-3-1) at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
> 2017-09-20 16:49:37,561 ERROR [stderr] (nioEventLoopGroup-3-1) at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
> 2017-09-20 16:49:37,561 ERROR [stderr] (nioEventLoopGroup-3-1) at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
> 2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at org.wildfly.swarm.arquillian.daemon.TestRunner.executeTest(TestRunner.java:45)
> 2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at org.wildfly.swarm.arquillian.daemon.server.Server.executeTest(Server.java:250)
> 2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at org.wildfly.swarm.arquillian.daemon.server.Server$StringCommandHandler.channelRead0(Server.java:361)
> 2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at org.wildfly.swarm.arquillian.daemon.server.Server$StringCommandHandler.channelRead0(Server.java:303)
> 2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
> 2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
> 2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
> 2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
> 2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
> 2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
> 2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:276)
> 2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:263)
> 2017-09-20 16:49:37,563 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
> 2017-09-20 16:49:37,563 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
> 2017-09-20 16:49:37,563 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)
> 2017-09-20 16:49:37,563 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
> 2017-09-20 16:49:37,563 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
> 2017-09-20 16:49:37,563 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
> 2017-09-20 16:49:37,563 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
> 2017-09-20 16:49:37,563 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
> 2017-09-20 16:49:37,563 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
> 2017-09-20 16:49:37,564 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
> 2017-09-20 16:49:37,564 ERROR [stderr] (nioEventLoopGroup-3-1) at java.lang.Thread.run(Thread.java:748)
> {noformat}
> The test includes a TestNGArchiveProcessor AuxiliaryArchiveProcessor implementation that dumps out the arquillian-testng.jar seen in the WebArchive. It shows only the following org.testng package classes when run form within the Intellij IDEA IDE:
> {noformat}
> *-testng.jar contents: arquillian-testng.jar:
> /org/
> /org/testng/
> /org/testng/IDEARemoteTestNG.class
> /org/testng/IDEATestNGConfigurationListener.class
> /org/testng/IDEATestNGInvokedMethodListener.class
> /org/testng/IDEATestNGListener.class
> /org/testng/IDEATestNGRemoteListener$DelegatedResult.class
> /org/testng/IDEATestNGRemoteListener$ExposedTestResult.class
> /org/testng/IDEATestNGRemoteListener.class
> /org/testng/IDEATestNGSuiteListener.class
> /org/testng/IDEATestNGTestListener.class
> /org/testng/MapSerializerUtil$1.class
> /org/testng/MapSerializerUtil$EscapeInfoProvider.class
> /org/testng/MapSerializerUtil.class
> /org/testng/RemoteTestNGStarter.class
> /org/testng/TestNGExpectedPatterns.class
> /org/testng/TestNGForkedSplitter.class
> /org/testng/TestNGForkedStarter.class
> /org/testng/TestNGTestDiscoveryListener.class
> /org/testng/TestNGXmlSuiteHelper$Logger$1.class
> /org/testng/TestNGXmlSuiteHelper$Logger.class
> /org/testng/TestNGXmlSuiteHelper.class
> {noformat}
> When run from the command line the arquillian-testng.jar contains no org.testng package classes.
> The underlying problem seems to be how the org.jboss.shrinkwrap.impl.base.URLPackageScanner includes package classes. I have a simple arq.URLPackageScannerTest in the that illustrates how URLPackageScanner fails to located org.testng classes.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 3 months
[JBoss JIRA] (ARQ-2144) arquillian-testng.jar is missing majority of TestNG classes in Wildfly-Swarm remote test
by Scott Stark (JIRA)
Scott Stark created ARQ-2144:
--------------------------------
Summary: arquillian-testng.jar is missing majority of TestNG classes in Wildfly-Swarm remote test
Key: ARQ-2144
URL: https://issues.jboss.org/browse/ARQ-2144
Project: Arquillian
Issue Type: Bug
Components: Base Implementation, Daemon
Affects Versions: 1.1.13.Final
Environment: jdk1.8.0_141 OSX
Reporter: Scott Stark
Assignee: Andrew Rubinger
I have created a simple cdi test that illustrates a problem I'm seeing with TestNG based remote tests running in Wildfly-Swarm. The issue is that the arquillian-testng.jar that is attached to the test WebArchive is missing the majority of TestNG classes, and so the test fails to load in the container runtime.
I have created a https://github.com/starksm64/arq-testnq-tests repository with two tests that illustrate the problem.
There is a ex.ExceptionTest that illustrates the inability to deploy the test due to NoClassDefFoundError:
{noformat}
2017-09-20 16:49:37,560 ERROR [stderr] (nioEventLoopGroup-3-1) java.lang.NoClassDefFoundError: Failed to link ex/ExceptionTest (Module "deployment.exTest.war:main" from Service Module Loader): Failed to link org/jboss/arquillian/testng/Arquillian (Module "deployment.exTest.war:main" from Service Module Loader): Failed to link org/testng/IHookable (Module "deployment.exTest.war:main" from Service Module Loader): org/testng/ITestNGListener
2017-09-20 16:49:37,560 ERROR [stderr] (nioEventLoopGroup-3-1) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2017-09-20 16:49:37,560 ERROR [stderr] (nioEventLoopGroup-3-1) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
2017-09-20 16:49:37,560 ERROR [stderr] (nioEventLoopGroup-3-1) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
2017-09-20 16:49:37,560 ERROR [stderr] (nioEventLoopGroup-3-1) at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
2017-09-20 16:49:37,561 ERROR [stderr] (nioEventLoopGroup-3-1) at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:446)
2017-09-20 16:49:37,561 ERROR [stderr] (nioEventLoopGroup-3-1) at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274)
2017-09-20 16:49:37,561 ERROR [stderr] (nioEventLoopGroup-3-1) at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:78)
2017-09-20 16:49:37,561 ERROR [stderr] (nioEventLoopGroup-3-1) at org.jboss.modules.Module.loadModuleClass(Module.java:606)
2017-09-20 16:49:37,561 ERROR [stderr] (nioEventLoopGroup-3-1) at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
2017-09-20 16:49:37,561 ERROR [stderr] (nioEventLoopGroup-3-1) at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
2017-09-20 16:49:37,561 ERROR [stderr] (nioEventLoopGroup-3-1) at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
2017-09-20 16:49:37,561 ERROR [stderr] (nioEventLoopGroup-3-1) at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at org.wildfly.swarm.arquillian.daemon.TestRunner.executeTest(TestRunner.java:45)
2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at org.wildfly.swarm.arquillian.daemon.server.Server.executeTest(Server.java:250)
2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at org.wildfly.swarm.arquillian.daemon.server.Server$StringCommandHandler.channelRead0(Server.java:361)
2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at org.wildfly.swarm.arquillian.daemon.server.Server$StringCommandHandler.channelRead0(Server.java:303)
2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:276)
2017-09-20 16:49:37,562 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:263)
2017-09-20 16:49:37,563 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
2017-09-20 16:49:37,563 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
2017-09-20 16:49:37,563 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)
2017-09-20 16:49:37,563 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
2017-09-20 16:49:37,563 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
2017-09-20 16:49:37,563 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
2017-09-20 16:49:37,563 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
2017-09-20 16:49:37,563 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
2017-09-20 16:49:37,563 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
2017-09-20 16:49:37,564 ERROR [stderr] (nioEventLoopGroup-3-1) at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
2017-09-20 16:49:37,564 ERROR [stderr] (nioEventLoopGroup-3-1) at java.lang.Thread.run(Thread.java:748)
{noformat}
The test includes a TestNGArchiveProcessor AuxiliaryArchiveProcessor implementation that dumps out the arquillian-testng.jar seen in the WebArchive. It shows only the following org.testng package classes when run form within the Intellij IDEA IDE:
{noformat}
*-testng.jar contents: arquillian-testng.jar:
/org/
/org/testng/
/org/testng/IDEARemoteTestNG.class
/org/testng/IDEATestNGConfigurationListener.class
/org/testng/IDEATestNGInvokedMethodListener.class
/org/testng/IDEATestNGListener.class
/org/testng/IDEATestNGRemoteListener$DelegatedResult.class
/org/testng/IDEATestNGRemoteListener$ExposedTestResult.class
/org/testng/IDEATestNGRemoteListener.class
/org/testng/IDEATestNGSuiteListener.class
/org/testng/IDEATestNGTestListener.class
/org/testng/MapSerializerUtil$1.class
/org/testng/MapSerializerUtil$EscapeInfoProvider.class
/org/testng/MapSerializerUtil.class
/org/testng/RemoteTestNGStarter.class
/org/testng/TestNGExpectedPatterns.class
/org/testng/TestNGForkedSplitter.class
/org/testng/TestNGForkedStarter.class
/org/testng/TestNGTestDiscoveryListener.class
/org/testng/TestNGXmlSuiteHelper$Logger$1.class
/org/testng/TestNGXmlSuiteHelper$Logger.class
/org/testng/TestNGXmlSuiteHelper.class
{noformat}
When run from the command line the arquillian-testng.jar contains no org.testng package classes.
The underlying problem seems to be how the org.jboss.shrinkwrap.impl.base.URLPackageScanner includes package classes. I have a simple arq.URLPackageScannerTest in the that illustrates how URLPackageScanner fails to located org.testng classes.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 3 months
[JBoss JIRA] (ARQ-2143) Deployments that expect exceptions are not testable.
by John Ament (JIRA)
John Ament created ARQ-2143:
-------------------------------
Summary: Deployments that expect exceptions are not testable.
Key: ARQ-2143
URL: https://issues.jboss.org/browse/ARQ-2143
Project: Arquillian
Issue Type: Bug
Reporter: John Ament
Microprofile has some spec tests that rely on throwing exceptions on deployment. https://github.com/eclipse/microprofile-jwt-auth/blob/master/tck/src/test... is one such test (ignore that it doesn't extend Arquillian).
The problem is that its not the code in the package that generates the exception, but classes added via an ArchiveProcessor, e.g. a CDI extension, that will generate the exception.
I'm not sure the reasoning behind this behavior, but I don't see why {{ShouldThrowException}} implies that an archive is not testable. Can this behavior be changed?
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 4 months
[JBoss JIRA] (ARQ-2130) Unaccessible arquillian-was-remote-8.5
by Gerhard Poul (JIRA)
[ https://issues.jboss.org/browse/ARQ-2130?page=com.atlassian.jira.plugin.s... ]
Gerhard Poul commented on ARQ-2130:
-----------------------------------
[~vramik] Similar to what you did in [2] there are official install artifacts from IBM that install the JARs available at http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/mave... but I decided against using them as we need the admin.client and jgss-provider, both of which are not on the official list provided by IBM, so it would be hit and miss whether they would work for anyone and would just require an additional step as well.
I'll be more than happy to move over to these dependencies if someone can convince IBM to include those JARs on the official list as people using Rational Application Developer will already have them as well.
I've also updated the documentation and I hope this makes it clearer that at this point in time the environment variables are required during runtime as well.
> Unaccessible arquillian-was-remote-8.5
> --------------------------------------
>
> Key: ARQ-2130
> URL: https://issues.jboss.org/browse/ARQ-2130
> Project: Arquillian
> Issue Type: Enhancement
> Components: WebSphere Containers
> Affects Versions: was_1.0.0.Beta2
> Reporter: Vlastislav Ramik
> Assignee: Gerhard Poul
> Priority: Critical
>
> I'm not able to get
> {noformat}
> <groupId>org.jboss.arquillian.container</groupId>
> <artifactId>arquillian-was-remote-8.5</artifactId>
> <version>1.0.0.Beta2</version>
> {noformat}
> It seems that the module is not released: https://github.com/arquillian/arquillian-container-was/blob/master/pom.xm...
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 4 months