Android CTS 2.3遇到问题解决

来源:互联网 发布:linux 怎么看报错日志 编辑:程序博客网 时间:2024/05/08 03:19

问题一:

最近在做CTS 测试,遇到一些问题:

在tools目录下输入sudo ./startcts进入cts_host>start --plan CTS开始跑用例,跑的过程中会不断的restart ADB、接着restart devices, 就是USB会自己中断然后又Devices connected,跑一会用例就会重复重启设备,不知道是不是参数设置的问题,哪位大侠知道怎么解决,给点指导,不胜感激!

方法:自己解决了,把配置文件host_config.xml文件中的maxTestCount的value值改为0


问题二:

当我在运行cts之前,我先将模拟器打开,然后
fanfq@fanfq-Lenovo:~/android/out/host/linux-x86/cts/android-cts/tools$ ./startcts
Android CTS version 2.2_r1
01:31:46 E/ddms: Could not open Selected VM debug port (8700). Make sure you do not have another instance of DDMS or of the eclipse plugin running. If it's being used by something else, choose a new port number in the preferences.
01:31:46 E/ddms: Can't bind to local 8600 for debugger
01:31:46 E/ddms: Can't bind to local 8601 for debugger
01:31:47 E/ddms: Can't bind to local 8602 for debugger
01:31:47 E/ddms: Can't bind to local 8603 for debugger
Device(emulator-5554) connected
cts_host > 01:31:47 E/ddms: Can't bind to local 8605 for debugger
01:31:47 E/ddms: Can't bind to local 8606 for debugger
01:31:47 E/ddms: Can't bind to local 8607 for debugger
01:31:47 E/ddms: Can't bind to local 8608 for debugger
01:31:47 E/ddms: Can't bind to local 8609 for debugger
01:31:47 E/ddms: Can't bind to local 8610 for debugger
01:31:47 E/ddms: Can't bind to local 8611 for debugger

方法:关闭相对应的进程

命令:fuser -k 8700/tcp


原创粉丝点击