2 Replies Latest reply on Feb 21, 2013 6:12 AM by gytis

    Launching one of multiple containers

    gytis

      Hello,

          

      we have single maven module with tests which are sort of separated in two groups. One half of the tests needs to be executed on JBoss AS with one configuration while another half needs to be executed with different configuration.

      Is it possible to specify which container to use from the test code (assuming we have two containers configured in arquillian.xml with different serverConfig values)?

      I know that it is possible to specify this with arquillian.launch property but we need to be able to simply execute "mvn test" command.

       

      Thanks,

      Gytis

        • 1. Re: Launching one of multiple containers
          aslak

          As long as they both are using the same 'Container Adapter' artifact (the same classpath basically), you can configure up multiple Maven SureFire executions and specify which Container configuration to use by setting the <systemPropertyVariables><arquillian.launch>qualifier</arquillian.launch></systemPropertyVariables> in the execution configuration.

           

          Then use include/exclude properties on surefire to separate which test should use which configuration. or by using Junit Categories

          • 2. Re: Launching one of multiple containers
            gytis

            Thanks for the quick help, Aslak. It seems like this is exactly what we needed.