"Turn" Android TV CTS 4.0.3_r1 test

Source: Internet
Author: User
Tags home screen

Original URL: http://blog.sina.com.cn/s/blog_539ad34301012764.html

CTS testing has been more than a month, through constant groping, now experience, and share with you.

a . Download CTS

1.1 Open the browser input connection: http://source.android.com/compatibility/downloads.html

1.2 Select the CDD document corresponding to the Android version (introduction of CTS test), CTS Test package download (test package will be updated continuously), android-cts-verifier-4.0.3_r1-linux_ X86-arm.zip,android-cts-media-1.0.zip

1.3 Extract the downloaded CTS test package into the appropriate folder should contain: Android-cts folder contains Docs, Repository, tools three folders.

1. 4 Download Android SDK (adb tools only)

two . Adjustment system Status

2.1 Burn the TV version to user mode using the image of user mode

2.2 Perform system reset, restore to factory state

2.3 Enter Factory mode to set the ADB connection status to TCP/IP open port 5555

2.4 Installation apk:adb Install android-cts/repository/testcases/ctsdelegatingaccessibilityservice.apk required before testing

You can then turn this option on by adding one more delegating accessibility service option in the accessibility function inside the settings.

2.5 Installation APK:ADB Install android-cts/repository/testcases/ctsdeviceadmin.apk required before testing

2.6 Installation APK:ADB Install ctsverifier.apk required before testing

Choose Device Manager for three more options in set security, tick the three options and activate

2.7 Empty the SD card. Create a new directory in the SD card test, unzip the android-cts-media-1.0.zip into the test directory, and insert the SD card into the TV. Make sure the SD card is readable and writable.

2.8 In Android Device settings: Security--screen protection--auto lock set to None

2.9 In Android Device settings: Wake-up status with developer options, allow analog address two tick

2.10 Set the language of the Android device to English.

2.11 Turn WiFi on and connect to an available AP

2.12 Open and connect the Ethernet (if the hardware supports USB ADB debug can ignore this)

2.13 Settings-Input language set to Android

2.14 Because of our great party's Golden Shield project, we can't connect to Google Server, and some cases have to be tested by connecting to Google Server. There are many ways to FQ out, the following is the use of Vpnfq method

Settings, network settings, more

Select VPN

A. Set PW

B. Add VPN

C. Type: PPTP

D. PPP encryption disable

E. Click OK to add success

F. Select the added VPN, enter the user name and password, the connection is successful. (Make sure your network connection is OK before connecting to VPN, VPN relies on internet connection)

2.15 Set the TV to home screen

three . RUN CTS

3.1 First determine if the Linux system's ADB path is set correctly (see appendix)

3.2 Open terminal, enter Android-cts/tools directory

Execute command:

CD Android/tools

ADB Connect <TV Ethernet ip> (ignore this if using ADB USB Debug)

3.3 Enter CTS, execute cts-tradefed script

Execute command:./cts-tradefed

Note: Sometimes enter the CTS test state can not appear cts-tf, at this time the computer press a return on it. This is a small bug in the CTS

3.4 Starting the entire CTS test

Perform a plan:run cts--plan <plan name >

Test only one package: Run Cts–p < Test package name >

Multiple TV simultaneous test: Run Cts–s device name –-plan <plan name >

Additional test commands See appendix

3.5 Test Results

Test results in Android-cts/repository/results directory

Note: The CTS test cannot do any operation on the TV, so please remove the remote controller when testing.

Appendix:

1. How to set ADB path

Shell command:

[Email protected]:~# CD ~

[Email protected]:~# vim. Profile

Add in Profile

If ["$BASH"]; Then

If [-f ~/.BASHRC]; Then

. ~/.bashrc

Fi

Fi

MESG N

Path= $PATH:/home/test/tool/updatesmartboardimagesop:

Some Linux PC systems need to define bash files to reach the set path

> VIM/ETC/BASH.BASHRC

At the end of the file, add the following settings

Export path= $PATH:/home/test/tool/updatesmartboardimagesop:

The path address is the absolute path to the ADB tool's storage.

After setting up the path restart system

2. CTS command Set

2.1 How to see Seesion ID
Cts-tf>l R

The CTS lists the Seesion ID number and the corresponding test result folder name

2.2 Continue Test

If the system freezes during the test, you can interrupt the CTS test and continue with the following command

Run Cts–-continue-session <seesion id>

2.3 Test Pass/fail/notexecuted/timeout case

ADD Derivedplan–plan < new plan name >--session session-id–r [pass/fail/notexecuted/timeout]

Run Cts–plan < The new plan> just now

"Go" android TV CTS 4.0.3_r1 test

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.