Android CTS Test Summary "Go"

Source: Internet
Author: User

Android compatibility test has been done recently, according to the Android official website given android-cts-manual configuration device, start testing.

First configure the Software environment: 1, download the Android-2.1 system, and compile.

$ . build/envsetup.sh//configuration options, and compile Android source code
$ make CTS//android source code compiled, after compiling the CTS

 2, compile the CTS after the generated file location is as follows #mydroid/out/host/linux-x86/in this directory contains the following test files
    • Package Cts:out/host/linux-x86/cts/android-cts.zip
    • CTS Make FILE:MYDROID/BUILD/CORE/TASKS/CTS.MK
    • Run CTS program:mydroid/out/host/linux-x86/bin/cts
    • Test Plans:mydroid/out/host/linux-x86/cts/android-cts/repository/plans
    • Test packages:mydroid/out/host/linux-x86/cts/android-cts/repository/testcases
    • Test Results:mydroid/out/host/linux-x86/cts/android-cts/repository/results
    • CTS Program Settings Value:mydroid/cts/tools/utils/host_config.xml
3. After connecting the device, enter the following directory #mydroid/out/host/linux-x86/bin/and enter the./cts to start the CTS test, the effect is as follows: Android CTS version 2.1_pre_r2 device ( 0123456789ABCEDF) Connectedcts_host > At this point, input Help will list all the operations of the CTS. cts_host> ls--plan//list all test plancts_host> ls-p//list all testcaseCts_host>start--plan [plan name]//test plan..........................4. Enter the catalogue#mydroid/out/host/linux-x86/cts/android-cts/repository/plansyou will see a base class of 8 tests, each of which isAndroid.xmlAppsecurity.xmlCts.xmlJava.xmlPerformance.xmlRefapp.xmlSignature.xmlVm.xmlWhen you open these files with UltraEdit, you will see that the package contained in all the base classes gives the corresponding URI .The CTS will test the package in each base class based on these URIs, 5, Cts_host > Start--plan Androidafter entering the above command, start testing the Android API, the other class test commands are consistent with this, as follows:Cts_host > Start--plan android//test Android APIcts_host > Start--plan CTS//contains all tests and would run ~21,000 tests on your devicects_host > Start--plan java//test java core libary.....  6. After testing, check the test situation by entering the following command.cts_host > Ls-r7, the CTS test will automatically generate the corresponding test package, which is located in the following directory: #mydroid/out/host/linux-x86/cts/android-cts/repository/resultsthe following files are included in each test package;Cts_result.csscts_result.xsllogo.gifNewrule-green.pngTestresult.xmlthe test case for the package is in the Testresult.xml file, which can be known by looking at the file, andAndroid compatible,, 8, unresolved issues in the test will encounter the ADB restart, after the ADB restart, disconnect device connection, the need to unplug the USB plug, to re-test, how to solve this situation to be studied, 9, a few good Reference Site 1, HTTP/ source.android.com/compatibility/index.html//Android Compatibility2, Http://androidboss.com/android-cts-compatib ility-test-suite-introduction-2///CTS How to add New TestCase 3, http://www.at91.com/android4sam/bin/view/And roid4sam///atmel_android SAM9M10 website
4, http://blog.csdn.net/zjujoe/archive/2010/06/01/5640461.aspx//Good Blog

Android CTS Test Summary "Go"

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.