????MonkeyRunner??Android?????????????????????????ú?android??????????
????1????eclipse??android?????????????cmd??android????????????
???????磺C:Program Filesadt-bundle-windows-x86-20131030sdk ools>emulator -avd AVD3.2
???????????λ??android sdk·???μ?tools????????????????“AVD3.2”????????????
????2??????????????????cmd??????????????????????′?cmd??????????λ??tools????????????“monkeyrunner”??????????shell??????????
??????????????monkeyrunner?????????飬???"from...import..."
?????????shell??????????from com.android.monkeyrunner import MonkeyRunner??MonkeyDevice???
?????????????????????????????device=MonkeyRunner.waitForConnection()
??????????????true?????δ????true????????????????????????·????????
????????????????HelloTest.apk
????device.installPackage("../HelloTest.apk")
?????????????????????activity?????????package??activity??????ɡ?
????????device.startActivity(component="com.example.hellotest/com.example.hellotest.MainActivity")
???????????????????HelloTest????????????