[arquillian-issues] [JBoss JIRA] (ARQ-834) Executing Android packaged tests in Arquillian
Karel Piwko (JIRA)
jira-events at lists.jboss.org
Wed Mar 28 03:32:47 EDT 2012
Karel Piwko created ARQ-834:
-------------------------------
Summary: Executing Android packaged tests in Arquillian
Key: ARQ-834
URL: https://issues.jboss.org/browse/ARQ-834
Project: Arquillian
Issue Type: Sub-task
Security Level: Public (Everyone can see)
Reporter: Karel Piwko
Once the packaging problem is figured out, the next step consists of bringing user a way how to configure what should be tested in Arquillian test.
More information about Android is here http://developer.android.com/guide/topics/testing/testing_android.html, focus on "Running Tests" section.
Possible proposal
{code}
@RunWith(Arquillian.class)
public class AndroidTest {
@Test
public void androidActivity(@AndroidActivity HelloAndroid helloAndroid) {
mView = (TextView) mActivity.findViewById(com.example.helloandroid.R.id.textview);
resourceString = mActivity.getString(com.example.helloandroid.R.string.hello);
assertEquals(resourceString,(String)mView.getText());
}
}
{code}
You can obviously inject into fields, make this a class scoped, not method scoped etc. Feel free to experiment and figure out what is the most convenient for users.
Also note that your infrastructure should support Robotium in future.
--
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