HOWTO: run a particular CTS test with DDMS?

100 views
Skip to first unread message

Bruce Beare

unread,
Jun 21, 2010, 1:09:43 PM6/21/10
to android-porting
I'm running into a CTS exception and would like to take a close look
at the particular test/failure using DDMS. Is it possible to run CTS
with DDMS? Alternatively... I can install the CTS test .apk file...
but how do I then invoke the particular test?

Thank you,
Bruce

Bruce Beare

unread,
Jun 21, 2010, 6:01:40 PM6/21/10
to android-porting
I discovered a bit more:

adb install ./repository/testcases/CtsTestStubs.apk
adb install ./repository/testcases/CtsAppTestCases.apk
adb shell am instrument -w com.android.cts.app/
android.test.InstrumentationCtsTestRunner

This starts the test suite. There are still the problems of selecting
the particular test that I see failing and of
providing the automated input event to the test.

Bruce Beare

unread,
Jun 21, 2010, 6:14:55 PM6/21/10
to android-porting
:o) Finally found...

adb shell am instrument -w -e class \
android.app.cts.TimePickerDialogTest#testOnTimeChanged \
com.android.cts.app/android.test.InstrumentationCtsTestRunner
> > Bruce- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages