1、运行单个测试类
adb shell am instrument -e class 测试类包名加类名 -w
测试包名/com.zutubi.android.junitreport.JUnitReportTestRunner或者android.test.InstrumentationTestRunner
例如:C:\Users\Noon>adb shell am instrument -e class com.ttdp.test.pageobject.mainActivityTest -w
com.ttdp.test/com.zutubi.android.junitreport.JUnitReportTestRunner
2、运行某个测试类里面的某个测试方法
C:\Users\Noon>adb shell am instrument -e class com.ttdp.test.pageobject.mainActivityTest#te
stT -w com.ttdp.test/com.zutubi.android.junitreport.JUnitReportTestRunner
3、运行测试套
C:\Users\Noon>adb shell am instrument -e class com.ttdp.test.testsuit.MyTestSuit
-w com.ttdp.test/com.zutubi.android.junitreport.JUnitReportTestRunner
adb shell am instrument -e class 测试类包名加类名 -w
测试包名/com.zutubi.android.junitreport.JUnitReportTestRunner或者android.test.InstrumentationTestRunner
例如:C:\Users\Noon>adb shell am instrument -e class com.ttdp.test.pageobject.mainActivityTest -w
com.ttdp.test/com.zutubi.android.junitreport.JUnitReportTestRunner
2、运行某个测试类里面的某个测试方法
C:\Users\Noon>adb shell am instrument -e class com.ttdp.test.pageobject.mainActivityTest#te
stT -w com.ttdp.test/com.zutubi.android.junitreport.JUnitReportTestRunner
3、运行测试套
C:\Users\Noon>adb shell am instrument -e class com.ttdp.test.testsuit.MyTestSuit
-w com.ttdp.test/com.zutubi.android.junitreport.JUnitReportTestRunner