??????????????????????????
????????TestSuit????????????Case?????????
????Demo????
public static Test suite() {
TestSuite suite = new TestSuite();
//$JUnit-BEGIN$
suite.addTestSuite(CopyOfTestApk.class);
//$JUnit-END$
return suite;
}
????????bat???????????Robotium???
???????????
????am instrument -w com.testcalculator/android.test.InstrumentationTestRunner
???????Test Suit
????Am instrument -e class com.testcalculator.AllTests -w com.testcalculator/android.test.InstrumentationTestRunner
????Java?????
public  void callChosenTest(){
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();
}
}