1 Reply Latest reply on Mar 4, 2013 10:09 AM by Juraj Húska

    Problems running Drone + JBoss AS 6

    Alexandre Furuta Newbie

      Hello everybody!

       

           I'm facing some problems trying to make Drone + JBoss AS 6 work. I'm using this example https://github.com/arquillian/arquillian-examples/tree/master/arquillian-drone-tutorial  as a base, but I'm having no luck.

           Aside from the fact that I have to change the container adapter to JBoss AS 6 in the pom.xml, is there anything that I have to change? What I have realized in my tests is that the browser is launched, but the JSF page is NOT rendered, but if you look for the file itself (example: login.xhtml instead of login.jsf on the browser), the file is deployed. I was thinking about the @Deployment method, do I have to change anything? FYI: my arquillian.xml is blank.

       

           Thanks in advance!

       

      @RunWith(Arquillian.class)
      public class LoginScreenSeleniumTest {
          private static final String WEBAPP_SRC = "src/main/webapp";
                  
          @Deployment(testable=false)
          public static WebArchive createDeployment() {
              return ShrinkWrap.create(WebArchive.class, "login.war")
                  .addClasses(LoginController.class, User.class, Credentials.class)
                 //  .addAsWebResource(new File(WEBAPP_SRC), "login.xhtml")
              //     .addAsWebResource(new File(WEBAPP_SRC), "home.xhtml")
                  .merge(ShrinkWrap.create(GenericArchive.class).as(ExplodedImporter.class)
                      .importDirectory(WEBAPP_SRC).as(GenericArchive.class),
                      "/", Filters.include(".*\\.xhtml$"))
                  .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
                  .addAsWebInfResource(
                      new StringAsset("<faces-config version=\"2.0\"/>"),
                      "faces-config.xml");
          }