Android CTS (compatibility test) entire process

Source: Internet
Author: User

In order to ensure that the developed application works on all Android-compatible devices and to ensure a consistent user experience, Google has developed the CTS(compatibility Test Suite ) to ensure that the Android system is fully compatible with Android specifications, Google also provides a compatibility standard document (Compatibility Definition documents, CDD).

Before the CTS, you need to download the relevant documents from the Google website, the need to inferiority ladder to turn the wall. Download Link:

Http://source.android.com/compatibility/downloads.html. Currently the latest version is Android5.1 version, mainly includes arm and X86 architecture, if both of your devices are included in the architecture, then you need to test it. Since the machine at hand is a Android4.4 version, the Android4.4 CTS has been downloaded for testing.


Most are written based on JUnit and dashboard technology. It also extends the automated testing process to automate use cases and automatically collect and summarize test results. The CTS uses XML configuration files to divide these test cases into multiple test plans (plan), and third parties can create their own plan.

CTS the preparatory work to be done before the test is as follows:

1. Download the compatibility test case package and extract the extracted file name as "Android-cts".

2. Reset your phone (restore factory settings).

3. Remove the Google account.

4. Set the phone language to English:setting->language&input->language->english (unitedstates) .

5. Insert the SIM card and the external SD card (theSD card needs to be formatted:settings- >STORAGE->ERASESD card->erase SD card->erase everything).

6. plug in the USB, connect the phone to the computer, can use the adb devices Check, whether the connection is correct.

7. turn on wifi and connect to available WiFi.

8. turn on Bluetooth without pairing.

9. Make sure the phone is not operating for five minutes after lcdoff:settings->display->sleep->30 minutes.

Ten. Remove the screen lock: The value of Settings->security->screenlock is "None".

Open settings->locationservices-> "Google Location Services", "GPS satellites", " Location &google search ".

Open settings->accessibility->developeroptions->usb debugging (USB Debug ).

Open settings->accessibility->developeroptions->stay awake(keep Awake) .

Open settings->accessibility->developeroptions->allow mock location (allow analog location) .

15. Settings->speechsynthesis->install Voice data install " Text to Speech " file ( com.svox.langpack.installer-1.apk , android-cts/repository/testcases/

If you need to perform a compatibility test for accessibility, install "ctsdelegatingaccessibilityservice.apk"( Adbinstall–r */android-cts/repository/testcases/ctsdelegatingaccessibilityservice.apk), and will The settings->accessibility->delegatingaccessibility Service option is turned on.

If you need to perform a device Management compatibility test, install the "ctsdeviceadmin.apk" (ADB install–r*/android-cts/repository/ testcases/ctsdeviceadmin.apk), and will setting->security->devicesadministrators-> Android.devicesadmin.cts.CtsDevicesAdmin options are turned on.

TestCase it contains a lot of test cases, can be tested all, or only part of the test.


Once you've done the preparatory work, you can start CTS tested. Before testing, first Add the path of adb in the Android SDK to the environment variables of the system, and then type:

#adbdevices

View the devices that are already connected.


access to the Android-cts/tools "directory, then execute

#./cts-tradefed

Then run the test case for test device decoding:

#runcts--class Android.media.cts.DecoderTest


you can find that some of the test cases that the Red Arrows refer to have passed, and some commands are unfamiliar to you to type Help . When the test cases under the cell are complete, you can type:

#cts-tf> L R

Query the test results as shown in:


View android-cts/repository/results/ directory, you can find the generated XML File:

By dragging the Testresult.xml file into Safari, you can easily view the test results:


Android CTS (compatibility test) entire process

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.