tags:

views:

858

answers:

2

I'm trying to run the Webkit Layout Tests on the Android emulator using the command line shell in Ubuntu 9.04.

adb -s emulator-5554 shell am instrument -w \
com.android.dumprendertree/com.android.dumprendertree.LayoutTestsAutoRunner

I get this error:


INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for: ComponentInfo{com.android.dumprendertree/com.android.dumprendertree.LayoutTestsAutoRunner}

I found that you need to use development/testrunner/runtest.py to push tests in android/frameworks/base/tests.

I've tried this to push the AndroidTests:

. ./build/envsetup.sh
 emulator&
./development/testrunner/runtest.py android

But it gives me this error:

Error: ANDROID_PRODUCT_OUT not defined. Please run envsetup.sh

I did run envsetup.sh! Anyone know how to do this?

+2  A: 

I've found an answer at Android - Instrumentation Testing

. build/envsetup.sh
(cd frameworks/base/tests/DumpRenderTree/ && mm) && \
adb install out/target/product/generic/data/app/DumpRenderTree.apk

Then you can run the instrumentation tests:

adb -s emulator-5554 shell am instrument -w \
com.android.dumprendertree/com.android.dumprendertree.LayoutTestsAutoRunner

Buakaw San
A: 

once you launch adb shell in command line:

go with a command stating the package(com.ni.Keyboard) say of Keyboard application..

am instrument -w com.ni.Keyboard.test/android.test.InstrumentationTestRunner

KK