Robotium?в??????????????
???????????? ???????[ 2015/2/4 14:28:03 ] ??????????????? case
??????????????????????????????£?????robotium??????????????????????????????д?ЩCase???????μ?robotium.jar????????ü??о???????????????????????????????????о????
??????????????????????????????????á?
?????? ?????
????clickOnButton(int) //Clicks on a Button with a given index.clickOnButton(String) //Clicks on a Button with a given text.clickOnCheckBox(int) //Clicks on a CheckBox with a given index.clickOnView(View) //Clicks on a given View.clickOnText(String) //Clicks on a View displaying a given text.clickLongOnText(String) //Long clicks on a given View.clickOnRadioButton(int) //Clicks on a RadioButton with a given index.clickOnScreen(float?? float) //Clicks on a given coordinate on the screen.
?????? ????
????getCurrentActivity() //Returns the current Activity.getText(String) //Returns a TextView which shows a given text.getView(int) //Returns a View with a given id.getEditText(String) //Returns an EditText which shows a given text. getImage(int) //Returns an ImageView with a given index.
?????? ?????
????drag(float?? float?? float?? float?? int) //Simulate touching a given location and dragging it to a new location.
?????? ??????
????searchText(String) //Searches for a text string and returns true if at least one item is found with the expected text.searchEditText(String) //Searches for a text string in the EditText objects located in the current Activity.searchButton(String?? boolean) //Searches for a Button with the given text string and returns true if at least one Button is found.clickOnMenuItem(String);????????Menu????????????????String???????????????????"Add note"
????assertCurrentActivity(String message??String name);??????ж?????activity?????????????
????message?????????????
????name???activity??????
??????????????activity ????????????????????е? AndroidManifest.xml--Application label--Application Nodes?????????????????????е?activity??name
????enterText(int index??string text);index???????д?????EditText?С?????????????EditText????index=0
????text?????????д???????
????goBack();?????????? ???????back key)
????goBackToActivity(String name);??????????activity
????searchText(String text)??????activity???????????text??????
????clickInList??int index);???list????index?У?????????????
????solo.setActivityOrientation(Solo.LANDSCAPE);setActivityOrientation??????????????????
????LANDSCAPE?????????
????Portrait?????????
????clickOnText(String text);????????????????
????????text????????????????
????(i)----?????Сд???????????Сд??е??
?????????????java???????
????clickLongOnText(String text);???????????????
??????????????????apk?????apk???????????????
??????
???·???
??????????????????
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