6 Replies Latest reply on Jul 25, 2012 2:10 AM by Christian oppermann

    Running tests with several browsers using Drone?

    Christian oppermann Newbie

      Hi.

       

      I'm in a situation where I want to run my testcases with several browsers.

      Ideally I would like to be able to: first running the entire test class with one browser and then run that same test class but with a different browser.

       

      After having looked at https://docs.jboss.org/author/display/ARQ/Drone it only seems possible if I define a new driver that uses a custom annotation like so:

       

      @Retention(RetentionPolicy.RUNTIME)

      @Target({ ElementType.FIELD, ElementType.PARAMETER })

      @Qualifier

      public @interface Different

      {

       

      }

       

      and then inject the additional driver using:

       

      @Drone

      @Different

      GrapheneSelenium driver;

       

      If I use the approach described, I end up with the overhead of having the same tests defined multiple times but using a different driver.

      I must be missing out on something here - there must be an easier way ?