[JBoss JIRA] (ARQ-127) Verify TestNG Parallel test exeuction
by Michal Vanco (JIRA)
[ https://issues.jboss.org/browse/ARQ-127?page=com.atlassian.jira.plugin.sy... ]
Michal Vanco commented on ARQ-127:
----------------------------------
Hi,
can you provide some update on this? It would be a big good-to-have for my usage of arquillian-testng-standalone + graphene2.
Right now I'm getting this error:
{noformat}
java.lang.IllegalStateException: No TestRunnerAdaptor found, @BeforeSuite has not been called
at org.jboss.arquillian.testng.Arquillian.verifyTestRunnerAdaptorHasBeenSet(Arquillian.java:246)
at org.jboss.arquillian.testng.Arquillian.arquillianBeforeClass(Arquillian.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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:175)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:107)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
...
{noformat}
> Verify TestNG Parallel test exeuction
> -------------------------------------
>
> Key: ARQ-127
> URL: https://issues.jboss.org/browse/ARQ-127
> Project: Arquillian
> Issue Type: Feature Request
> Components: Extension - Performance, Test Harness Integration
> Reporter: Aslak Knutsen
> Assignee: Ståle Pedersen
> Priority: Critical
> Fix For: 2.0.0.Beta1
>
>
> Verify that Arquillian behaves correctly when ran in TestNG Parallel modes.
--
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
11 years, 7 months
[JBoss JIRA] (ARQ-1389) Create an extension that allows users to specify CDI context active for a test.
by Bartosz Majsak (JIRA)
[ https://issues.jboss.org/browse/ARQ-1389?page=com.atlassian.jira.plugin.s... ]
Bartosz Majsak edited comment on ARQ-1389 at 6/5/13 4:14 AM:
-------------------------------------------------------------
There is something already in place, but more focused on CDI/JSF world - https://community.jboss.org/thread/200461
was (Author: bmajsak):
There is something already in place, but more focused on CDI/JSF integration - https://community.jboss.org/thread/200461
> Create an extension that allows users to specify CDI context active for a test.
> -------------------------------------------------------------------------------
>
> Key: ARQ-1389
> URL: https://issues.jboss.org/browse/ARQ-1389
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Reporter: John Ament
>
> I've seen the need for this to pop up in several places - at work, in SO questions, in email threads, and I think it would be ideal to handle as a new Arquillian Extension. Right now, Arquillian is dependent on the app server to manage context and typically the context activated is whatever the app server finds as appropriate. This works OK for servlet based containers since a RequestScope will be active, but for local, embedded (non servlet) or even JMX protocol based containers this doesn't work.
> Ideally, a developer would be able to annotate a test method:
> @ActiveContext(ValidScope.class)
> Where ValidScope.class is a CDI scope (RequestScoped, SessionScoped.. etc) that can be activated. The extension would then activate this scope for the duration of the test, allowing injection of appropriately scoped objects to be injected correctly.
> Perhaps this annotation can also be class level, applying to everything in that class.
--
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
11 years, 7 months
[JBoss JIRA] (ARQ-1389) Create an extension that allows users to specify CDI context active for a test.
by Bartosz Majsak (JIRA)
[ https://issues.jboss.org/browse/ARQ-1389?page=com.atlassian.jira.plugin.s... ]
Bartosz Majsak commented on ARQ-1389:
-------------------------------------
There is something already in place, but more focused on CDI/JSF integration - https://community.jboss.org/thread/200461
> Create an extension that allows users to specify CDI context active for a test.
> -------------------------------------------------------------------------------
>
> Key: ARQ-1389
> URL: https://issues.jboss.org/browse/ARQ-1389
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Reporter: John Ament
>
> I've seen the need for this to pop up in several places - at work, in SO questions, in email threads, and I think it would be ideal to handle as a new Arquillian Extension. Right now, Arquillian is dependent on the app server to manage context and typically the context activated is whatever the app server finds as appropriate. This works OK for servlet based containers since a RequestScope will be active, but for local, embedded (non servlet) or even JMX protocol based containers this doesn't work.
> Ideally, a developer would be able to annotate a test method:
> @ActiveContext(ValidScope.class)
> Where ValidScope.class is a CDI scope (RequestScoped, SessionScoped.. etc) that can be activated. The extension would then activate this scope for the duration of the test, allowing injection of appropriately scoped objects to be injected correctly.
> Perhaps this annotation can also be class level, applying to everything in that class.
--
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
11 years, 7 months
[JBoss JIRA] (ARQ-1071) NullPointerException when timeout is set in @Test when using JUnit
by Aslak Knutsen (JIRA)
[ https://issues.jboss.org/browse/ARQ-1071?page=com.atlassian.jira.plugin.s... ]
Aslak Knutsen closed ARQ-1071.
------------------------------
> NullPointerException when timeout is set in @Test when using JUnit
> ------------------------------------------------------------------
>
> Key: ARQ-1071
> URL: https://issues.jboss.org/browse/ARQ-1071
> Project: Arquillian
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 1.0.0.Final, 1.0.1.Final
> Reporter: Rick-Rainer Ludwig
> Fix For: 1.0.4.Final
>
>
> When defining a timeout in @Test of JUnit Arquillian throws a NullPointerException:
> {code}
> java.lang.NullPointerException
> at org.jboss.arquillian.junit.Arquillian$6.evaluate(Arquillian.java:263)
> at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOfTimeout.java:62)
> {code}
> The code to reproduce this:
> {code}
> import org.jboss.arquillian.junit.Arquillian;
> import org.junit.Test;
> import org.junit.runner.RunWith;
> @RunWith(Arquillian.class)
> public class TestTimeout {
> @Test(timeout = 3000)
> public void test() throws Exception {
> Thread.sleep(1000);
> }
> }
> {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
11 years, 7 months