How to run Sample instrumentation test applications ?

by vrukesh » Mon, 11 May 2009 14:42:11 GMT


Sponsored Links
 Hi,

We are exploring to run the Instrumentation tests for Android 1.1 r1.

On the ARM-based target, Applications Apidemos.apk and
ApiDemosTests.apk are copied in /system/app location.

We run following command and got the error:

framework=/system/framework

bpath=$framework/core.jar:$framework/ext.jar:$framework/framework.jar:
$framework/android.test.runner.jar

am instrument -w com.example# .android.apis/
android.test.InstrumentationTestRunner

INSTRUMENTATION_FAILED: com.example.android.apis/
android.test.InstrumentationTestRunner
usage: am [start|broadcast|instrument]
       am start -D INTENT
       am broadcast INTENT
       am instrument [-r] [-e <ARG_NAME> <ARG_VALUE>] [-p <PROF_FILE>]
                [-w] <COMPONENT>

       INTENT is described with:
                [-a <ACTION>] [-d <DATA_URI>] [-t <MIME_TYPE>]
                [-c <CATEGORY> [-c <CATEGORY>] ...]
INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for:
ComponentInfo{com.example.android.apis/
android.test.InstrumentationTestRunner}
INSTRUMENTATION_STATUS: id=ActivityManagerService
INSTRUMENTATION_STATUS_CODE: -1
                [-e|--es <EXTRA_KEY> <EXTRA_STRING_VALUE> ...]
                [--ez <EXTRA_KEY> <EXTRA_BOOLEAN_VALUE> ...]
                [-e|--ei <EXTRA_KEY> <EXTRA_INT_VALUE> ...]
                [-n <COMPONENT>] [-f <FLAGS>] [<URI>]
#


What are we missing ?

Thanks and Regards,
Vrukesh
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. space rom di g1 dengan costum rom cm5.0.7

Selamt sore.. setelah update costum cm 4.2.15 ke cm 5.07 baru install app 10
space internal memory menjadi berkurang ..padahal sudah app2sd akhirnya ada
juga yg mengalami hal yang sama sebenernya karna cm507 baru test1 jd blm
setabil...akhirnya aku coba pake sistem JIT yang bermaen cache yang sangat
memakan space nah berikut ini yang sy coba di hh G1

Masuk ke terminal emulator ketik su setelah itu lakukan langkah dibawah ini:
rm -rf /data/dalvik-cache
rm -rf /cache/dalvik-cache
rm -rf /sd-ext/dalvik-cache/*
ln -s /sd-ext/dalvik-cache /data/dalvik-cache
ln -s /sd-ext/dalvik-cache /cache/dalvik-cache
sync
reboot
Done .. tampilan boot pertama akan terasa lama tpi setelah itu akan ngebut
... coba liat internal space *tuing space akan terasa leluasa
Sekian ngetiknya pegel uii soalnya dari g1 salam android
Ref cyanogenmod 5.0.7

-- 
"Indonesian Android Community [id-android]" 

2. Newb: Display URL Image

Hello:

All I want to do is display a URL image. Does anyone have a template I
could use that already displays an image that I can possibly modify?
I've been looking all over the internet and the only answers I've
found are extremely complex.

I'm very good at learning something once I can get it to work from my
end then proceed to analyzing the code.

I am VERY new at Android programming.

Thanks!

-- 

3. Help: Wireless Tether Nexus

4. Apa hh android favouritemu? Was WTI: Inilah 10 Ponsel Google Android Terbaik

5. resized window for clicking other window app

6. CLOSED [ WTA ] Blapk Market

7. Android ANT compilation