当前位置:网站首页>cts测试步骤(卡西欧cts200测试)
cts测试步骤(卡西欧cts200测试)
2022-07-25 20:52:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!
1. 准备一台 ubuntu linux(比较简单,很容易在网上下载到,安装也很简单)
2. 安装 linux 版本的 android SDK (在安装sdk之前要先安装eclipse 和jdk1.6,安装过程参考网址:
http://www.linuxidc.com/Linux/2010-06/26796.htm;不然后面执行./androidsdk的时候可能会出错
)
a) 下载:http://dl.google.com/android/android-sdk_r20-linux.tgz
安装: 解压download 下来的档案后,进如到 tools 文件夹,执行 ./ android sdk 命令, 这时,会打开 android SDK manager, 在对话框里勾选,tools 以及API15, 然后安装它
2. 安装 adb USB 驱动
a) Log in as root and create this file: /etc/udev/rules.d/51-android.rules.
b) 增加一行: SUBSYSTEM=="usb",ATTR{idVendor}=="18d1 ", MODE="0666",GROUP="plugdev"
c) chmod a+r /etc/udev/rules.d/51-android.rules
3. 至此,usb 可以用了, 用usb 线连接板子和linux机器, 再执行个 adb devices 试试看,有没有识别的
(如果显示的是乱码,执行
adbkill-server
sudo –s
adb devices)
4. 下载 CTShttps://dl.google.com/dl/android/cts/android-cts-4.0.3_r3-linux_x86-arm.zip 解压后,得到android-cts, 以后所有有关 cts 的执行命令以及执行结果都在这个目录下。
5. 下载 media https://dl.google.com/dl/android/cts/android-cts-media-1.0.zip解压后,
得到 android-cts-media, 在确保adb 以及联通的情况下,把U盘插上板子上,然后,
进入到 android-cts-media 目录, 由于我们ics要求 1920×1080 的resolution, 所以,
执行下面两步,以copy 相应的media档到 U 盘上 (注意,测试media 相关功能的时候,
media 档是必须的,一定要一直插着U盘在板子上)。
adb pushbbb_short/1920×1080 /mnt/sdcard/test/bbb_short/1920×1080
adb pushbbb_full/1920×1080 /mnt/sdcard/test/bbb_full/1920×1080
6. 下载 jdk 1.6, 放到某个位置后,在 .bashrc 里添加 JAVA_HOME 变量, 例如:
exportJAVA_HOME=/usr/local/share/jdk1.6.0_33 ,如果要立即生效,请执行 source .bashrc
—————————–
7. 至此,已经具备跑 cts 的条件啦!
8. cd到你android-cts 的路径
9. 再进入 tools 目录
10. 执行./cts-tradefed
11. 这时, 如果上面的设置,包括jdk1.6 等正确的话,CTS 已经正常启动, 等待我们进行具体的测试
12. 一边情况下,如果要完整的跑所有的 CTS 的话, 执行 run cts –plan CTS (这个相当耗时,通常大家不需要这样做)
13. 如果只是为了跑某一个package, 比如说,在android.media 报出来的issue, 现在要复制,那么可以执行 run cts –p android.media 就能够单独执行 android.media 相关的test case. CTS的组织结构,每个test case 都会被归类到某个package 下, 所以,大家都可以这样的方式去复制自己的问题。
14. 运行结束后,会提示把result 写到android-cts/repository/results 下的某个目录里, 那个xml 文件就是report.
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/127684.html原文链接:https://javaforall.cn
边栏推荐
- leetcode-6125:相等行列对
- Online random coin tossing positive and negative statistical tool
- Remote - basic principle introduction
- Online XML to JSON tool
- [fiddlertx plug-in] use Fiddler to capture the package Tencent classroom video download (unable to capture the package solution)
- When MySQL resets the root password and modifies the password, an error occurs. The password field does not exist
- PayPal PHP product trial period "recommended collection"
- Automated testing ----- selenium (I)
- leetcode-6127:优质数对的数目
- Focus on data | Haitai Fangyuan directly hits the construction idea of data security governance in the securities industry
猜你喜欢

leetcode-6127:优质数对的数目

两数,三数之和

Illustration leetcode - 3. longest substring without repeated characters (difficulty: medium)

Pycharm跑程序时自动进入测试模式

黑盒(功能)测试基本方法

测试用例和缺陷报告模板

Compilation and operation of program

103. (cesium chapter) cesium honeycomb diagram (square)

Success factors of software R & D effectiveness measurement

leetcode-919:完全二叉树插入器
随机推荐
Pycharm跑程序时自动进入测试模式
103. (cesium chapter) cesium honeycomb diagram (square)
leetcode-114:二叉树展开为链表
Test cases and defect report templates
Google guava is just a brother. What is the real king of caching? (glory Collection Edition)
Leetcode-6129: number of all 0 subarrays
leetcode-146:LRU 缓存
[workplace rules] it workplace rules | poor performance
Automated testing ----- selenium (I)
Key network protocols in tcp/ip four layer model
Success factors of software R & D effectiveness measurement
一道golang中关于map的并发读写的面试题
[MCU] 51 MCU burning those things
Basic knowledge of Marine Geology
Learn FPGA from the bottom structure (16) -- customization and testing of pll/mmcm IP
Pychart automatically enters the test mode when running the program
The onnx model is exported as a TRT model
LeetCode通关:哈希表六连,这个还真有点简单
The uniapp project starts with an error binding Node is not a valid Win32 Application ultimate solution
leetcode-6131:不可能得到的最短骰子序列