Hello All,
This is what I have,say:
TestCases : TestCase 1 to TestCase10 , all have several test methods
in it (all extends base class InstrumentationTestCase)
TestSuite:
TestSuite 1 - Adds 'TestCase 1 to TestCase10' in
its suite
All of the above is in single APK.
Instrumentation Runer used is - android.test.InstrumenationTestRunner
itself.
----------------------------------------------
This is what I am trying:
- I launched Emulator having above apk
- I opened three terminals , two to run instrumentation and third one
to log results i.e.
Terminal 1 : adb shell am instrument -w -e class
com.InstrTest.TestSuite1 com.InstrTest/
android.test.InstrumentationTestRunner
com.InstrTest.TestCase1:....
com.InstrTest.TestCase2:....
com.InstrTest.TestCase3:....
com.InstrTest.TestCase4:....
com.InstrTest.TestCase5:....
com.InstrTest.TestCase6:.......INSTRUMENTATION_RESULT:
shortMsg=Process crashed.
INSTRUMENTATION_CODE: 0
Terminal 2:
terminal 1 : adb shell am instrument -w -e class
com.MyInstr.TestSuite1 com.MyInstr/
android.test.InstrumentationTestRunner
DDM dispatch reg wait timeout
Can't dispatch DDM chunk 52454151: no handler defined
Can't dispatch DDM chunk 48454c4f: no handler defined
com.InstrTest.TestCase1:....
com.InstrTest.TestCase2:....
com.InstrTest.TestCase3:....
com.InstrTest.TestCase4:....
com.InstrTest.TestCase5:....
com.InstrTest.TestCase6:....
com.InstrTest.TestCase7:....
com.InstrTest.TestCase8:....
com.InstrTest.TestCase9:....
com.InstrTest.TestCase10:....
Test results for
InstrumentationTestRunner=.........................................
.......................................
Time: 11.191
OK (10 tests)
Terminal 3: This is what I saw in the middle of logcat dump:
..
..
..
D/ActivityManager( 564): Uninstalling process com.InstrTest
D/ActivityManager( 564): Force removing process ProcessRecord
{4379dad0 785:tr.nth/10041} (tr.nth/10041)
W/ActivityManager( 564): Crash of app com.InstrTest running
instrumentation ComponentInfo{com.InstrTest/
android.test.InstrumentationTestRunner}
D/ActivityManager( 564): Uninstalling process com.InstrTest
D/AndroidRuntime( 776): Shutting down VM
..
..
..
Queries:
1. Is not it possible to run instrumentation in above manner?
2. I tried another TestSuite2 in terminal 2 instead of TestSuite1 ,
this also gave same results.
My aim is to run 2 testsuites parallel, using same apk. Is it
possible?
Or I have to use two different apks? Is there any way that this is
possible?
Any input would be appreciated.
Regards,
Dev
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---