Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-838

Allow Arquillian Drone to handle Robotium

    XMLWordPrintable

Details

    • Task
    • Resolution: Won't Do
    • Major
    • None
    • None
    • Extension - Drone
    • None

    Description

      Robotium is a Java based framework for testing Android applications using a high level API.

      Once the integration with Android integration tests is done, it would be convenient to have its support in Arquillian Drone.

      The key here is to grab current activity from Android context and provide a Solo object which could be injected into test itself.

      The usage might look similar to the following:

      @RunWith(Arquillian.class)
      public class AndroidTest {
        
         @Test
         public void androidActivity(@AndroidActivity HelloAndroid helloAndroid, @Drone Solo solo) {
             solo.sendKey(Solo.MENU);
             solo.clickOnText("More");
             solo.clickOnText("Preferences");
             solo.clickOnText("Edit File Extensions");
             Assert.assertTrue(solo.searchText("rtf")); 
         }
      
      }
      

      Note that the above example does not reflect possible usage of Android/Robotium in class level, this a method-level proposal.

      Attachments

        Issue Links

          Activity

            People

              Toseter Aleksey Shilin (Inactive)
              kpiwko Karel Piwko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: