[arquillian-issues] [JBoss JIRA] (ARQ-838) Allow Arquillian Drone to handle Robotium
Karel Piwko (JIRA)
jira-events at lists.jboss.org
Wed Sep 19 03:04:35 EDT 2012
[ https://issues.jboss.org/browse/ARQ-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Karel Piwko updated ARQ-838:
----------------------------
Affects Version/s: (was: drone_1.2.0.next)
> Allow Arquillian Drone to handle Robotium
> -----------------------------------------
>
> Key: ARQ-838
> URL: https://issues.jboss.org/browse/ARQ-838
> Project: Arquillian
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Components: Extension - Drone
> Reporter: Karel Piwko
> Assignee: Aleksey Shilin
>
> 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:
> {code}
> @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"));
> }
> }
> {code}
> Note that the above example does not reflect possible usage of Android/Robotium in class level, this a method-level proposal.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the arquillian-issues
mailing list