[CTS-4.0] Command to Run Individual Test case ?

7,037 views
Skip to first unread message

Atul Raut

unread,
Dec 12, 2011, 3:37:56 AM12/12/11
to compat...@android.com, android-...@googlegroups.com
Hi all,

I wanted to know Command to Run Individual Test case in CTS-4.0? 
Am trying below command, but CTS command prompt throwing error saying
wrong command.
run cts --plan android.permission.cts.FileSystemPermissionTest#testOtherRandomDirectoriesNotWritable
Whats the correct command ?

Thanks,
----------------------------------------------------------------------------------------------------------------------------------
Atul Raut

http://rautatul.weebly.com/

ekwang

unread,
Dec 12, 2011, 11:33:40 PM12/12/11
to android-...@googlegroups.com, compat...@android.com
I used below command.

> adb shell am instrument -w -r -e class android.media.cts.MediaPlayerTest#testPlayMp3StreamNoLength com.android.cts.media/android.test.InstrumentationCtsTestRunner

Thanks.

Lee.

tkcn

unread,
Dec 13, 2011, 8:40:26 PM12/13/11
to android-platform
I use this command:
start --plan CTS -p
android.permission.cts.FileSystemPermissionTest#testOtherRandomDirectoriesNotWritable

> Atul Rauthttp://rautatul.weebly.com/http://atulraut.wordpress.com/<http://rautatul.wordpress.com/>
> atulrau...@gmail.com <hack...@android.com>
>
> <hack...@android.com>

Brett Chabot

unread,
Dec 16, 2011, 3:36:29 PM12/16/11
to android-platform
Hi

The correct command is
run cts --class android.permission.cts.FileSystemPermissionTest --
method testOtherRandomDirectoriesNotWritable

Regards,
Brett.

On Dec 12, 12:37 am, Atul Raut <atul.dr...@gmail.com> wrote:
> Hi all,
>
> I wanted to know Command to Run Individual Test case in CTS-4.0?
> Am trying below command, but CTS command prompt throwing error saying
> wrong command.
> run cts --plan
> android.permission.cts.FileSystemPermissionTest#testOtherRandomDirectoriesN otWritable
> Whats the correct command ?
>
> Thanks,
>

Atul Raut

unread,
Dec 19, 2011, 6:50:04 AM12/19/11
to android-...@googlegroups.com, Brett Chabot
Thanks Brett your answer very helpful to me.

Individual test case in ICS can be run : 

run cts --class android.hardware.cts.CameraTest --method testFocusAreas


Thanks,
----------------------------------------------------------------------------------------------------------------------------------
Atul Raut

http://rautatul.weebly.com/




--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.


Balaji BABU T.R.

unread,
Feb 24, 2015, 6:14:28 AM2/24/15
to android-...@googlegroups.com, compat...@android.com
Hi,

run cts --plan CTS-TF

On Tuesday, March 5, 2013 at 5:57:09 PM UTC+5:30, Durgesh Sahu wrote:
Hi,
Can you please tell me how to run whole cts through one command only in android 4.1

Gustavo Oliveira

unread,
Feb 24, 2015, 4:51:56 PM2/24/15
to android-...@googlegroups.com
Actually, you want run as class, not as plan.

The command you are looking for is

run cts --class <class with complete package name> --method <method_name>

Regards,
Gus

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-platfo...@googlegroups.com.

To post to this group, send email to android-...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages