Android????????? Robotium?Spinner???
???????????? ???????[ 2015/8/21 15:30:50 ] ????????Android ???????
????Spinner ?????
????????????????????:??????
???????????裺
????1.????????С???????
????2.????????
?????????TextView ?????????????:?????
public void testUI() throws Exception {
this.Spinner();
}
public void Spinner(){
solo.clickOnButton("Spinner");
boolean actual = solo.isSpinnerTextSelected(0??"????");
solo.pressSpinnerItem(0?? 1);
boolean actual1 = solo.searchText("??????:???");
assertEquals("This is not found"??true?? actual1);
}
????isSpinnerTextSelected ???????????
????public boolean isSpinnerTextSelected(int index?? String text)
????index:??λ????Spinner????????0
????text:??????Spinner????????
???????API????????????????????????????????true
????pressSpinnerItem ???????????
????public void pressSpinnerItem(int spinnerIndex?? int itemIndex)
????spinnerIndex:??λ?????Spinner????????0
????intemIndex:??λ??????μ????????????????=0 ???=1 ???=2 ....
????Spinner???:http://luwenjie.blog.51cto.com/925779/917238
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11