[JBoss JIRA] (ARQ-2008) Arquillian
by Sanket Patel (JIRA)
[ https://issues.jboss.org/browse/ARQ-2008?page=com.atlassian.jira.plugin.s... ]
Sanket Patel updated ARQ-2008:
------------------------------
Description:
I get the below error when i try to run:
I have also atttached my pom file
import static org.junit.Assert.*;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.asset.EmptyAsset;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(Arquillian.class)
public class GreeterTest {
@Deployment
public static JavaArchive createDeployment()
{ return ShrinkWrap.create(JavaArchive.class) .addClass(Greeter.class) .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml"); }
@Test
public void should_create_greeting()
{ assertEquals("sanket","sanket"); }
}
java.lang.NullPointerException
at org.jboss.arquillian.junit.Arquillian$8.evaluate(Arquillian.java:390)
at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:245)
at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:422)
at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)
at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:259)
at org.jboss.arquillian.junit.Arquillian$7.evaluate(Arquillian.java:321)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:204)
at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:422)
at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)
at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:218)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:166)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
was:
java.lang.NullPointerException
at org.jboss.arquillian.junit.Arquillian$8.evaluate(Arquillian.java:390)
at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:245)
at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:422)
at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)
at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:259)
at org.jboss.arquillian.junit.Arquillian$7.evaluate(Arquillian.java:321)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:204)
at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:422)
at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)
at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:218)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:166)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
> Arquillian
> ----------
>
> Key: ARQ-2008
> URL: https://issues.jboss.org/browse/ARQ-2008
> Project: Arquillian
> Issue Type: Feature Request
> Environment: I get the below errow when i try to run:
> I have also atttached my pom file
> import static org.junit.Assert.*;
> import org.jboss.arquillian.container.test.api.Deployment;
> import org.jboss.arquillian.junit.Arquillian;
> import org.jboss.shrinkwrap.api.ShrinkWrap;
> import org.jboss.shrinkwrap.api.asset.EmptyAsset;
> import org.jboss.shrinkwrap.api.spec.JavaArchive;
> import org.junit.Assert;
> import org.junit.Test;
> import org.junit.runner.RunWith;
> @RunWith(Arquillian.class)
> public class GreeterTest {
> @Deployment
> public static JavaArchive createDeployment() {
> return ShrinkWrap.create(JavaArchive.class)
> .addClass(Greeter.class)
> .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
> }
> @Test
> public void should_create_greeting() {
> assertEquals("sanket","sanket");
> }
> }
> Reporter: Sanket Patel
> Attachments: pom.xml
>
>
> I get the below error when i try to run:
> I have also atttached my pom file
> import static org.junit.Assert.*;
> import org.jboss.arquillian.container.test.api.Deployment;
> import org.jboss.arquillian.junit.Arquillian;
> import org.jboss.shrinkwrap.api.ShrinkWrap;
> import org.jboss.shrinkwrap.api.asset.EmptyAsset;
> import org.jboss.shrinkwrap.api.spec.JavaArchive;
> import org.junit.Assert;
> import org.junit.Test;
> import org.junit.runner.RunWith;
> @RunWith(Arquillian.class)
> public class GreeterTest {
> @Deployment
> public static JavaArchive createDeployment()
> { return ShrinkWrap.create(JavaArchive.class) .addClass(Greeter.class) .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml"); }
> @Test
> public void should_create_greeting()
> { assertEquals("sanket","sanket"); }
> }
> java.lang.NullPointerException
> at org.jboss.arquillian.junit.Arquillian$8.evaluate(Arquillian.java:390)
> at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:245)
> at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:422)
> at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)
> at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:259)
> at org.jboss.arquillian.junit.Arquillian$7.evaluate(Arquillian.java:321)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:204)
> at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:422)
> at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)
> at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:218)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:166)
> at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
> at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 4 months
[JBoss JIRA] (ARQ-2008) Arquillian
by Sanket Patel (JIRA)
[ https://issues.jboss.org/browse/ARQ-2008?page=com.atlassian.jira.plugin.s... ]
Sanket Patel updated ARQ-2008:
------------------------------
Environment: Arquillian (was: I get the below errow when i try to run:
I have also atttached my pom file
import static org.junit.Assert.*;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.asset.EmptyAsset;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(Arquillian.class)
public class GreeterTest {
@Deployment
public static JavaArchive createDeployment() {
return ShrinkWrap.create(JavaArchive.class)
.addClass(Greeter.class)
.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
}
@Test
public void should_create_greeting() {
assertEquals("sanket","sanket");
}
})
> Arquillian
> ----------
>
> Key: ARQ-2008
> URL: https://issues.jboss.org/browse/ARQ-2008
> Project: Arquillian
> Issue Type: Feature Request
> Environment: Arquillian
> Reporter: Sanket Patel
> Attachments: pom.xml
>
>
> I get the below error when i try to run:
> I have also atttached my pom file
> import static org.junit.Assert.*;
> import org.jboss.arquillian.container.test.api.Deployment;
> import org.jboss.arquillian.junit.Arquillian;
> import org.jboss.shrinkwrap.api.ShrinkWrap;
> import org.jboss.shrinkwrap.api.asset.EmptyAsset;
> import org.jboss.shrinkwrap.api.spec.JavaArchive;
> import org.junit.Assert;
> import org.junit.Test;
> import org.junit.runner.RunWith;
> @RunWith(Arquillian.class)
> public class GreeterTest {
> @Deployment
> public static JavaArchive createDeployment()
> { return ShrinkWrap.create(JavaArchive.class) .addClass(Greeter.class) .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml"); }
> @Test
> public void should_create_greeting()
> { assertEquals("sanket","sanket"); }
> }
> java.lang.NullPointerException
> at org.jboss.arquillian.junit.Arquillian$8.evaluate(Arquillian.java:390)
> at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:245)
> at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:422)
> at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)
> at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:259)
> at org.jboss.arquillian.junit.Arquillian$7.evaluate(Arquillian.java:321)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:204)
> at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:422)
> at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)
> at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:218)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:166)
> at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
> at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 4 months
[JBoss JIRA] (ARQ-2008) Arquillian
by Sanket Patel (JIRA)
Sanket Patel created ARQ-2008:
---------------------------------
Summary: Arquillian
Key: ARQ-2008
URL: https://issues.jboss.org/browse/ARQ-2008
Project: Arquillian
Issue Type: Feature Request
Environment: I get the below errow when i try to run:
I have also atttached my pom file
import static org.junit.Assert.*;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.asset.EmptyAsset;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(Arquillian.class)
public class GreeterTest {
@Deployment
public static JavaArchive createDeployment() {
return ShrinkWrap.create(JavaArchive.class)
.addClass(Greeter.class)
.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
}
@Test
public void should_create_greeting() {
assertEquals("sanket","sanket");
}
}
Reporter: Sanket Patel
Attachments: pom.xml
java.lang.NullPointerException
at org.jboss.arquillian.junit.Arquillian$8.evaluate(Arquillian.java:390)
at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:245)
at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:422)
at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)
at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:259)
at org.jboss.arquillian.junit.Arquillian$7.evaluate(Arquillian.java:321)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:204)
at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:422)
at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)
at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:218)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:166)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 4 months
[JBoss JIRA] (ARQ-2006) ISE for deployment-scoped drone point when manual deployment is used
by Matous Jobanek (JIRA)
[ https://issues.jboss.org/browse/ARQ-2006?page=com.atlassian.jira.plugin.s... ]
Matous Jobanek updated ARQ-2006:
--------------------------------
Status: Pull Request Sent (was: Open)
> ISE for deployment-scoped drone point when manual deployment is used
> --------------------------------------------------------------------
>
> Key: ARQ-2006
> URL: https://issues.jboss.org/browse/ARQ-2006
> Project: Arquillian
> Issue Type: Bug
> Components: Extension - Drone
> Affects Versions: drone_2.0.0.Alpha5
> Reporter: Matous Jobanek
> Assignee: Matous Jobanek
> Fix For: drone_2.0.0.Beta1
>
>
> Consider these scenarios:
> 1)
> {code:java}
> @Deployment(name = "first", managed = false)
> public static Archive deployFirst() {
> return ShrinkWrap.create(WebArchive.class);
> }
> @Deployment(name = "second")
> public static WebArchive deploySecond() {
> return ShrinkWrap.create(WebArchive.class);
> }
> @ArquillianResource
> private Deployer deployer;
> @Drone
> @OperateOnDeployment("first")
> private WebDriver firstBrowser;
> @Drone
> @OperateOnDeployment("second")
> private WebDriver secondBrowser;
> @Test
> @InSequence(1)
> public void runFirstTest() throws InterruptedException {
> deployer.deploy("first");
> firstBrowser.get("http://google.com");
> deployer.undeploy("first");
> }
> @Test
> @InSequence(2)
> public void runSecondTest() throws InterruptedException {
> secondBrowser.get("http://google.com");
> }
> {code}
> 2)
> {code:java}
> @Deployment(name = "deployment", managed = false)
> public static Archive deployFirst() {
> return ShrinkWrap.create(WebArchive.class);
> }
> @ArquillianResource
> private Deployer deployer;
> @Drone
> @OperateOnDeployment("deployment")
> private WebDriver browser;
> @Test
> @InSequence(1)
> public void runFirstTest() throws InterruptedException {
> deployer.deploy("deployment");
> browser.get("http://google.com");
> deployer.undeploy("deployment");
> }
> @Test
> @InSequence(2)
> public void runSecondTest() throws InterruptedException {
> deployer.deploy("deployment");
> browser.get("http://google.com");
> deployer.undeploy("deployment");
> }
> {code}
> both of them lead to the IllegalStateException:
> {noformat}
> java.lang.IllegalStateException: Injection point DronePointImpl{droneClass=interface org.openqa.selenium.WebDriver, annotations=[(a)org.jboss.arquillian.drone.api.annotation.Drone(), @org.jboss.arquillian.container.test.api.OperateOnDeployment(value=deployment)], lifecycle=DEPLOYMENT} has deployment lifecycle and has to be prepared in @BeforeClass.
> at org.jboss.arquillian.drone.impl.DroneTestEnrichHelper.ensureInjectionPointPrepared(DroneTestEnrichHelper.java:104)
> at org.jboss.arquillian.drone.impl.DroneTestEnrichHelper.enrichTestClass(DroneTestEnrichHelper.java:72)
> at org.jboss.arquillian.drone.impl.DroneTestEnricher.enrich(DroneTestEnricher.java:54)
> ...
> {noformat}
> The cause: the deployment-scoped drone point is destroyed before undeploy, but created only in BeforeClass. In the first test method the drone point is destroyed, however before the second test method is launched the test class is enriched including the drone point that is already destroyed.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 4 months
[JBoss JIRA] (ARQ-2006) ISE for deployment-scoped drone point when manual deployment is used
by Matous Jobanek (JIRA)
[ https://issues.jboss.org/browse/ARQ-2006?page=com.atlassian.jira.plugin.s... ]
Matous Jobanek updated ARQ-2006:
--------------------------------
Git Pull Request: https://github.com/arquillian/arquillian-extension-drone/pull/57
> ISE for deployment-scoped drone point when manual deployment is used
> --------------------------------------------------------------------
>
> Key: ARQ-2006
> URL: https://issues.jboss.org/browse/ARQ-2006
> Project: Arquillian
> Issue Type: Bug
> Components: Extension - Drone
> Affects Versions: drone_2.0.0.Alpha5
> Reporter: Matous Jobanek
> Assignee: Matous Jobanek
> Fix For: drone_2.0.0.Beta1
>
>
> Consider these scenarios:
> 1)
> {code:java}
> @Deployment(name = "first", managed = false)
> public static Archive deployFirst() {
> return ShrinkWrap.create(WebArchive.class);
> }
> @Deployment(name = "second")
> public static WebArchive deploySecond() {
> return ShrinkWrap.create(WebArchive.class);
> }
> @ArquillianResource
> private Deployer deployer;
> @Drone
> @OperateOnDeployment("first")
> private WebDriver firstBrowser;
> @Drone
> @OperateOnDeployment("second")
> private WebDriver secondBrowser;
> @Test
> @InSequence(1)
> public void runFirstTest() throws InterruptedException {
> deployer.deploy("first");
> firstBrowser.get("http://google.com");
> deployer.undeploy("first");
> }
> @Test
> @InSequence(2)
> public void runSecondTest() throws InterruptedException {
> secondBrowser.get("http://google.com");
> }
> {code}
> 2)
> {code:java}
> @Deployment(name = "deployment", managed = false)
> public static Archive deployFirst() {
> return ShrinkWrap.create(WebArchive.class);
> }
> @ArquillianResource
> private Deployer deployer;
> @Drone
> @OperateOnDeployment("deployment")
> private WebDriver browser;
> @Test
> @InSequence(1)
> public void runFirstTest() throws InterruptedException {
> deployer.deploy("deployment");
> browser.get("http://google.com");
> deployer.undeploy("deployment");
> }
> @Test
> @InSequence(2)
> public void runSecondTest() throws InterruptedException {
> deployer.deploy("deployment");
> browser.get("http://google.com");
> deployer.undeploy("deployment");
> }
> {code}
> both of them lead to the IllegalStateException:
> {noformat}
> java.lang.IllegalStateException: Injection point DronePointImpl{droneClass=interface org.openqa.selenium.WebDriver, annotations=[(a)org.jboss.arquillian.drone.api.annotation.Drone(), @org.jboss.arquillian.container.test.api.OperateOnDeployment(value=deployment)], lifecycle=DEPLOYMENT} has deployment lifecycle and has to be prepared in @BeforeClass.
> at org.jboss.arquillian.drone.impl.DroneTestEnrichHelper.ensureInjectionPointPrepared(DroneTestEnrichHelper.java:104)
> at org.jboss.arquillian.drone.impl.DroneTestEnrichHelper.enrichTestClass(DroneTestEnrichHelper.java:72)
> at org.jboss.arquillian.drone.impl.DroneTestEnricher.enrich(DroneTestEnricher.java:54)
> ...
> {noformat}
> The cause: the deployment-scoped drone point is destroyed before undeploy, but created only in BeforeClass. In the first test method the drone point is destroyed, however before the second test method is launched the test class is enriched including the drone point that is already destroyed.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 4 months
[JBoss JIRA] (ARQ-2007) Weblogic JMX Deployment ignores server target
by Roger Wilco (JIRA)
Roger Wilco created ARQ-2007:
--------------------------------
Summary: Weblogic JMX Deployment ignores server target
Key: ARQ-2007
URL: https://issues.jboss.org/browse/ARQ-2007
Project: Arquillian
Issue Type: Bug
Components: WebLogic Containers
Affects Versions: 1.0.1.Final
Environment: WebLogic 12c (12.1.3, 12.2.1)
Reporter: Roger Wilco
Assignee: Vineet Reynolds
Deploying to WebLogic server using the remote container module is performed through JMX.
The DeploymentManager MBean API being used (deploy method) does not support deploy targets, which are defined in the Arquillian container configuration.
i.e. deploy(name, applicationPath, plan)
The application is then deployed to all managed servers even if the test is only executed on the specified target.
For applications that execute initialization and deploy time operations this can cause severe problems when the application is started on multiple managed servers (e.g. admin server and a managed server).
For applications that are not designed for non-clustered multiple server deployment, this prevents the ability to execute tests in an domain that has managed servers in addition to the admin server.
The MBean has a second deploy method that takes a target parameter.
i.e. deploy(name, applicationPath, targets, plan, deploymentOptions)
If this method was used instead of the simple version then the application would be deployed to the specified server instead of all domain servers.
If this was used then the application
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 4 months
[JBoss JIRA] (ARQ-2006) ISE when deployment-scoped drone point and manual deployment is used
by Matous Jobanek (JIRA)
[ https://issues.jboss.org/browse/ARQ-2006?page=com.atlassian.jira.plugin.s... ]
Matous Jobanek updated ARQ-2006:
--------------------------------
Summary: ISE when deployment-scoped drone point and manual deployment is used (was: ISE when manual deployment is used)
> ISE when deployment-scoped drone point and manual deployment is used
> --------------------------------------------------------------------
>
> Key: ARQ-2006
> URL: https://issues.jboss.org/browse/ARQ-2006
> Project: Arquillian
> Issue Type: Bug
> Components: Extension - Drone
> Affects Versions: drone_2.0.0.Alpha5
> Reporter: Matous Jobanek
> Assignee: Matous Jobanek
> Fix For: drone_2.0.0.Beta1
>
>
> Consider these scenarios:
> 1)
> {code:java}
> @Deployment(name = "first", managed = false)
> public static Archive deployFirst() {
> return ShrinkWrap.create(WebArchive.class);
> }
> @Deployment(name = "second")
> public static WebArchive deploySecond() {
> return ShrinkWrap.create(WebArchive.class);
> }
> @ArquillianResource
> private Deployer deployer;
> @Drone
> @OperateOnDeployment("first")
> private WebDriver firstBrowser;
> @Drone
> @OperateOnDeployment("second")
> private WebDriver secondBrowser;
> @Test
> @InSequence(1)
> public void runFirstTest() throws InterruptedException {
> deployer.deploy("first");
> firstBrowser.get("http://google.com");
> deployer.undeploy("first");
> }
> @Test
> @InSequence(2)
> public void runSecondTest() throws InterruptedException {
> secondBrowser.get("http://google.com");
> }
> {code}
> 2)
> {code:java}
> @Deployment(name = "deployment", managed = false)
> public static Archive deployFirst() {
> return ShrinkWrap.create(WebArchive.class);
> }
> @ArquillianResource
> private Deployer deployer;
> @Drone
> @OperateOnDeployment("deployment")
> private WebDriver browser;
> @Test
> @InSequence(1)
> public void runFirstTest() throws InterruptedException {
> deployer.deploy("deployment");
> browser.get("http://google.com");
> deployer.undeploy("deployment");
> }
> @Test
> @InSequence(2)
> public void runSecondTest() throws InterruptedException {
> deployer.deploy("deployment");
> browser.get("http://google.com");
> deployer.undeploy("deployment");
> }
> {code}
> both of them lead to the IllegalStateException:
> {noformat}
> java.lang.IllegalStateException: Injection point DronePointImpl{droneClass=interface org.openqa.selenium.WebDriver, annotations=[(a)org.jboss.arquillian.drone.api.annotation.Drone(), @org.jboss.arquillian.container.test.api.OperateOnDeployment(value=deployment)], lifecycle=DEPLOYMENT} has deployment lifecycle and has to be prepared in @BeforeClass.
> at org.jboss.arquillian.drone.impl.DroneTestEnrichHelper.ensureInjectionPointPrepared(DroneTestEnrichHelper.java:104)
> at org.jboss.arquillian.drone.impl.DroneTestEnrichHelper.enrichTestClass(DroneTestEnrichHelper.java:72)
> at org.jboss.arquillian.drone.impl.DroneTestEnricher.enrich(DroneTestEnricher.java:54)
> ...
> {noformat}
> The cause: the deployment-scoped drone point is destroyed before undeploy, but created only in BeforeClass. In the first test method the drone point is destroyed, however before the second test method is launched the test class is enriched including the drone point that is already destroyed.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 4 months
[JBoss JIRA] (ARQ-2006) ISE for deployment-scoped drone point when manual deployment is used
by Matous Jobanek (JIRA)
[ https://issues.jboss.org/browse/ARQ-2006?page=com.atlassian.jira.plugin.s... ]
Matous Jobanek updated ARQ-2006:
--------------------------------
Summary: ISE for deployment-scoped drone point when manual deployment is used (was: ISE when deployment-scoped drone point and manual deployment is used)
> ISE for deployment-scoped drone point when manual deployment is used
> --------------------------------------------------------------------
>
> Key: ARQ-2006
> URL: https://issues.jboss.org/browse/ARQ-2006
> Project: Arquillian
> Issue Type: Bug
> Components: Extension - Drone
> Affects Versions: drone_2.0.0.Alpha5
> Reporter: Matous Jobanek
> Assignee: Matous Jobanek
> Fix For: drone_2.0.0.Beta1
>
>
> Consider these scenarios:
> 1)
> {code:java}
> @Deployment(name = "first", managed = false)
> public static Archive deployFirst() {
> return ShrinkWrap.create(WebArchive.class);
> }
> @Deployment(name = "second")
> public static WebArchive deploySecond() {
> return ShrinkWrap.create(WebArchive.class);
> }
> @ArquillianResource
> private Deployer deployer;
> @Drone
> @OperateOnDeployment("first")
> private WebDriver firstBrowser;
> @Drone
> @OperateOnDeployment("second")
> private WebDriver secondBrowser;
> @Test
> @InSequence(1)
> public void runFirstTest() throws InterruptedException {
> deployer.deploy("first");
> firstBrowser.get("http://google.com");
> deployer.undeploy("first");
> }
> @Test
> @InSequence(2)
> public void runSecondTest() throws InterruptedException {
> secondBrowser.get("http://google.com");
> }
> {code}
> 2)
> {code:java}
> @Deployment(name = "deployment", managed = false)
> public static Archive deployFirst() {
> return ShrinkWrap.create(WebArchive.class);
> }
> @ArquillianResource
> private Deployer deployer;
> @Drone
> @OperateOnDeployment("deployment")
> private WebDriver browser;
> @Test
> @InSequence(1)
> public void runFirstTest() throws InterruptedException {
> deployer.deploy("deployment");
> browser.get("http://google.com");
> deployer.undeploy("deployment");
> }
> @Test
> @InSequence(2)
> public void runSecondTest() throws InterruptedException {
> deployer.deploy("deployment");
> browser.get("http://google.com");
> deployer.undeploy("deployment");
> }
> {code}
> both of them lead to the IllegalStateException:
> {noformat}
> java.lang.IllegalStateException: Injection point DronePointImpl{droneClass=interface org.openqa.selenium.WebDriver, annotations=[(a)org.jboss.arquillian.drone.api.annotation.Drone(), @org.jboss.arquillian.container.test.api.OperateOnDeployment(value=deployment)], lifecycle=DEPLOYMENT} has deployment lifecycle and has to be prepared in @BeforeClass.
> at org.jboss.arquillian.drone.impl.DroneTestEnrichHelper.ensureInjectionPointPrepared(DroneTestEnrichHelper.java:104)
> at org.jboss.arquillian.drone.impl.DroneTestEnrichHelper.enrichTestClass(DroneTestEnrichHelper.java:72)
> at org.jboss.arquillian.drone.impl.DroneTestEnricher.enrich(DroneTestEnricher.java:54)
> ...
> {noformat}
> The cause: the deployment-scoped drone point is destroyed before undeploy, but created only in BeforeClass. In the first test method the drone point is destroyed, however before the second test method is launched the test class is enriched including the drone point that is already destroyed.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 4 months
[JBoss JIRA] (ARQ-2006) ISE when manual deployment is used
by Matous Jobanek (JIRA)
Matous Jobanek created ARQ-2006:
-----------------------------------
Summary: ISE when manual deployment is used
Key: ARQ-2006
URL: https://issues.jboss.org/browse/ARQ-2006
Project: Arquillian
Issue Type: Bug
Components: Extension - Drone
Affects Versions: drone_2.0.0.Alpha5
Reporter: Matous Jobanek
Assignee: Matous Jobanek
Fix For: drone_2.0.0.Beta1
Consider these scenarios:
1)
{code:java}
@Deployment(name = "first", managed = false)
public static Archive deployFirst() {
return ShrinkWrap.create(WebArchive.class);
}
@Deployment(name = "second")
public static WebArchive deploySecond() {
return ShrinkWrap.create(WebArchive.class);
}
@ArquillianResource
private Deployer deployer;
@Drone
@OperateOnDeployment("first")
private WebDriver firstBrowser;
@Drone
@OperateOnDeployment("second")
private WebDriver secondBrowser;
@Test
@InSequence(1)
public void runFirstTest() throws InterruptedException {
deployer.deploy("first");
firstBrowser.get("http://google.com");
deployer.undeploy("first");
}
@Test
@InSequence(2)
public void runSecondTest() throws InterruptedException {
secondBrowser.get("http://google.com");
}
{code}
2)
{code:java}
@Deployment(name = "deployment", managed = false)
public static Archive deployFirst() {
return ShrinkWrap.create(WebArchive.class);
}
@ArquillianResource
private Deployer deployer;
@Drone
@OperateOnDeployment("deployment")
private WebDriver browser;
@Test
@InSequence(1)
public void runFirstTest() throws InterruptedException {
deployer.deploy("deployment");
browser.get("http://google.com");
deployer.undeploy("deployment");
}
@Test
@InSequence(2)
public void runSecondTest() throws InterruptedException {
deployer.deploy("deployment");
browser.get("http://google.com");
deployer.undeploy("deployment");
}
{code}
both of them lead to the IllegalStateException:
{noformat}
java.lang.IllegalStateException: Injection point DronePointImpl{droneClass=interface org.openqa.selenium.WebDriver, annotations=[(a)org.jboss.arquillian.drone.api.annotation.Drone(), @org.jboss.arquillian.container.test.api.OperateOnDeployment(value=deployment)], lifecycle=DEPLOYMENT} has deployment lifecycle and has to be prepared in @BeforeClass.
at org.jboss.arquillian.drone.impl.DroneTestEnrichHelper.ensureInjectionPointPrepared(DroneTestEnrichHelper.java:104)
at org.jboss.arquillian.drone.impl.DroneTestEnrichHelper.enrichTestClass(DroneTestEnrichHelper.java:72)
at org.jboss.arquillian.drone.impl.DroneTestEnricher.enrich(DroneTestEnricher.java:54)
...
{noformat}
The cause: the deployment-scoped drone point is destroyed before undeploy, but created only in BeforeClass. In the first test method the drone point is destroyed, however before the second test method is launched the test class is enriched including the drone point that is already destroyed.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 4 months