Android??????????????
???????????? ???????[ 2013/1/5 10:50:14 ] ????????
?????????????????????android app??????????????????????????????????????????λ??????????
????Android???????????????????鯔?????????????????java?????Activity??View???в?????????????????Instrumentation??
????Instrumentation??Activity??λ??android.app???£???????????????ActivityManagerNative???????App????????????Android?????Activity????????startActivity(Intent intent)???????????????????Instrumentation????Instrumentation??????????ж?Activity???????????????????Instrumentation???????Android SDK??Junit????????????????????AndroidTestCase?????????????????????????ActivityInstrumentationTestCase2??
????????Instrumentation??????????????SDK?е??????????????????
?????о?Android???????????к???????а?????????????????????@hide???????????private????????app????????????????????java????????? java?????????????????????????????
????????????????????????????????robot/" target="_blank" >Robotium?????????????app????apk?????????????????в????
????????Robotium????????????????????WebView???в??????????????WebView?????Android??????????????????????
????????Robotium????API?????????????????????????
??????????????????????????WebView???в????????????????????????TMTS(Taobao Mobile Test Studio)????
????TMTS???????????????????????????Instrumentation?????testapp??app??????????????? ??app crash????testapp???crash??????????????о???Instrumentation??Activity??????????????????о????dalvik????ν???Manifest????????????????????????????????android??????Щ??????????????????????????????
???????????????????? Robotium?в??????actionMethod(View?? arg)??????TMTS?в???getView(id).actionMethod(arg)?????????????java????????TMTS?????????д?????????????View??????View???????action???????????
????TMTS????????????????????????Android????API??????Activity??????View????????????????????View?????????View???Instrumentation????Щ??View???????????????????TmtsView????????
????????????????????????????android.View??????????????????????????????????????????????TmtsView????
???????????????????????View????????????????id???????????????????д??????????app??????????????????????view??id???????????id????????п???д????????????????????????Щ????????SDK?????hierarchyviewer??????view??id;???????????????н???????java????????л??????????????????е????д?id??view?????????????view??????????????????е?view???й???
???????????????getView(id).actionMethod(arg)??????Layout(layout.class).ViewType().view().actionMethod(arg)??????????????????????????????????????
??????
???·???
??????????????????
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