0 Replies Latest reply on May 6, 2015 8:17 AM by Federico Rieckhof

    Unable to run multiple test classes on embeded Tomcat

    Federico Rieckhof Newbie


      I am developing an application in tomcat using Guice for transaction and injection and Vaadin as GUI Frameowrk. We are using Arquillian and Graphene to run the UI tests and h2 DB.  I have modularized the test in multiple classes and each has the same Deployment that is described in the Super class. The problem is when running only 1 class all test methods are green. But when running classes one after the other the second one close with some strange error messages.


      Below is the code of the classes like i said if I execute MasterIndexPageIT before any other class has deploy the it will ok, but if any ohter class has deployed before or i run two classes that do the same i get exceptions.

      From debugging i see that the after the second deployment the method setUp() do not get executed therefore testPageLoad fails. But i also get MasterIndexPageIT.setUp »  No runnable methods what makes no sense, but explains why setUp do net executed.


      So how can I run two test classes after each other from a suite or from maven failsafe with out getting this problems?


      I am Using the embedded tomcat container 1.0.0.CR7

      an the following versions of the dependecies










      public abstract class BaseArquillianTestCase {

      @Deployment(name = DEPLOYMENT_NAME_MASTER)

          public static WebArchive createMasterDeployment() throws IOException {

              WebArchive webArchive = ShrinkWrap.createFromZipFile(WebArchive.class, new File(DEPLOYMENT_PATH_MASTER));


              return webArchive;





      public class MasterIndexPageIT extends BaseArquillianTestCase {


          AuthenticationService authentificator;



          UsersRepository userRepository;



          TestDbPersistModule persistanceService;




          public void testPageLoad(@InitialPage final MasterIndexPageObject masterIndexPage)

                  throws Exception {

              Assert.assertEquals(MasterIndexPageObject.PAGE_TITLE, masterIndexPage.getPageTitle());





          public void setUp() throws ServiceException, RepositoryException {

              final String dataName = "admin";

              UserItem data = new UserItem();






              UserItem item = this.userRepository.getByUserEmail("admin@bmw.de");



              Assert.assertEquals(dataName, item.getLogin());