[arquillian-issues] [JBoss JIRA] (ARQ-838) Allow Arquillian Drone to handle Robotium
Karel Piwko (JIRA)
jira-events at lists.jboss.org
Mon Apr 2 06:06:47 EDT 2012
Karel Piwko created ARQ-838:
-------------------------------
Summary: 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
Affects Versions: drone_1.1.0.next
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: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the arquillian-issues
mailing list