Android Performance Test CTS Chapter

Source: Internet
Author: User

CTS Introduction


First, the CTS brief introduction

CTS Full name compatibility test suite Compatibility Test tool.
When electronic products are developed. And customize your Android system, you will need to pass the latest CTS detection. To ensure that standard Android apps can be executed under the platform.
CTS verification was passed. Need to submit a test report to Google, which has been certified by Android Market


Second, why do we need CTS test?

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvytyyndczmte4ng==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">


1, let the app provide a better user experience. Users can choose from many other apps that suit their device. Make apps more stable.
2. Let developers design more high-quality apps.
3, through the CTS equipment can execute Android Market.


Third, how to make my equipment to become compatible?

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvytyyndczmte4ng==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">


1. Match the Android Compatibility definition document, the documentation lists the hardware and software features of the compatibility device

2, through the CTS test. CTS is an open-source test framework that uses it to test whether your device is compatible.


3, submit the report, measured after the CTS, the test results sent to [email protected]. can also apply for access to Android Market at the same time


Iv. working principle of CTS



CTS's own initiative to test two parts of the composition:
1. Implement the Test frame component on the PC. Primarily used to manage the execution of test cases
2. Perform the test example on the device or simulator. These use cases are written in Java apk file


V. CTS process

1. Get CTS (source code compilation/Site download)
2. Install and configure CTS.


3. Connect the device to the PC.


4, the implementation of CTS.

The CTS installs the corresponding test example (APK file) on the device, executes it, and records the execution results. Finally, delete the test example.


5, all the test example after the completion of the implementation. Be able to participate in the test results again to adjust or optimize the system. Then proceed to the CTS test.


6, test pass after, the CTS generated results (that is, the result directory below the. zip file) and the device of some additional information (such as: Screen captures) submitted to [email protected].


Six, CTS test type

The CTS consists of the following three levels:
1, the unit level.

Test the code unit on the Android platform.

For example, a java.util.HashMap this kind.


2, functional level.

A more advanced test example that combines multiple APIs.
3, program level.

Execute the app to test all API and Android services.
The future version number will also include the following types:
1, strength test. The stability of the test system under high CPU operation.
2, efficiency test. For example, the number of frames rendered per second.


Environment construction


First, the ADB environment variable configuration

' Vim ~/.BASHRC, add the following two sentences to the file header
Export SDK_ROOT=/HOME/XXX/SDK
Export Path=${sdk_root}/platform-tools:${sdk_root}/tools: $PATH


Second, compile CTS

SOURCE build/envsetup.sh
Make CTS


After the compilation is complete:
Build to Out/host/linux-x86/cts


Third, ADB connection equipment

1: All tests need about 6 hours, it is recommended to use USB connection adb
2: Suppose it is only part of the test, can choose the network or USB


Four, device settings

1:settings->developeroptions-> the Enable USB debugging, Stay Awake, Allowmock Locations 3 options open
2:settings->security->device all options inside the administrators (this is set after the first reboot after the CTS has started testing)


Five, test steps

The following are all test steps, some test methods see Out/host/linux-x86/cts/android-cts/tools/readme instructions


CD Out/host/linux-x86/cts/android-cts/tools
./cts-tradefed
Run CTS--plan CTS
Start testing, for example by:



Attention:
During the test, the device restarts several times. Do not interrupt the terminal's CTS test form


Vi. test Results

For example: Test complete


Results in the Cts/android-cts/repository/results folder

Some of the results are as below:


Android Performance Test CTS Chapter

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.