Android CTS Tips
Android CTS R2 Android 2.1 R2 Compatibility Test Suite (CTS)
Run CTS之前的注意点:
- Download TTS files Settings/Speech synthesis/Install voice data
- 设置好google account
- 确保SDCard正常mount
- Screen lock unchecked
- Screen Timeout -> Never Timeout
- Check "Stay Awake", "Allow mock locations" and "User Debugging" from Settings/Application/Development
- 将用来测试的SIM卡写上本机号码(可以用可写Sim号码的手机先写一下)
- 调整好time zone,以及date的format
- 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
更多相关文章
- android单元测试时,异常情况解决记录
- Android中使用Junit测试框架
- Android中如何获得本机号码信息
- android 测试
- android activity 单元测试总结
- Android gradle测试
- android获取手机信息
- Android是什么 之三-------手机之硬件形态
- 你的手机到底安不安全?看看Android和iOS是如何防御恶意应用的吧