1 Reply Latest reply on Sep 29, 2016 1:43 PM by bmajsak

    Functional Web UI Testing using Arquillian & Graphene

    padmanabann

      I am newbie to Arquillian. I read the quick start and functional Web UI testing documentation of Arquillian. We have a Java EE 5 application (JSF/RichFaces + Seam 2 + Hibernate 3.3). We don't use CDI or EJB (only user managed transactions). The application is deployed on a weblogic 10.3.6 server. My question is:

      1. Is it possible to do the Web UI testing of the application using Graphene & Drone?

      2. We would like to deploy the application on a separate weblogic server (it's .ear file) and use Drone and Graphene to drive the test.

      3. Is it possible to use Shrinkwrap and deploy the .ear in weblogic server?

      4. Based on the documentation, my understanding is currently tests are executed within the Eclipse IDE or using Maven. Is the any plugin to log the test results to a report and email to the user? 

       

      Thanks

      Paddy

        • 1. Re: Functional Web UI Testing using Arquillian & Graphene
          bmajsak

          Not sure if you are still looking for an answer, but for all the others I will answerr

          1. Is it possible to do the Web UI testing of the application using Graphene & Drone?

          Absolutely! It's just an awesome addition on top of Selenium which is defacto standard these days when it comes to browser automation.

          2. We would like to deploy the application on a separate weblogic server (it's .ear file) and use Drone and Graphene to drive the test.

          That should work out of the box. Just remember to mark your @Deployment as testable=false or use @RunAsClient annotation.

          As for WLS, these are all versions we support: GitHub - arquillian/arquillian-container-wls: Arquillian WebLogic Containers

           

          3. Is it possible to use Shrinkwrap and deploy the .ear in weblogic server?

           

          You can either use Maven Resolver:

           

          GitHub - shrinkwrap/resolver: ShrinkWrap Resolvers

           

          or fetch the file in such a oneliner.

           

          @Deployment
          public static WebArchive createDeployment() {
            return ShrinkWrap.createFromZipFile(WebArchive.class, new File("...."));
          }
          

           

           

          4. Based on the documentation, my understanding is currently tests are executed within the Eclipse IDE or using Maven. Is the any plugin to log the test results to a report and email to the user?

           

          If you use CI server it should have notification mechanisms built in.