After the phone is powered on, use USB to connect to your phone and computer, double-click the cts.bat Batch command that runs Cts\android-cts\tools, and the command line appears with the following information:
D:\cts\android-cts\tools>echo OFF
CTS (Compatibility Test Suite) ...
Android CTS 4.2_R4
01-07 18:41:34 i/: detected new device 0123456789ABCDEF
Enter the run CTS--plan CTS to begin automatic full testing:
CTS-TF > Run CTS--plan CTS
01-07 18:41:57 i/testinvocation:starting invocation for ' CTS ' on Build ' 4.2_R4 '
On device 0123456789ABCDEF
01-07 18:41:57 i/0123456789abcdef:created result dir 2014.01.07_18.41.57
CTS-TF >
.....
This automatic test will run automatically and will restart the phone multiple times during the test, which is a normal test. The entire automated test time may be long, at least 3, 4 hours There are some module tests or a functional test, you can enter the cts_tf> after entering help to view the relevant module test commands.
If you want to see those package inputs that can test the system: L packages will show all the packages that can be tested, such as:
CTS-TF > L Packages
Android.acceleration
Android.accessibility
Android.accessibilityservice
Android.accounts
Android.admin
Android.animation
Android.app
Android.bluetooth
Android.calendarcommon
Android.content
Android.core.tests.libcore.package.com
Android.core.tests.libcore.package.dalvik
Android.core.tests.libcore.package.libcore
android.core.tests.libcore.package.org
Android.core.tests.libcore.package.sun
Android.core.tests.libcore.package.tests
Android.core.vm-tests-tf
Android.database
android.dpi
Android.dpi2
Android.drm
Android.effect
Android.example
Android.gesture
Android.graphics
Android.graphics2
Android.hardware
Android.holo
Android.jni
Android.location
Android.media
Android.mediastress
Android.monkey
Android.nativemedia.sl
Android.nativemedia.xa
Android.ndef
Android.net
Android.opengl
Android.openglperf
Android.os
Android.permission
Android.permission2
Android.preference
Android.preference2
Android.provider
Android.renderscript
Android.sax
Android.security
Android.speech
Android.telephony
Android.tests.appsecurity
Android.tests.sigtest
Android.text
Android.textureview
Android.theme
Android.uiautomator
Android.util
Android.view
Android.webkit
Android.widget
Enter run Cts-p Android.view to start testing the phone's UI display
You can use L p or L plan to see which test plans you can perform such as:
CTS-TF > L P
Android
Appsecurity
Cts-tf
Cts
Java
PDK
Signature
Vm-tf
As input run CTS--plan java to start Java test plan
The above is the course that I have to pass the procedure will be because ANDROIDSDK and JDK storage location is different, please according to their actual path to make changes.
At the same time thank many friends on the network to provide ideas, I here is their ideas or methods to integrate their own practice to make a summary. If you see this article, hope to help you, but also please correct the problems that may exist.