[arquillian-issues] [JBoss JIRA] (ARQ-834) Executing Android packaged tests in Arquillian
Karel Piwko (JIRA)
jira-events at lists.jboss.org
Sat Sep 28 05:26:03 EDT 2013
[ https://issues.jboss.org/browse/ARQ-834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Karel Piwko updated ARQ-834:
----------------------------
Fix Version/s: (was: android_1.0.0.next)
> 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)
> Components: Extension - Droidium
> Affects Versions: android_1.0.0.Alpha1
> Reporter: Karel Piwko
> Assignee: Aleksey Shilin
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the arquillian-issues
mailing list