[JBoss JIRA] (ARQ-286) Should support JUnit @Rules
by Luca Stancapiano (JIRA)
[ https://issues.jboss.org/browse/ARQ-286?page=com.atlassian.jira.plugin.sy... ]
Luca Stancapiano commented on ARQ-286:
--------------------------------------
Ok I reproduced the problem I met. In the RuleTest there is a runtime exception that is throwed if the test is not in the server side, so the rules.Container class starts only once and my test fail. Only a question. Can I choose if run the test only in a mode instead of both leaving the exception inside the instantiation of the rule?
I updated the git project with the issue
> 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.4.11#64026)
9 years, 3 months
[JBoss JIRA] (ARQ-286) Should support JUnit @Rules
by Luca Stancapiano (JIRA)
[ https://issues.jboss.org/browse/ARQ-286?page=com.atlassian.jira.plugin.sy... ]
Luca Stancapiano commented on ARQ-286:
--------------------------------------
In the rules.RuleTest, the rules.Container class is instantiate two times, the first client side and the second server side. I presume it is the correct achievement
> 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.4.11#64026)
9 years, 3 months
[JBoss JIRA] (ARQ-286) Should support JUnit @Rules
by Luca Stancapiano (JIRA)
[ https://issues.jboss.org/browse/ARQ-286?page=com.atlassian.jira.plugin.sy... ]
Luca Stancapiano commented on ARQ-286:
--------------------------------------
I added a test project here: https://github.com/flashboss/arquillian-rules
But strangely it works different by I signaled.
There are two tests that shows if the test work server side, one with a rule and one with a simple test.
I will continue to verify if the problem is real
> 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.4.11#64026)
9 years, 3 months
[JBoss JIRA] (ARQGRA-478) Add support for multiple @InitialPage when using Qualifiers
by Michael Irwin (JIRA)
Michael Irwin created ARQGRA-478:
------------------------------------
Summary: Add support for multiple @InitialPage when using Qualifiers
Key: ARQGRA-478
URL: https://issues.jboss.org/browse/ARQGRA-478
Project: Arquillian Graphene
Issue Type: Enhancement
Components: core
Reporter: Michael Irwin
If using multiple browsers in a test, it would be nice to support multiple @InitialPage parameters in the method, each with a separate qualifier.
Obviously, if the same qualifier is applied to more than one @InitialPage, it should throw and prevent execution.
Pull-request incoming...
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 3 months
[JBoss JIRA] (ARQ-1982) Each test case is launched 4 times in OSGi
by Damien Vidal (JIRA)
[ https://issues.jboss.org/browse/ARQ-1982?page=com.atlassian.jira.plugin.s... ]
Damien Vidal updated ARQ-1982:
------------------------------
Summary: Each test case is launched 4 times in OSGi (was: Each test case is launched 4 times)
> Each test case is launched 4 times in OSGi
> ------------------------------------------
>
> Key: ARQ-1982
> URL: https://issues.jboss.org/browse/ARQ-1982
> Project: Arquillian
> Issue Type: Bug
> Environment: Bundle-ClassPath: .,
> lib/jbosgi-metadata-3.0.1.Final.jar,
> lib/arquillian-config-api-1.1.9.Final.jar,
> lib/arquillian-config-impl-base-1.1.9.Final.jar,
> lib/arquillian-container-impl-base-1.1.9.Final.jar,
> lib/arquillian-container-spi-1.1.9.Final.jar,
> lib/arquillian-container-test-api-1.1.9.Final.jar,
> lib/arquillian-container-test-impl-base-1.1.9.Final.jar,
> lib/arquillian-container-test-spi-1.1.9.Final.jar,
> lib/arquillian-core-api-1.1.9.Final.jar,
> lib/arquillian-core-impl-base-1.1.9.Final.jar,
> lib/arquillian-core-spi-1.1.9.Final.jar,
> lib/arquillian-drone-api-1.3.1.Final.jar,
> lib/arquillian-drone-configuration-1.3.1.Final.jar,
> lib/arquillian-drone-impl-1.3.1.Final.jar,
> lib/arquillian-drone-selenium-1.3.1.Final.jar,
> lib/arquillian-drone-selenium-server-1.3.1.Final.jar,
> lib/arquillian-drone-spi-1.3.1.Final.jar,
> lib/arquillian-drone-webdriver-1.3.1.Final.jar,
> lib/arquillian-junit-container-1.1.9.Final.jar,
> lib/arquillian-junit-core-1.1.9.Final.jar,
> lib/arquillian-junit-standalone-1.1.9.Final.jar,
> lib/arquillian-test-api-1.1.9.Final.jar,
> lib/arquillian-test-impl-base-1.1.9.Final.jar,
> lib/arquillian-test-spi-1.1.9.Final.jar,
> lib/arquillian-testenricher-cdi-1.1.5.Final.jar,
> lib/arquillian-testenricher-initialcontext-1.1.5.Final.jar,
> lib/arquillian-testenricher-resource-1.1.5.Final.jar,
> lib/arquillian-tomcat-embedded-6-1.0.0.CR7.jar,
> lib/jetty-rc-repacked-5.jar,
> lib/jetty-repacked-7.6.1.jar,
> lib/operadriver-1.1.jar,
> lib/operalaunchers-1.1.jar,
> lib/phantomjsdriver-1.1.0.jar,
> lib/selenium-api-2.47.1.jar,
> lib/selenium-chrome-driver-2.47.1.jar,
> lib/selenium-edge-driver-2.47.1.jar,
> lib/selenium-firefox-driver-2.47.1.jar,
> lib/selenium-htmlunit-driver-2.47.1.jar,
> lib/selenium-ie-driver-2.47.1.jar,
> lib/selenium-java-2.47.1.jar,
> lib/selenium-leg-rc-2.47.1.jar,
> lib/selenium-remote-driver-2.47.1.jar,
> lib/selenium-safari-driver-2.47.1.jar,
> lib/selenium-server-2.47.1.jar,
> lib/selenium-support-2.47.1.jar,
> lib/shrinkwrap-api-1.2.2.jar,
> lib/shrinkwrap-container-tomcat-60-1.0.0-beta-1.jar,
> lib/shrinkwrap-descriptors-api-base-2.0.0-alpha-7.jar,
> lib/shrinkwrap-descriptors-spi-2.0.0-alpha-7.jar,
> lib/shrinkwrap-impl-base-1.2.2.jar,
> lib/shrinkwrap-spi-1.2.2.jar,
> lib/jboss-logging-3.3.0.Final.jar,
> lib/httpclient-4.3.1.jar,
> lib/httpcore-4.3.jar,
> lib/httpmime-4.4.1.jar,
> lib/guava-19.0-rc1.jar,
> lib/gson-2.3.1.jar,
> lib/commons-exec-1.3.jar,
> lib/commons-lang3-3.4.jar
> Reporter: Damien Vidal
> Labels: Arquillian, OSGI
>
> Each test is called 4 times on the following orders.
> @Before
> @Before
> @Test - firstTest
> @Test - firstTest
> @After
> @After
> @Before
> @Before
> @Test - firstTest
> @Test - firstTest
> @After
> @After
> -------------------------
> @Before
> @Before
> @Test - secondTest
> @Test - secondTest
> @After
> @After
> @Before
> @Before
> @Test - secondTest
> @Test - secondTest
> @After
> @After
> Note:
> ---------
> I tried without Drone -> same issue
> I tried without RunAsClient and without Deployment -> same issue
> The instance of the SampleTest Class is the same for each call of @Test method
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 3 months
[JBoss JIRA] (ARQ-1982) Each test case is launched 4 times
by Damien Vidal (JIRA)
[ https://issues.jboss.org/browse/ARQ-1982?page=com.atlassian.jira.plugin.s... ]
Damien Vidal updated ARQ-1982:
------------------------------
Environment:
Bundle-ClassPath: .,
lib/jbosgi-metadata-3.0.1.Final.jar,
lib/arquillian-config-api-1.1.9.Final.jar,
lib/arquillian-config-impl-base-1.1.9.Final.jar,
lib/arquillian-container-impl-base-1.1.9.Final.jar,
lib/arquillian-container-spi-1.1.9.Final.jar,
lib/arquillian-container-test-api-1.1.9.Final.jar,
lib/arquillian-container-test-impl-base-1.1.9.Final.jar,
lib/arquillian-container-test-spi-1.1.9.Final.jar,
lib/arquillian-core-api-1.1.9.Final.jar,
lib/arquillian-core-impl-base-1.1.9.Final.jar,
lib/arquillian-core-spi-1.1.9.Final.jar,
lib/arquillian-drone-api-1.3.1.Final.jar,
lib/arquillian-drone-configuration-1.3.1.Final.jar,
lib/arquillian-drone-impl-1.3.1.Final.jar,
lib/arquillian-drone-selenium-1.3.1.Final.jar,
lib/arquillian-drone-selenium-server-1.3.1.Final.jar,
lib/arquillian-drone-spi-1.3.1.Final.jar,
lib/arquillian-drone-webdriver-1.3.1.Final.jar,
lib/arquillian-junit-container-1.1.9.Final.jar,
lib/arquillian-junit-core-1.1.9.Final.jar,
lib/arquillian-junit-standalone-1.1.9.Final.jar,
lib/arquillian-test-api-1.1.9.Final.jar,
lib/arquillian-test-impl-base-1.1.9.Final.jar,
lib/arquillian-test-spi-1.1.9.Final.jar,
lib/arquillian-testenricher-cdi-1.1.5.Final.jar,
lib/arquillian-testenricher-initialcontext-1.1.5.Final.jar,
lib/arquillian-testenricher-resource-1.1.5.Final.jar,
lib/arquillian-tomcat-embedded-6-1.0.0.CR7.jar,
lib/jetty-rc-repacked-5.jar,
lib/jetty-repacked-7.6.1.jar,
lib/operadriver-1.1.jar,
lib/operalaunchers-1.1.jar,
lib/phantomjsdriver-1.1.0.jar,
lib/selenium-api-2.47.1.jar,
lib/selenium-chrome-driver-2.47.1.jar,
lib/selenium-edge-driver-2.47.1.jar,
lib/selenium-firefox-driver-2.47.1.jar,
lib/selenium-htmlunit-driver-2.47.1.jar,
lib/selenium-ie-driver-2.47.1.jar,
lib/selenium-java-2.47.1.jar,
lib/selenium-leg-rc-2.47.1.jar,
lib/selenium-remote-driver-2.47.1.jar,
lib/selenium-safari-driver-2.47.1.jar,
lib/selenium-server-2.47.1.jar,
lib/selenium-support-2.47.1.jar,
lib/shrinkwrap-api-1.2.2.jar,
lib/shrinkwrap-container-tomcat-60-1.0.0-beta-1.jar,
lib/shrinkwrap-descriptors-api-base-2.0.0-alpha-7.jar,
lib/shrinkwrap-descriptors-spi-2.0.0-alpha-7.jar,
lib/shrinkwrap-impl-base-1.2.2.jar,
lib/shrinkwrap-spi-1.2.2.jar,
lib/jboss-logging-3.3.0.Final.jar,
lib/httpclient-4.3.1.jar,
lib/httpcore-4.3.jar,
lib/httpmime-4.4.1.jar,
lib/guava-19.0-rc1.jar,
lib/gson-2.3.1.jar,
lib/commons-exec-1.3.jar,
lib/commons-lang3-3.4.jar
> Each test case is launched 4 times
> ----------------------------------
>
> Key: ARQ-1982
> URL: https://issues.jboss.org/browse/ARQ-1982
> Project: Arquillian
> Issue Type: Bug
> Environment: Bundle-ClassPath: .,
> lib/jbosgi-metadata-3.0.1.Final.jar,
> lib/arquillian-config-api-1.1.9.Final.jar,
> lib/arquillian-config-impl-base-1.1.9.Final.jar,
> lib/arquillian-container-impl-base-1.1.9.Final.jar,
> lib/arquillian-container-spi-1.1.9.Final.jar,
> lib/arquillian-container-test-api-1.1.9.Final.jar,
> lib/arquillian-container-test-impl-base-1.1.9.Final.jar,
> lib/arquillian-container-test-spi-1.1.9.Final.jar,
> lib/arquillian-core-api-1.1.9.Final.jar,
> lib/arquillian-core-impl-base-1.1.9.Final.jar,
> lib/arquillian-core-spi-1.1.9.Final.jar,
> lib/arquillian-drone-api-1.3.1.Final.jar,
> lib/arquillian-drone-configuration-1.3.1.Final.jar,
> lib/arquillian-drone-impl-1.3.1.Final.jar,
> lib/arquillian-drone-selenium-1.3.1.Final.jar,
> lib/arquillian-drone-selenium-server-1.3.1.Final.jar,
> lib/arquillian-drone-spi-1.3.1.Final.jar,
> lib/arquillian-drone-webdriver-1.3.1.Final.jar,
> lib/arquillian-junit-container-1.1.9.Final.jar,
> lib/arquillian-junit-core-1.1.9.Final.jar,
> lib/arquillian-junit-standalone-1.1.9.Final.jar,
> lib/arquillian-test-api-1.1.9.Final.jar,
> lib/arquillian-test-impl-base-1.1.9.Final.jar,
> lib/arquillian-test-spi-1.1.9.Final.jar,
> lib/arquillian-testenricher-cdi-1.1.5.Final.jar,
> lib/arquillian-testenricher-initialcontext-1.1.5.Final.jar,
> lib/arquillian-testenricher-resource-1.1.5.Final.jar,
> lib/arquillian-tomcat-embedded-6-1.0.0.CR7.jar,
> lib/jetty-rc-repacked-5.jar,
> lib/jetty-repacked-7.6.1.jar,
> lib/operadriver-1.1.jar,
> lib/operalaunchers-1.1.jar,
> lib/phantomjsdriver-1.1.0.jar,
> lib/selenium-api-2.47.1.jar,
> lib/selenium-chrome-driver-2.47.1.jar,
> lib/selenium-edge-driver-2.47.1.jar,
> lib/selenium-firefox-driver-2.47.1.jar,
> lib/selenium-htmlunit-driver-2.47.1.jar,
> lib/selenium-ie-driver-2.47.1.jar,
> lib/selenium-java-2.47.1.jar,
> lib/selenium-leg-rc-2.47.1.jar,
> lib/selenium-remote-driver-2.47.1.jar,
> lib/selenium-safari-driver-2.47.1.jar,
> lib/selenium-server-2.47.1.jar,
> lib/selenium-support-2.47.1.jar,
> lib/shrinkwrap-api-1.2.2.jar,
> lib/shrinkwrap-container-tomcat-60-1.0.0-beta-1.jar,
> lib/shrinkwrap-descriptors-api-base-2.0.0-alpha-7.jar,
> lib/shrinkwrap-descriptors-spi-2.0.0-alpha-7.jar,
> lib/shrinkwrap-impl-base-1.2.2.jar,
> lib/shrinkwrap-spi-1.2.2.jar,
> lib/jboss-logging-3.3.0.Final.jar,
> lib/httpclient-4.3.1.jar,
> lib/httpcore-4.3.jar,
> lib/httpmime-4.4.1.jar,
> lib/guava-19.0-rc1.jar,
> lib/gson-2.3.1.jar,
> lib/commons-exec-1.3.jar,
> lib/commons-lang3-3.4.jar
> Reporter: Damien Vidal
> Labels: Arquillian, OSGI
>
> Each test is called 4 times on the following orders.
> @Before
> @Before
> @Test - firstTest
> @Test - firstTest
> @After
> @After
> @Before
> @Before
> @Test - firstTest
> @Test - firstTest
> @After
> @After
> -------------------------
> @Before
> @Before
> @Test - secondTest
> @Test - secondTest
> @After
> @After
> @Before
> @Before
> @Test - secondTest
> @Test - secondTest
> @After
> @After
> Note:
> ---------
> I tried without Drone -> same issue
> I tried without RunAsClient and without Deployment -> same issue
> The instance of the SampleTest Class is the same for each call of @Test method
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 3 months
[JBoss JIRA] (ARQ-1982) Each test case is launched 4 times
by Damien Vidal (JIRA)
[ https://issues.jboss.org/browse/ARQ-1982?page=com.atlassian.jira.plugin.s... ]
Damien Vidal updated ARQ-1982:
------------------------------
Description:
Each test is called 4 times on the following orders.
@Before
@Before
@Test - firstTest
@Test - firstTest
@After
@After
@Before
@Before
@Test - firstTest
@Test - firstTest
@After
@After
-------------------------
@Before
@Before
@Test - secondTest
@Test - secondTest
@After
@After
@Before
@Before
@Test - secondTest
@Test - secondTest
@After
@After
Note:
---------
I tried without Drone -> same issue
I tried without RunAsClient and without Deployment -> same issue
The instance of the SampleTest Class is the same for each call of @Test method
was:
Each test is called 4 times on the following orders.
@Before
@Before
@Test - firstTest
@Test - firstTest
@After
@After
@Before
@Before
@Test - firstTest
@Test - firstTest
@After
@After
-------------------------
@Before
@Before
@Test - secondTest
@Test - secondTest
@After
@After
@Before
@Before
@Test - secondTest
@Test - secondTest
@After
@After
Note:
---------
I tried without Drone - same issue
I tried without RunAsClient - same issue and without Deployment
The instance of the Class is the same for each call of @Test method
> Each test case is launched 4 times
> ----------------------------------
>
> Key: ARQ-1982
> URL: https://issues.jboss.org/browse/ARQ-1982
> Project: Arquillian
> Issue Type: Bug
> Reporter: Damien Vidal
> Labels: Arquillian, OSGI
>
> Each test is called 4 times on the following orders.
> @Before
> @Before
> @Test - firstTest
> @Test - firstTest
> @After
> @After
> @Before
> @Before
> @Test - firstTest
> @Test - firstTest
> @After
> @After
> -------------------------
> @Before
> @Before
> @Test - secondTest
> @Test - secondTest
> @After
> @After
> @Before
> @Before
> @Test - secondTest
> @Test - secondTest
> @After
> @After
> Note:
> ---------
> I tried without Drone -> same issue
> I tried without RunAsClient and without Deployment -> same issue
> The instance of the SampleTest Class is the same for each call of @Test method
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 3 months
[JBoss JIRA] (ARQ-1982) Each test case is launched 4 times
by Damien Vidal (JIRA)
[ https://issues.jboss.org/browse/ARQ-1982?page=com.atlassian.jira.plugin.s... ]
Damien Vidal updated ARQ-1982:
------------------------------
Steps to Reproduce:
- Create a Test class using Arquillian
import java.io.InputStream;
import java.util.concurrent.TimeUnit;
import junit.framework.Assert;
import org.apache.commons.io.FileUtils;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.container.test.api.RunAsClient;
import org.jboss.arquillian.drone.api.annotation.Drone;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.arquillian.junit.InSequence;
import org.jboss.osgi.metadata.OSGiManifestBuilder;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.asset.Asset;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.openqa.selenium.Alert;
import org.openqa.selenium.By;
import org.openqa.selenium.NoAlertPresentException;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.osgi.framework.Bundle;
@RunAsClient
@RunWith(Arquillian.class)
public class SampleTest {
@Drone
protected WebDriver driver;
protected StringBuffer verificationErrors = new StringBuffer();
@Deployment(testable = false)
public static JavaArchive createdeployment() {
final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "test.jar");
archive.setManifest(new Asset() {
@Override
public InputStream openStream() {
OSGiManifestBuilder builder = OSGiManifestBuilder.newInstance();
builder.addBundleSymbolicName(archive.getName());
builder.addBundleManifestVersion(2);
builder.addImportPackages(Bundle.class);
return builder.openStream();
}
});
return archive;
}
@Before
public void setUp() throws Exception {
}
@Test
@InSequence(1)
public void firstTest() {
System.out.println("firstTest()");
}
@Test
@InSequence(2)
public void secondTest() {
System.out.println("secondTest()");
}
@After
public void tearDown() throws Exception {
String verificationErrorString = verificationErrors.toString();
verificationErrors = new StringBuffer();
if (!"".equals(verificationErrorString)) {
Assert.fail(verificationErrorString);
}
}
}
- Launch it in OSGi using with the plugin:
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
was:
- Create a Test class using Arquillian
import java.io.InputStream;
import java.util.concurrent.TimeUnit;
import junit.framework.Assert;
import org.apache.commons.io.FileUtils;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.container.test.api.RunAsClient;
import org.jboss.arquillian.drone.api.annotation.Drone;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.arquillian.junit.InSequence;
import org.jboss.osgi.metadata.OSGiManifestBuilder;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.asset.Asset;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.openqa.selenium.Alert;
import org.openqa.selenium.By;
import org.openqa.selenium.NoAlertPresentException;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.osgi.framework.Bundle;
@RunAsClient
@RunWith(Arquillian.class)
public class SampleTest {
@Drone
protected WebDriver driver;
protected StringBuffer verificationErrors = new StringBuffer();
@Deployment(testable = false)
public static JavaArchive createdeployment() {
final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "test.jar");
archive.setManifest(new Asset() {
@Override
public InputStream openStream() {
OSGiManifestBuilder builder = OSGiManifestBuilder.newInstance();
builder.addBundleSymbolicName(archive.getName());
builder.addBundleManifestVersion(2);
builder.addImportPackages(Bundle.class);
return builder.openStream();
}
});
return archive;
}
@Before
public void setUp() throws Exception {
}
@Test
@InSequence(1)
public void firstTest() {
System.out.println("firstTest()");
}
@Test
@InSequence(2)
public void secondTest() {
System.out.println("secondTest()");
}
@After
public void tearDown() throws Exception {
String verificationErrorString = verificationErrors.toString();
verificationErrors = new StringBuffer();
if (!"".equals(verificationErrorString)) {
Assert.fail(verificationErrorString);
}
}
}
- Launch it is OSGi using with the plugin:
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
Labels: Arquillian OSGI (was: )
> Each test case is launched 4 times
> ----------------------------------
>
> Key: ARQ-1982
> URL: https://issues.jboss.org/browse/ARQ-1982
> Project: Arquillian
> Issue Type: Bug
> Reporter: Damien Vidal
> Labels: Arquillian, OSGI
>
> Each test is called 4 times on the following orders.
> @Before
> @Before
> @Test - firstTest
> @Test - firstTest
> @After
> @After
> @Before
> @Before
> @Test - firstTest
> @Test - firstTest
> @After
> @After
> -------------------------
> @Before
> @Before
> @Test - secondTest
> @Test - secondTest
> @After
> @After
> @Before
> @Before
> @Test - secondTest
> @Test - secondTest
> @After
> @After
> Note:
> ---------
> I tried without Drone - same issue
> I tried without RunAsClient - same issue and without Deployment
> The instance of the Class is the same for each call of @Test method
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 3 months
[JBoss JIRA] (ARQ-1982) Each test case is launched 4 times
by Damien Vidal (JIRA)
Damien Vidal created ARQ-1982:
---------------------------------
Summary: Each test case is launched 4 times
Key: ARQ-1982
URL: https://issues.jboss.org/browse/ARQ-1982
Project: Arquillian
Issue Type: Bug
Reporter: Damien Vidal
Each test is called 4 times on the following orders.
@Before
@Before
@Test - firstTest
@Test - firstTest
@After
@After
@Before
@Before
@Test - firstTest
@Test - firstTest
@After
@After
-------------------------
@Before
@Before
@Test - secondTest
@Test - secondTest
@After
@After
@Before
@Before
@Test - secondTest
@Test - secondTest
@After
@After
Note:
---------
I tried without Drone - same issue
I tried without RunAsClient - same issue and without Deployment
The instance of the Class is the same for each call of @Test method
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 3 months
[JBoss JIRA] (ARQ-286) Should support JUnit @Rules
by Luca Stancapiano (JIRA)
[ https://issues.jboss.org/browse/ARQ-286?page=com.atlassian.jira.plugin.sy... ]
Luca Stancapiano commented on ARQ-286:
--------------------------------------
I preapare a git project...wait please ;)
> 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.4.11#64026)
9 years, 3 months