Carl H.
2008-08-22 11:18:52 UTC
Hello,
I am trying to follow the post on ApplicationInstrumentation:
http://code.google.com/android/samples/ApiDemos/tests/src/com/android/samples/AllTests.html
http://code.google.com/android/samples/ApiDemos/tests/src/com/android/samples/ApiDemosApplicationTests.html
My setup is very similar then the example. I have the following in my
manifest:
<instrumentation xmlns:android="http://schemas.android.com/apk/res/
android"
android:targetPackage="com.novoda.runbuddy"
android:name="android.test.InstrumentationTestRunner"
android:label="testInst" />
And I start the instrumentation like this:
adb shell am instrument -e class com.android.samples.AllTests -w
com.novoda.runbuddy/android.test.InstrumentationTestRunner
I get the following error message:
INSTRUMENTATION_RESULT: shortMsg=Unable to instantiate instrumentation
ComponentInfo{com.novoda.runbuddy/
android.test.InstrumentationTestRunner}:
java.lang.ClassNotFoundException:
android.test.InstrumentationTestRunner in loader
***@433f3350
INSTRUMENTATION_RESULT: longMsg=java.lang.RuntimeException: Unable to
instantiate instrumentation ComponentInfo{com.novoda.runbuddy/
android.test.InstrumentationTestRunner}:
java.lang.ClassNotFoundException:
android.test.InstrumentationTestRunner in loader
***@433f3350
INSTRUMENTATION_CODE: 0
I tried different combination and can not make the above work. The
documentation is sparse so I am not sure where I am going wrong. Why
would I get a class not found on android.test? There is no need for
permission from what I take with the new SDK.
Any ideas?
./Acsia
I am trying to follow the post on ApplicationInstrumentation:
http://code.google.com/android/samples/ApiDemos/tests/src/com/android/samples/AllTests.html
http://code.google.com/android/samples/ApiDemos/tests/src/com/android/samples/ApiDemosApplicationTests.html
My setup is very similar then the example. I have the following in my
manifest:
<instrumentation xmlns:android="http://schemas.android.com/apk/res/
android"
android:targetPackage="com.novoda.runbuddy"
android:name="android.test.InstrumentationTestRunner"
android:label="testInst" />
And I start the instrumentation like this:
adb shell am instrument -e class com.android.samples.AllTests -w
com.novoda.runbuddy/android.test.InstrumentationTestRunner
I get the following error message:
INSTRUMENTATION_RESULT: shortMsg=Unable to instantiate instrumentation
ComponentInfo{com.novoda.runbuddy/
android.test.InstrumentationTestRunner}:
java.lang.ClassNotFoundException:
android.test.InstrumentationTestRunner in loader
***@433f3350
INSTRUMENTATION_RESULT: longMsg=java.lang.RuntimeException: Unable to
instantiate instrumentation ComponentInfo{com.novoda.runbuddy/
android.test.InstrumentationTestRunner}:
java.lang.ClassNotFoundException:
android.test.InstrumentationTestRunner in loader
***@433f3350
INSTRUMENTATION_CODE: 0
I tried different combination and can not make the above work. The
documentation is sparse so I am not sure where I am going wrong. Why
would I get a class not found on android.test? There is no need for
permission from what I take with the new SDK.
Any ideas?
./Acsia