Android Robotium???????????
???????????? ???????[ 2014/8/15 10:27:45 ] ????????????? ???
?????????ù???????Robotium???????????????????????????????????????????Robotium??????????????Instrumentation???????????????;???????????????Щ??“???”???????…..
????Ok????????????????????????????????ɡ????????????????????????????????????
?????????????д???????A?????????CASE?з?????????????????A???????????????????????????????
?????????????
???????Service ??BoradCastReceiver??input keyevent?? ?в??????????????????????????顣
????????????
????1????????????????????????????????????A???????????Service????Service????????BoardCastReceiver?????????????action????????????IntentFilter??IntentFilter mIntentFilter=new IntentFilter(); mIntentFilter.addAction(“android.zered.action”);?????BoardCastReceiver??OnReceive?????????Runtime.getRuntime.exec(cmdB)???????Case?з???????????(input keyevent xx ?????????????????Щshell????)????????????ó??????????3.1???Android???????????????????——δ?????????????????????????????????з????????????ó??????????????ü????????ó???push??system/app?????????;
????2??????1???????????????????????????ж?(????????CS??server??)????????????????????????????????????????context.sendbroadcast????????????Case?п??????solo.getCurrentActivity.sendbroadcast?????;
??????μ???????????????????cmdB????????У?Intent intent=new Intent();intent.setAction(“android.zered.action”);intent.putExtra(TAG??cmdB);solo.getCurrentActivity.sendbroadcast(intent);
????Ok??????????????????????е??????????????
????3???????????????????1????????A?е?Service?????????2???????????????????????????????cmdB??:Runtime.getRuntime.exec(intent.getStringExtra(TAG))
??????????Robotium????????????????????????????
??????
???·???
??????????????????
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