Android CTS Tips

Android CTS R2 Android 2.1 R2 Compatibility Test Suite (CTS)

Run CTS之前的注意点:

  1. Download TTS files     Settings/Speech synthesis/Install voice data
  2. 设置好google account
  3. 确保SDCard正常mount
  4. Screen lock unchecked
  5. Screen Timeout -> Never Timeout
  6. Check "Stay Awake", "Allow mock locations" and "User Debugging"  from Settings/Application/Development
  7. 将用来测试的SIM卡写上本机号码(可以用可写Sim号码的手机先写一下)
  8. 调整好time zone,以及date的format
  9. Install CtsDelegatingAccessibilityService.apk

adb install -r android-cts /repository/testcases/CtsDelegatingAccessibilityService.apk
On the device, enable Settings > Accessibility > Accessibility > Delegating Accessibility Service

 

执行所有的测项:                    start --plan CTS
执行某个测项:                        start --plan CTS -t [CTS_test_name]
例出所有timeout的测项:      ls -r timeout -s [session ID]
例出所有fail的测项:               ls -r fail -s [session ID]
                                                                                  0-new session; 1-last session.

 

Usage: command options
Avaiable commands and options:
  Host:
    help: show this message
    exit: exit cts command line
  Plan:
    ls --plan: list available plans
    ls --plan plan_name: list contents of the plan with specified name
    add --plan plan_name: add a new plan with specified name
    add --derivedplan plan_name -s/--session session_id -r/--result result_type: derive a plan from the given session
    rm --plan plan_name/all: remove a plan or all plans from repository
    start --plan test_plan_name: run a test plan
    start --plan test_plan_name -d/--device device_ID: run a test plan using the specified device
    start --plan test_plan_name -t/--test test_name: run a specific test
    start --plan test_plan_name -p/--package java_package_name: run a specific java package
    start --plan test_plan_name -t/--test test_name -d/--device device_ID: run a specific test using the specified device
    start --plan test_plan_name -p/--package java_package_name -d/--device device_ID: run a specific java package using the specified device
  Package:
    ls -p/--package: list available packages
    ls -p/--package package_name: list contents of the package with specified name
    add -p/--package root: add packages from root to repository
    rm -p/--package package_name/all: remove a package or all packages from repository
  Result:
    ls -r/--result: list all result of sessions
    ls -r/--result -s/--session session_id: list detail case result of a specified session
    ls -r/--result [pass/fail/notExecuted/timeout] -s/--session session_id: list detail cases of a specified session by the specified result.
  History:
    history/h: list all commands in command history
    history/h count: list the latest count records in command history
    history/h -e num: run the command designated by 'num' in command history
  Device:
    ls -d/--device: list available devices

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值