摘要: If you just need to verify the text views its easy to use getView from the adapter. If you need to click on the view, the best approach for me was to use solo.sendKey(Solo.DOWN) the correct number of times to select the item in the list that you want, and then use solo.getCurrentTextViews(). for exa 阅读全文
posted @ 2012-01-06 14:43 随我畅翔 阅读(309) 评论(0) 推荐(0) 编辑
摘要: private Solo solo;public NotePadTest() {super("com.example.android.notepad", NotesList.class);} public void setUp() throws Exception { solo = new Solo(getInstrumentation(), getActivity()); } @Smoke public void testAddNote() throws Exception { solo.clickOnMenuItem("Add note"); sol 阅读全文
posted @ 2012-01-06 12:36 随我畅翔 阅读(485) 评论(0) 推荐(0) 编辑