Tag: Reg order number func NES pad run add list
Directory of this document
1. run all the test cases
2. run a single test class or a testsuite
3. run A test method inside a test class
4. run a method in two different test classes or classes
Command line run Android robotium Automation use case or unit Test case
1.
RunAll the
TestCase
Give me a chestnut: run All the use cases under the test project
1 |
adb shell am instrument -w com.taobao.taobao. test /android . test .InstrumentationTestRunner |
2.
RunSingle
TestClass or a Testsuite
For a chestnut: run test class Com.taobao.taobao.test.TestRegister
1 |
adb shell am instrument -e class com.taobao.taobao. test .TestRegister -w com.taobao.taobao. test /android . test .InstrumentationTestRunner |
3. Run A test method inside a test class
For a chestnut: run the test method in 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. Run a method in two different test classes or classes
For a chestnut: run com.taobao.taobao.test.TestLogin
And the methods in the Com.taobao.taobao.test.TestRegister class Testregister
1 |
adb shell am instrument -e class com.taobao.taobao. test .TestLogin,com.taobao.taobao. test .TestRegister #testRegister -w com.taobao.taobao.test/android.test.InstrumentationTestRunner |
Command line run Android Robotium automation use case or unit test case