?????????????????????????????????????????????????????????汾??????????????????????????????е??????Robotim?????????????????????????????????selenium????????Robotium???????????????????£?Robotium?????Android ?????Instruments??????????????????д?????????Android??ó??????????????????????Robotium????????д???????????????????????????Android Activities??

?????????????Robotium????????????????????ù???????????????????????????????????????????

????????????????????????1???

????1?? ????Android SDK ????????

????2?? ????Eclipse ????????

????3?? ????JDK ????????

????4?? Eclipse?а?????????ADT ??Android Development Toolkit??

???????ADT??????裺

????1?? ???eclipse

????2?? ??????Help->Install New SoftWare

????3?? ??workWith??????https://dl-ssl.google.com/android/eclipse/?????

????4?? ??????????????????????

??????????????????Android Test Project

????1?? ?????????APP??ù???

????2?? ???File->New->Project->Android Test Project

????3?? ??????????????->?????

????4?? ???????????????????????????

????5?? ??????????????????libs??????robotium??jar??????(????????????????libs??????????????????class???)

??????д??????????????????????????д???

????1?? ??????java?????

????2?? ???????????д?????????

????public class Login extends ActivityInstrumentationTestCase2{

????//?????????????ActivityInstrumentationTestCase2??<>?е???????????????????????

????private Solo solo;

????public Login (){

????super(“com.android.app”??WelcomeActivity.class);

????//??????????????????????????????????????????ó??????????

????}

????@Override

????public void setUp(){

????solo = new Solo(getInstrumentation()??getActivity());

????//Solo?????????????д??

????}

????@Override

????public void tearDown(){

????solo.finishOpenedActivities();

????//???????????????????

????}

????3????д???????(??д??????????????????solo?????)

????4?????н???????????????????????????????

???????????????????robotium???Щ?????????????????????Щ???????????????????Щ????????д????????ο?robotium??doc?????