????Bug???λ?????????????????????????????????????????Android??Log???????????е?????????????IDE?д?????????TMTS?У???TmtsLog?????????????????????????????SD?????????????????е?????λ?????????????????????????????????????????????????????????????TmtsLog????????????????н????TmtsLog???????????????????????????????????????????????????????????????????????????????????????

???????????????????н????????????????仰??·???????????

????????????????????У?

????1.???????????testapp??app???????????????????У????????????

????2.?????????????????к?????????Thread.sleep()???????View???????????????View???в???????????????view????set????????????????????ò?????Ч????????????????????????????

????????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)??????????????????????????????????????

????Bug???λ?????????????????????????????????????????Android??Log???????????е?????????????IDE?д?????????TMTS?У???TmtsLog?????????????????????????????SD?????????????????е?????λ?????????????????????????????????????????????????????????????TmtsLog????????????????н????TmtsLog???????????????????????????????????????????????????????????????????????????????????????

???????????????????н????????????????仰??·???????????

????????????????????У?

????1.???????????testapp??app???????????????????У????????????

????2.?????????????????к?????????Thread.sleep()???????View???????????????View???в???????????????view????set????????????????????ò?????Ч????????????????????????????

????3.?跨????Toast???

?????????????о?????????????java?????????android??????????Android????????ASE(Android Scripting Environment)?????????????????phyton??lua??perl??????????????????????????о?????飬????ASE???Android?????????????????

???????????????????????????“???????????????;???????????????????????????ī?????;?????????????????”??“????????????????”????仰????????????????????????????????????????????????仰?????????????????????????????????????????????????????????????????????????????????????????????????????