Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2016年10月13日学习内容 #5

Open
xingyi-leilei123 opened this issue Oct 13, 2016 · 0 comments
Open

2016年10月13日学习内容 #5

xingyi-leilei123 opened this issue Oct 13, 2016 · 0 comments

Comments

@xingyi-leilei123
Copy link
Collaborator

一、(PC1)PC2的自动化测试【在PC1上操作】
1、在ubuntu部署ssh无密码登录(两台机子必须都是root用户)
以root 登录,执行以下命令
ssh-keygen
ssh-copy-id -i ~/.ssh/id_rsa.pub 192.168.0.52(笔记本:user-THTF-T-Series)/ssh-copy-id -i ~/.ssh/id_rsa.pub 192.168.0.136(pc:userpc-MMLP7AP-00)
测试机上一定要修改root密码,此时要输入(userpc-MMLP7AP-00:userpc)(user-THTF-T-Series:/空格)
2、进入xyongcn/openthos-testing,点击clone or download下载openthos-testing-master到桌面上ll文件夹里并解压为openthos-testing-master文件夹,将其中bare_metal_autotest下面的android_auto/目录复制到PC1上的/home/entity/android_auto_2目录下面
3、修改/root/android_auto_2/中的auto2.sh中的配置文件为PC2的配置情况 ip_linux="192.168.0.52"【PC2的IP地址】
ip_android="192.168.0.13"【随便写一个,之后可以查到】
android_iso_for_test="/home/entity/iso/android_x86_64.iso"【要测试的androidx86 ISO的全路径及文件名】
diskpart_for_android="/dev/sda5"【PC2上面的要安装android的目标分区】
4、复制ISO文件到android_iso_for_test参数指定的位置(/home/entity/iso/android_x86_64.iso)
5、进入/root/android_auto_2 给所有文件赋予权限:chmod -R 777 ,然后运行./auto2.sh进行安卓系统安装
6、cd /home/entity/Desktop/LL/openthos-testing-master/lkp_result_web
./creat_symbol.sh ###这个脚本一定要执行,尤其是给html目录增加权限,必须进行。
在浏览器输入http://localhost/result.php查看结果(没有结果)
二、CTS测试
1、PC1需要安装1.7,不支持1.8,apt-get install openjdk-7-jdk
java -version检查一下jdk版本
如果不是1.7,update-alternatives --config java,Press enter to keep the current choice[
], or type selection number: 1(选择相应的jdk序号)
2、PC1安装adb,apt-get install android-tools-adb
3、下载自动化测试程序https://github.com/openthos/testing-analysis
4、下载cts测试包https://github.com/openthos/testing-analysis/tree/master/auto-testing-script
解压后的文件夹放到testing-analysis-master/auto-testing-script目录下,替代原先的android-cts目录
5、进入到testing-analysis-master/auto-testing-script/cts-autotest目录中,修改根据所需configs文件,其中configs文件是所需要执行的autoTest.sh的各个参数(r 192.168.0.52 /dev/sda5 run cts "--plan CTS --disable-reboot")
6、安装python pip,然后安装PyEmail模块
sudo apt-get install python-pip
pip install PyEmail
7、testing-analysis-master/auto-testing-script/cts-autotest目录下./autoTest.sh 52001 r 192.168.0.52 /dev/sda5 run cts "--plan CTS --disable-reboot"开始测试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant