1 Reply Latest reply: Apr 26, 2012 2:42 AM by Karel Piwko RSS

    Aqruillian selenium test problem

    Manolescu Sebastian Newbie

      Hello,

       

       

      I use arquillian in selenium test, they run ok on my laptop but when I try to put them on Jenkins the build lasts 4 hours for 30 test. Could the arquillian cause this problem?

       

       

       

      public class AdministrationSeleniumTest extends Arquillian {

          private WebDriver        driver;

          private StringBuffer    verificationErrors    = new StringBuffer();

          private String baseUrl ;

       

         

           @Deployment(testable=false)

             public static WebArchive createTestArchive() {

               WebArchive war = ShrinkWrap.createFromZipFile(WebArchive.class,new File("target/project.war"));

               return war;

           }

          

           @ArquillianResource

            URL deploymentURL;

          

         

          @BeforeTest

          public void setUp() throws Exception{

              driver = new FirefoxDriver();   

             

              driver.manage().window().setPosition(new Point(0,0));

              java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();

              Dimension dim = new Dimension((int) screenSize.getWidth()-20, (int) screenSize.getHeight()-30);

              driver.manage().window().setSize(dim);

             

              driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);

          }

       

       

      @Test

      public void test(){

      ....

      }

       

       

      Any help would be appreciated.

       

      Best Regards