?????????????
????1.???????е????????
???????????????в???????μ?????????
????1adb shell am instrument -w com.taobao.taobao.test/android.test.InstrumentationTestRunner
????2.???е?????????????TestSuite
???????????????в?????com.taobao.taobao.test.TestRegister
????1adb shell am instrument -e class com.taobao.taobao.test.TestRegister -w com.taobao.taobao.test/android.test.InstrumentationTestRunner
????3.????????????????????????????
????????????????com.taobao.taobao.test.TestRegister?е???????testRegister
????adb shell am instrument -e class com.taobao.taobao.test.TestRegister#testRegister -w com.taobao.taobao.test/android.test.InstrumentationTestRunner
????4.??????????????????????е????
????????????????com.taobao.taobao.test.TestLogin??com.taobao.taobao.test.TestRegister???е????testRegister
1adb shell am instrument -e class com.taobao.taobao.test.TestLogin??com.taobao.taobao.test.TestRegister#testRegister  -w com.taobao.taobao.test/android.test.InstrumentationTestRunner
Runtime run = Runtime.getRuntime();
try {
//Process p = run.exec("am instrument -w com.testcalculator/android.test.InstrumentationTestRunner");///??????????????
Process p = run.exec("am instrument -e class com.testcalculator.AllTests -w com.testcalculator/android.test.InstrumentationTestRunner");
//?????????????
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}