General steps:
- Download the CTS package from here
- Make sure that the android SDK has been installed and the ADB command has been added to the system path $ path
- Refer to the Google CTS guide to configure hosts and devices. // The details are described here.
- Connect to ADB;
- Start CTS;
- Switch to the Android-cts Directory, which is in the downloaded package in step 1st;
- Run the following command to go to The CTS console.
Android-cts $./tools/CTS-tradefed
- In the CTS Console
The following command lists valid test plans:
CTS-TF> list p
Test a specific test plan
Run CTS -- Plan <Test Plan Name>
After all the tests are executed, you can view [Android-CTS/Repository/results/<session-Name>/testresult in the browser. XML] The test report in this directory to adjust the development and design scheme based on the results;
At the beginning, I learned about Android CTS and found a lot of information on the Internet,
The following is a report about run CTS -- Plan CTS running on the beagleboard-XM board. I ran it for two days and two nights on my system, and I didn't have many modules on the board, there are a lot of fail, which is taken for granted. Here we just want to learn about the cts of Android.
Device informationtest Summary
| Build model |
Omap3evm |
| Build name |
Beagleboard |
| Build brand |
Android |
| Build manufacturer |
Texas_instruments_inc |
| Device ID |
Unknown |
| Firmware Version |
4.0.3 |
| Firmware build number |
Iml74k |
| Build fingerprint |
Android/beagleboard: 4.0.3/iml74k/eng. kimi.20120423.112542: Eng/test-keys |
| Build Abi |
Armeabi-v7a |
| Build abi2 |
Armeabi |
| Android platform version |
15 |
| Supported locales |
En_us ca Da Fa ja Nb de af BG th
FI Hi vi sk uk El nl pl sl tl
Am RM in Ko Ro ar fr HR Sr tr
CS es MS it lt PT Hu Ru zu LV
Sv iw sw en_ca uk_ua en_GB in_id ar_eg en_sg th_th
Fi_fi sl_si sk_sk zh_cn hi_in vi_vn ro_ro hr_hr ca_es sr_rs
En_us es_us lt_lt pt_pt en_au hu_hu lv_lv zh_tw en_nz fr_ca
Af_za zu_za nl_be fr_be de_de sv_se bg_bg de_ch rm_ch fr_ch
It_ch tl_ph de_li da_dk iw_il nl_nl pl_pl nb_no ja_jp pt_br
Fr_fr el_gr fa_ir ko_kr tr_tr es_es de_at am_et it_it ru_ru
Ms_my cs_cz sw_tz en |
| Screen Size |
0x4 |
| Resolution |
1024x720 |
| Density |
1.0 (mdpi) |
| Phone number |
Null |
| X DPI |
288.99554 |
| Y DPI |
361.24442 |
| Touch |
Notouch |
| Navigation |
Nonav |
| Keypad |
Nokeys |
| Network |
|
| IMEI |
Null |
| Imsi |
Null |
| Open gl es version |
No feature for Open gl es version. |
| Open GL compressed texture formats |
- Gl_oes_compressed_paletted_texture
- Gl_oes_compressed_etc1_rgb8_texture
- Gl_img_texture_compression_pvrtc
|
| Features |
[_] Android. Hardware. Audio. low_latency
[_] Android. Hardware. Bluetooth
[_] Android. Hardware. Camera
[_] Android. Hardware. Camera. Autofocus
[_] Android. Hardware. Camera. Flash
[_] Android. Hardware. Camera. Front
[_] Android. Hardware. faketouch
[_] Android. Hardware. faketouch. multitouch. Distinct
[_] Android. Hardware. faketouch. multitouch. jazzhand
[_] Android. Software. live_wallpaper
[_] Android. Hardware. Location
[_] Android. Hardware. Location. GPS
[_] Android. Hardware. Location. Network
[_] Android. Hardware. Microphone
[_] Android. Hardware. NFC
[_] Android. Hardware. Screen. Landscape
[_] Android. Hardware. Screen. Portrait
[_] Android. Hardware. sensor. Accelerometer
[_] Android. Hardware. sensor. Barometer
[_] Android. Hardware. sensor. Compass
[_] Android. Hardware. sensor. Gyroscope
[_] Android. Hardware. sensor. Light
[_] Android. Hardware. sensor. Proximity
[_] Android. Software. Sip
[_] Android. Software. Sip. VoIP
[_] Android. Hardware. Telephony
[_] Android. Hardware. telephony. CDMA
[_] Android. Hardware. telephony. GSM
[_] Android. Hardware. touchscreen
[_] Android. Hardware. touchscreen. multitouch
[_] Android. Hardware. touchscreen. multitouch. Distinct
[_] Android. Hardware. touchscreen. multitouch. jazzhand
[_] Android. Hardware. USB. Accessory
[_] Android. Hardware. USB. Host
[_] Android. Hardware. WiFi
[_] Android. Hardware. Wifi. Direct |
| Other features |
|
| Root Processes |
- Ueventd
- Rild
- Sh
- Adbd
- Sh
- Logcat
- Logcat
- Adbd
- Netd
- Adbd
- Adbd
- Adbd
- Sh
- Logcat
- Sh
- Logcat
- Sh
- App_process
- Adbd
|
| Partitions |
Filesystem Size Used Free Blksize / 3G 285M 3G 4096 / 3G 285M 3G 4096 /dev 119M 44K 119M 4096 /part-3 3G 109M 3G 4096 /mnt/asec 119M 0K 119M 4096 /mnt/obb 119M 0K 119M 4096 /mnt/sdcard 3G 109M 3G 4096 |
| System Libraries |
- Android. Test. Runner
- Com. Android. Location. Provider
- Javax. obex
|
Through this study CTS, We can summarize the following points: 1. CTS is the core of Android automated testing; 2. it is also good for the underlying developers. It can test a single package of the Android system, such as: Android: Media stress test on multimedia; run CTS -- package Android: Media
3. developers can write their own CTS test case programs;
4. CCD is officially provided, which describes some android standard specifications;
Note: All of the above are summarized during personal learning and are not verified in actual work. There may be deficiencies. Everything is subject to the official version.